ZFS Mirror Boot Issue

lweidig

Active Member
Oct 20, 2011
104
2
38
Sheboygan, WI
We have a new server running that even though when installed initially booted fine, now seems to be experiencing the ZFS boot issue from the article:

https://pve.proxmox.com/wiki/Storage:_ZFS

As mentioned in the title this is two SSD drives configured in a mirror.

Code:
[FONT=courier new]# zpool status rpool[/FONT]
[FONT=courier new]  pool: rpool[/FONT]
[FONT=courier new] state: ONLINE[/FONT]
[FONT=courier new]  scan: resilvered 160M in 0h0m with 0 errors on Mon Nov  2 05:14:57 2015[/FONT]
[FONT=courier new]config:[/FONT]
[FONT=courier new]
[/FONT]
[FONT=courier new]        NAME        STATE     READ WRITE CKSUM[/FONT]
[FONT=courier new]        rpool       ONLINE       0     0     0[/FONT]
[FONT=courier new]          mirror-0  ONLINE       0     0     0[/FONT]
[FONT=courier new]            sda2    ONLINE       0     0     0[/FONT]
[FONT=courier new]            sdb2    ONLINE       0     0     0[/FONT]

However, if we use the boot option to select the boot drive and select the second drive in the pool it will boot just fine. So it seems like it might be more a grub issue with the boot loader on the first drive. I have not worked a lot with ZFS drives being the boot and wonder what the correct method is to reinstall grub on the first drive to see if that fixes things or possibly the issue is something else.

Looking for advice to resolve this, do not want to have to manage the boot process every time this device needs to be restarted. Thanks!
 
if you have to install grub on the second disk you can use the iso(debug mode) and use grub-install