From nobody Mon Jun 17 14:10:36 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W2sHZ1JxMz5NxZ9 for ; Mon, 17 Jun 2024 14:11:06 +0000 (UTC) (envelope-from bounce.wd2wmyq6tkeium3=8wi26f7601uo=few2binax3hm9w@em785262.diomedia.be) Received: from e3i39.smtp2go.com (e3i39.smtp2go.com [158.120.84.39]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4W2sHW4FPHz4rZV for ; Mon, 17 Jun 2024 14:11:03 +0000 (UTC) (envelope-from bounce.wd2wmyq6tkeium3=8wi26f7601uo=few2binax3hm9w@em785262.diomedia.be) Authentication-Results: mx1.freebsd.org; dkim=fail ("body hash did not verify") header.d=diomedia.be header.s=mail header.b=cJR0br+8; dkim=pass header.d=smtpcorp.com header.s=a1-4 header.b=cO2RZ924; dkim=pass header.d=diomedia.be header.s=s785262 header.b="aW/NYePO"; dmarc=pass (policy=quarantine) header.from=diomedia.be; spf=pass (mx1.freebsd.org: domain of "bounce.wd2wmyq6tkeium3=8wi26f7601uo=few2binax3hm9w@em785262.diomedia.be" designates 158.120.84.39 as permitted sender) smtp.mailfrom="bounce.wd2wmyq6tkeium3=8wi26f7601uo=few2binax3hm9w@em785262.diomedia.be" Received: from [10.78.243.14] (helo=mail.tivas.info) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97.1-S2G) (envelope-from ) id 1sJD4G-4o5NDgrv0rr-nm1M for freebsd-questions@FreeBSD.org; Mon, 17 Jun 2024 14:10:44 +0000 Received: from [192.168.3.50] ([192.168.3.50]) (authenticated bits=0) by mail.tivas.info (8.16.1/8.16.1) with ESMTPSA id 45HEAhn2037653 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 17 Jun 2024 16:10:43 +0200 (CEST) (envelope-from bram@diomedia.be) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=diomedia.be; s=mail; t=1718633443; bh=zshWhBvUlSU++X4wLyMt2oQWsGyf1zpzxpYSrZAW4nI=; h=From:To:Subject:Date:Reply-To; b=cJR0br+8TPLgRypSPjC/HTTEptY9Utipl0x7McypCrFziEiGoFJC07WFbT6OGrSgh owpOZCOV5P0cUkBQEQoufR0cChI3yWN/VfxXawuADxLd/Qtb70k7UOUxyQxQdc9iMm zLZ6UzWRLg90ixpjEBSXOgEsAZQny9kv7Sm+NOQg= From: bram To: freebsd-questions@FreeBSD.org Subject: 14.0 with zfs mirror on root - can't uefi boot from second disk Date: Mon, 17 Jun 2024 14:10:36 +0000 Message-Id: Reply-To: bram User-Agent: eM_Client/9.2.1735.0 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------=_MBA7B96FD0-2885-4091-8FF0-20A1A0274628" X-Report-Abuse: Please forward a copy of this message, including all headers, to Feedback-ID: 785262m:785262aZ-bv_2:785262sRo0NqjO_2 X-smtpcorp-track: PGhVGMGwcBcG.-I_-nF9TidMC.9kiq6ww_rUO DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smtpcorp.com; i=@smtpcorp.com; q=dns/txt; s=a1-4; t=1718633455; h=feedback-id : x-smtpcorp-track : date : message-id : to : subject : from : reply-to : sender : list-unsubscribe : list-unsubscribe-post; bh=GF8kZ93Z2ti27SUUhdYLqe/A7wLaIwdVk9XpEfwH484=; b=cO2RZ924EFmWu6fi6riVDyFxzCzBFv7uKiIiZXKK4qAHUI85TN3vXFyHLNB6+P3vWh6Ec FuyLn6PUJzxMX3z3//cmiSjjngdo8xc3GtGy428CERtjVF8jpHUEUurSoxVw0q83dWJRguD g3OYFupFcJCuRkqTMrpyJ4sRnoeWqFqOxe12mKO9gZpsJL+WZLdPG12GJNy1wks2a7mVU+E nW1JbZr3buqPj8z7IHfy9jz6bQ+B2WWUm6yWocegaN3xf3D4jSJ3aKDNvj+KyqY/xiGBh32 BqzUYgPHSfHQOXnPB0r6LeBFupc7lcIgnRArABXNLHVfNl22MqWzO27gnGNg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=diomedia.be; i=@diomedia.be; q=dns/txt; s=s785262; t=1718633455; h=from : subject : to : message-id : date; bh=GF8kZ93Z2ti27SUUhdYLqe/A7wLaIwdVk9XpEfwH484=; b=aW/NYePOFPcNUgqp7e0T+NpKctpHx6G6yRekkkK4zSWZnV23XynILMd3n2d1iO/uuX8K7 h/O4+zW1j8jRqV5P54Tly7RRob6pk27hF4c0AeKLFhaKI8qSC2b20G/zyT1+PqHnPtGBzV4 cG1pByyatFGgBN7xg1YQvqZTYvUkk8/07MJTqA4ilYkaDvzO3fcpXgmfF0wLw/c0P2IbTlM YkuFPLVrj2UqQhGq7IxYFq9J6U7Rx+tnzUUMlQ6M/74oLL746E9xRkSbsIe0hN01ZiK6T/8 mIuEYD1XGuwc3pndwDK3SnXmvGFxAFMz+AjzQ6cblekK2D4CWGY4LcJ7EryA== X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.70 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[smtpcorp.com:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; URI_COUNT_ODD(1.00)[5]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW_WITH_FAILURES(-0.50)[]; FORGED_SENDER(0.30)[bram@diomedia.be,bounce.wd2wmyq6tkeium3=8wi26f7601uo=few2binax3hm9w@em785262.diomedia.be]; R_SPF_ALLOW(-0.20)[+ip4:158.120.80.0/21]; R_DKIM_ALLOW(-0.20)[smtpcorp.com:s=a1-4,diomedia.be:s=s785262]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_DKIM_REJECT(0.00)[diomedia.be:s=mail]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_POLICY_ALLOW(0.00)[diomedia.be,quarantine]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_MIXED(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_NEQ_ENVFROM(0.00)[bram@diomedia.be,bounce.wd2wmyq6tkeium3=8wi26f7601uo=few2binax3hm9w@em785262.diomedia.be]; DKIM_TRACE(0.00)[diomedia.be:-,smtpcorp.com:+,diomedia.be:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@FreeBSD.org]; HAS_REPLYTO(0.00)[bram@diomedia.be]; ASN(0.00)[asn:23352, ipnet:158.120.84.0/22, country:US]; REPLYTO_EQ_FROM(0.00)[] X-Rspamd-Queue-Id: 4W2sHW4FPHz4rZV --------=_MBA7B96FD0-2885-4091-8FF0-20A1A0274628 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi all, I couldn't find much information on this in Google, I'm hoping someone can shed some light on this and recommend me on what=20 to do next. I noticed on a FreeBSD server with 14.0 (I can't boot with just the=20 second drive connected (no option in the bios) As far as I can tell this relates to this,=20 https://reviews.freebsd.org/D42150 Additionally the installer creates gpt/gptboot0 + efiboot0 for the first=20 drive and gpt/gptboot1 + efiboot1 for the second drive. It was able to fix this with: newfs_msdos /dev/nda1p1 # format efi partition on second drive mount_msdosfs /dev/nda1p1 /mnt # mount efi of second drive cp -r /boot/efi/* /mnt/efi # copy files from first to second drive efibootmgr -c -L FreeBSD-Disk1 -l /boot/efi/efi/boot/bootx64.efi # give=20 a name that shows up in the bios efibootmgr -B -b 0001 # remove uefi os gpart modify -l efiboot0 -i1 /dev/nda0 # without this the system goes=20 into single user mode because it searches for efiboot0, not efiboot1 Swap drive cables and reboot efibootmgr -c -L FreeBSD-Disk2 -l /boot/efi/efi/boot/bootx64.efi efibootmgr -B -b 0001 # remove another uefi os from the list I can both from both drives with the other one disconnected from the=20 computer. Replacing a drive required gpart backup nda0 | gpart restore -F /dev/nda1 # copy partition table gpart modify -l efiboot0 -i1 /dev/nda1 newfs_msdos /dev/nda1p1 mount_msdosfs /dev/nda1p1 /mnt cp -r /boot/efi/* /mnt/efi zpool replace nda1p4 nda1p4 On a second server my efibootmgr naming was gone after swapping=20 drives/cables. In fstab there is this line: /dev/gpt/efiboot0 /boot/efi msdosfs rw =20 2 2 causing the system to go into single user mode when booting from the=20 secondary drive after the efi files were copied, the system would boot=20 just fine without this line what is the reason to keep this mounted by=20 default ? I tried a fresh install with FreeBSD 14.1 and here I have the same=20 issue, the system is able to boot from the first drive but can't boot=20 with the first drive removed. thx in advance Bram --------=_MBA7B96FD0-2885-4091-8FF0-20A1A0274628 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable =20 blockquote.cite=20{=20margin-left:=205px;=20margin-right:=200px;=20padding-= left:=2010px;=20padding-right:0px;=20border-left:=201px=20solid=20#cccccc= =20} blockquote.cite2=20{margin-left:=205px;=20margin-right:=200px;=20padding-le= ft:=2010px;=20padding-right:0px;=20border-left:=201px=20solid=20#cccccc;=20= margin-top:=203px;=20padding-top:=200px;=20} a=20img=20{=20border:=200px;=20} li[style=3D'text-align:=20center;'],=20li[style=3D'text-align:=20center;=20= '],=20li[style=3D'text-align:=20right;'],=20li[style=3D'text-align:=20right= ;=20']=20{=20=20list-style-position:=20inside;} body=20{=20font-family:=20'Segoe=20UI';=20font-size:=2012pt;=20} .quote=20{=20margin-left:=201em;=20margin-right:=201em;=20border-left:=205p= x=20#ebebeb=20solid;=20padding-left:=200.3em;=20} =20 Hi=20all,
I=20couldn't=20find=20much=20information=20on=20this= =20in=20Google,
I'm=20hoping=20someone=20can=20shed=20some=20ligh= t=20on=20this=20and=20recommend=20me=20on=20what=20to=20do=20next.
I=20noticed=20= on=20a=20FreeBSD=20server=20with=2014.0=20(I=20can't=20boot=20with=20just= =20the=20second=20drive=20connected=20(no=20option=20in=20the=20bios)
As=20far=20as=20I=20can=20tell=20this=20= relates=20to=20this,=C2=A0https://reviews.fre= ebsd.org/D42150Additionally=20= the=20installer=20creates=20gpt/gptboot0=20+=20efiboot0=20for=20the=20first= =20drive=20and=20gpt/gptboot1=20+=20efiboot1=20for=20the=20second=20drive.<= /font>= It=20was=20able=20to=20fix=20this=20with:= newfs_msdos=C2=A0/dev/nda1p1=20#=20format=20efi=20partition=20on=20second=20drive= mount_msdosfs=20/dev/nda1p1=20/mnt=20#=20mount= =20efi=20of=20second=20drivecp=20-r=20/boot/efi/*=20/mnt/efi=20#=20copy=20files=20from= =20first=20to=20second=20driveefibootmgr=20-c=20-L=20FreeBSD-Disk1=20-l=20/boot/efi/efi/boot/bo= otx64.efi=20#=20give=20a=20name=20that=20shows=20up=20in=20the=20bios= efibootmgr=20-B=20-= b=200001 =20#=20remove=20uefi=20osgpart=20modify=20-l=20efiboot0=20-i1=20/dev= /nda0=20#=20without=20this=20the=20system=20goes=20into=20single=20user=20m= ode=20because=20it=20searches=20for=20efiboot0,=20not=20efiboot1<= font=20size=3D"3"=20style=3D"font-size:=2016px;">Swap=20drive=20cables=20an= d=20rebootefibootmgr=20-c=20-L=20FreeBSD-Disk2=20-l=20/boot/efi/efi/boot/bootx64.ef= iefibootmgr=20-B=20-b=200001=20#=20remove=20ano= ther=20uefi=20os=20from=20the=20listI=20can=20both=20from=20both=20drives=20= with=20the=20other=20one=20disconnected=20from=20the=20computer.Replacing=20a=20dr= ive=20requiredgpart=20backup=20nda0= =20|=20gpart=20restore=20-F=20/dev/nda1=20#=20copy=20partition=20tablegpart=20modify=20-l=20efiboot0=20-i1=20/dev/nda1<= div=20id=3D"x2651584c546c46938e688bc78fefc874">= newfs_msdos=C2=A0/dev/nda1p1mount_msdosfs= =20/dev/nda1p1=20/mntcp=20-r=20/boot/efi= /*=20/mnt/efizpool=20replace=20nda1p4=20nda1p4On=20a=20second=20server=20my=20efibootmgr=20naming=20w= as=20gone=20after=20swapping=20drives/cables.In=20fstab=20there=20is=20this=20line:/dev/gpt/efiboot0=C2=A0=20=C2=A0=C2=A0=20=C2=A0= =C2=A0=20=C2=A0=C2=A0=20=C2=A0=C2=A0=20=C2=A0/boot/efi=C2=A0=20=C2=A0=C2=A0= =20=C2=A0=20msdosfs=20rw=C2=A0=20=C2=A0=C2=A0=20=C2=A0=C2=A0=20=C2=A0=C2=A0= =20=C2=A0=C2=A0=202=C2=A0=20=C2=A0=C2=A0=20=C2=A0=202 causing=20the=20syste= m=20to=20go=20into=20single=20user=20mode=20when=20booting=20from=20the=20s= econdary=20drive=20after=20the=20efi=20files=20were=20copied,=20the=20syste= m=20would=20boot=20just=20fine=20without=20this=20line=20what=20is=20the=20= reason=20to=20keep=20this=20mounted=20by=20default=20?I=20tried=20a=20fresh=20install=20with=20FreeBSD=2014.1= =20and=20here=20I=20have=20the=20same=20issue,=20the=20system=20is=20able= =20to=20boot=20from=20the=20first=20drive=20but=20can't=20boot=20with=20the= =20first=20drive=20removed.thx=C2=A0in=20advanceBram=C2=A0
--------=_MBA7B96FD0-2885-4091-8FF0-20A1A0274628--