ZFS rpool Upgrade and GRUB
From Genunix
After a zpool version upgrade on an rpool, it is necessary to recreate all files used by grub.
After zpool upgrade, before reboot
If you prepared your upgrade carefully and did not already reboot, follow these steps before rebooting:
touch /etc/system # make bootadm re-create archive bootadm update-archive /boot/solaris/bin/update_grub
If system does not boot after rpool upgrade
If you're already lost after an upgrade, follow these steps to recover:
- Boot from a current snv CD (needs to support the zpool version you have upgraded to). ISOs available at http://www.genunix.org/
- Import your rpool
mkdir /tmp/rpool zpool import -R /tmp/rpool rpool
- if this fails, get the pool ID with zpool import, then use
zpool import -f -R /tmp/rpool <ID>
- Mount root-fs
mount -F zfs rpool/ROOT/opensolaris-X /mnt
The next steps are identical to the procedure before reboot
- update boot-archive
touch /mnt/etc/system bootadm update-archive -R /mnt
- update grub
/mnt/boot/solaris/bin/update_grub -R /mnt
- umount, export
umount /mnt zpool export rpool
