Just got myself a new dell precision 5750 with two ssd drives and have setup the two drives to be in a mirrored zpool on gentoo. However what I cant workout is how I can boot off these drives seeing as they are completely being used with zfs. And I am of the understanding that this is possible just not sure what I am doing wrong/missing.
Here is my setup;
(chroot) livecd ~ # zpool status
pool: rpool
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
nvme0n1 ONLINE 0 0 0
nvme1n1 ONLINE 0 0 0
errors: No known data errors
(chroot) livecd ~ # zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 80.2G 842G 96K none
rpool/ROOT 12.2G 842G 96K none
rpool/ROOT/boot 23.9M 842G 23.9M /mnt/gentoo/boot
rpool/ROOT/gentoo 12.2G 842G 12.2G /mnt/gentoo
rpool/SWAP 68.0G 910G 56K -
(chroot) livecd ~ #
(chroot) livecd ~ # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 570.7M 1 loop
sdc 8:32 1 28.7G 0 disk
├─sdc1 8:33 1 609M 0 part
└─sdc2 8:34 1 6.4M 0 part
zd0 230:0 0 64G 0 disk
nvme0n1 259:0 0 953.9G 0 disk
├─nvme0n1p1 259:2 0 953.9G 0 part
└─nvme0n1p9 259:3 0 8M 0 part
nvme1n1 259:1 0 953.9G 0 disk
├─nvme1n1p1 259:4 0 953.9G 0 part
├─nvme1n1p2 259:5 0 1000K 0 part
└─nvme1n1p9 259:6 0 8M 0 part
(chroot) livecd ~ # fdisk -l /dev/nvme1n1
Disk /dev/nvme1n1: 953.89 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: PC601A NVMe SK hynix 1TB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 21BB586E-A238-0D40-852D-648695E2BCEA
Device Start End Sectors Size Type
/dev/nvme1n1p1 2048 2000392191 2000390144 953.9G Solaris /usr & Apple ZFS
/dev/nvme1n1p2 48 2047 2000 1000K BIOS boot
/dev/nvme1n1p9 2000392192 2000408575 16384 8M Solaris reserved 1
Partition table entries are not in disk order.
(chroot) livecd ~ # fdisk -l /dev/nvme0n1
Disk /dev/nvme0n1: 953.89 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: PC601A NVMe SK hynix 1TB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: C58C21EA-13A1-B94B-8DDA-4D774FD9C76A
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 2000392191 2000390144 953.9G Solaris /usr & Apple ZFS
/dev/nvme0n1p9 2000392192 2000408575 16384 8M Solaris reserved 1
(chroot) livecd ~ #
As you can see from the output above I have a gpt disk for only /dev/nvme0n1 disk. Not too sure if this has something to do with it all.
(chroot) livecd ~ # grub-install --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
(chroot) livecd ~ # efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0000,0003,0001,0002
Boot0000* USB NIC (IPV4) PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/Pci(0x2,0x0)/Pci(0x0,0x0)/USB(2,0)/USB(1,0)/USB(0,0)/MAC(b07b25661c51,0)/IPv4(0.0.0.00.0.0.0,0,0)N.....YM....R,Y.
Boot0001* UEFI USB SanDisk 3.2Gen1 0401ff0842e4c1a5a31616046833d609494c9ba0fc599336d7d5825ba42ccca95dea00000000000000000000d4affe21008d64188155810797295375 PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x0)/Pci(0x2,0x0)/Pci(0x0,0x0)/USB(2,0)/USB(0,0)/HD(2,MBR,0x39491dfa,0xc0,0x330c)/File(EFIBootBootX64.efi)N.....YM....R,Y.
Boot0002* UEFI USB SanDisk 3.2Gen1 0401ff0842e4c1a5a31616046833d609494c9ba0fc599336d7d5825ba42ccca95dea00000000000000000000d4affe21008d64188155810797295375 2 PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x0)/Pci(0x2,0x0)/Pci(0x0,0x0)/USB(2,0)/USB(0,0)/CDROM(1,0xc0,0xcc30)/File(EFIBootBootX64.efi)N.....YM....R,Y.
Boot0003* USB NIC (IPV6) PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/Pci(0x2,0x0)/Pci(0x0,0x0)/USB(2,0)/USB(1,0)/USB(0,0)/MAC(b07b25661c51,0)/IPv6([::]:<->[::]:,0,0)N.....YM....R,Y.
Really appreciate any tips/pointers for what ppl think I might have missed/messed up.
Thanks
question from:
https://stackoverflow.com/questions/65836216/openzfs-rootfs-issues-installing-efi-bootloader