Hi, all!
After replacing the disk in the zfs pool, I created a similar layout.
Please tell me how to correctly create a bootloader in the efi and freebsd-boot partition on the new disk? My OS is FreeBSD 13.5.
Bit-by-bit copying of data from similar mfid4p1 and mfid5p2 partitions? Or is there a special utility for creating a bootloader?
After replacing the disk in the zfs pool, I created a similar layout.
Please tell me how to correctly create a bootloader in the efi and freebsd-boot partition on the new disk? My OS is FreeBSD 13.5.
Bit-by-bit copying of data from similar mfid4p1 and mfid5p2 partitions? Or is there a special utility for creating a bootloader?
Code:
zpool status
pool: zroot
state: DEGRADED
status: One or more devices is currently being resilvered. The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Sat Jul 19 14:21:19 2025
11.0T scanned at 1.38G/s, 5.53T issued at 714M/s, 21.7T total
26.9G resilvered, 25.56% done, 06:34:26 to go
config:
NAME STATE READ WRITE CKSUM
zroot DEGRADED 0 0 0
raidz1-0 ONLINE 0 0 0
mfid0p4 ONLINE 0 0 0
mfid1p4 ONLINE 0 0 0
mfid2p4 ONLINE 0 0 0
raidz1-1 DEGRADED 0 0 0
mfid3p4 ONLINE 0 0 0
mfid4p4 ONLINE 0 0 0
replacing-2 DEGRADED 0 0 0
mfid5p4/old REMOVED 0 0 0
mfid5p4 ONLINE 0 0 0 (resilvering)
logs
mirror-2 ONLINE 0 0 0
ada0p1 ONLINE 0 0 0
ada1p1 ONLINE 0 0 0
cache
ada0p2 ONLINE 0 0 0
ada1p2 ONLINE 0 0 0
Code:
sudo gpart show mfid5
=> 40 11721045088 mfid5 GPT (5.5T)
40 532480 1 efi (260M)
532520 1024 2 freebsd-boot (512K)
533544 984 - free - (492K)
534528 16777216 3 freebsd-swap (8.0G)
17311744 11703732224 4 freebsd-zfs (5.4T)
11721043968 1160 - free - (580K)
sudo gpart show mfid4
=> 40 11721045088 mfid4 GPT (5.5T)
40 532480 1 efi (260M)
532520 1024 2 freebsd-boot (512K)
533544 984 - free - (492K)
534528 16777216 3 freebsd-swap (8.0G)
17311744 11703732224 4 freebsd-zfs (5.4T)
11721043968 1160 - free - (580K)
Code:
sudo efibootmgr -v
Boot to FW : false
BootCurrent: 0007
Timeout : 3 seconds
BootOrder : 0007, 0005, 0000, 0006, 0001, 0004, 0003, 0002
+Boot0007* EFI Embedded MMC Device 2 PciRoot(0x3)/Pci(0x0,0x0)/Pci(0x0,0x0)/Ctrl(0x0)/Scsi(0x4,0x0)/HD(1,GPT,4ea4b472-24a9-11ed-a868-001dc30057e0,0x28,0x82000)
Boot0005* EFI Embedded MMC Device 1 PciRoot(0x3)/Pci(0x0,0x0)/Pci(0x0,0x0)/Ctrl(0x0)/Scsi(0x3,0x0)/HD(1,GPT,49968da9-24a9-11ed-a868-001dc30057e0,0x28,0x82000)
Boot0000* EFI Embedded MMC Device PciRoot(0x3)/Pci(0x0,0x0)/Pci(0x0,0x0)/Ctrl(0x0)/Scsi(0x0,0x0)/HD(1,GPT,3ddd16f8-2488-11ed-9877-001dc30057e0,0x28,0x82000)
Boot0006* FreeBSD HD(1,GPT,3ddd16f8-2488-11ed-9877-001dc30057e0,0x28,0x82000)/File(\efi\freebsd\loader.efi)
mfid0p1:/efi/freebsd/loader.efi /boot/efi//efi/freebsd/loader.efi
Boot0001* Internal EFI Shell MemoryMapped(0xb,0x2ce1e000,0x2e758fff)/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1)
Boot0004* SAMSUNG MZ7L3960HCJR-00A07 BBS(HD,SAMSUNG MZ7L3960HCJR-00A07 ,0x500)
Boot0003* SAMSUNG MZ7L3960HCJR-00A07 BBS(HD,SAMSUNG MZ7L3960HCJR-00A07 ,0x500)
Boot0002* (Bus B3 Dev 00)PCI RAID Adapter BBS(HD,(Bus B3 Dev 00)PCI RAID Adapter,0x0)