Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Grub boot failure after zpool/zfs upgrade

291 views
Skip to first unread message

stuart

unread,
Aug 5, 2011, 3:42:32 PM8/5/11
to
I just installed the latest kernel patch (144501-19) on a test system
and it booted fine after applying cleanly, however, after running
zpool upgrade (version 22 to 29) and zfs upgrade (version 4 to 5) on
the root pool it now boots only as far as a generic grub menu.

Did I miss a step where a manual grub-install is required after a
zpool/zfs upgrade (or something else)? Any easy way to fix this now
that ZFS version is newer than the S10U9 ISO image so zpool import
fails in rescue mode (as expected)?

John D Groenveld

unread,
Aug 5, 2011, 9:23:50 PM8/5/11
to
In article <fac85ba7-cf77-485a...@h21g2000pre.googlegroups.com>,

stuart <stuart.b...@gmail.com> wrote:
>zpool/zfs upgrade (or something else)? Any easy way to fix this now
>that ZFS version is newer than the S10U9 ISO image so zpool import
>fails in rescue mode (as expected)?

Thanks for the heads-up.

While you wait for S10U10, can you import your rpool after
booting S11X LiveCD/USB?

John
groe...@acm.org

cindy

unread,
Aug 10, 2011, 12:46:44 PM8/10/11
to

HI Stuart,

I thought this issue was explained in the patch README. Can you check,
please?

Yes, you need to re-install grub on the boot disk:

# /usr/sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/
c0d0s0

I'm not sure if you still need to update the boot archive:

# bootadm update-archive

Thanks,

Cindy


Scott

unread,
Aug 10, 2011, 1:01:37 PM8/10/11
to

Maybe this will help you in finding the fix?
(Borrowed from http://southbrain.com/south/2011/08/solaris-upgrade-zfs-root-pool-grub.html)
# bootadm update-archive
# touch /rpool/boot/grub/bootsign/pool_rpool
# /boot/solaris/bin/update_grub
Creating GRUB menu in /
Installing grub on /dev/rdsk/c1t0d0s0
stage1 written to partition 0 sector 0 (abs 16065)
stage2 written to partition 0, 273 sectors starting at 50 (abs 16115)

If you boot from a DVD copy of Solaris it'll have the older zpool rev
level.
It won't be able to deal with the rev-29 zpool.
You'll probably have to build up a new system on a spare drive, try
the root zpool upgrade in
Mr. Gienger's blog to verify his procedure works, then somehow use
that built version
to apply his method to your hard drive. It looks like the update_grub
script needs to be used with a "-R",
alternate root, path.

This page also looks like it will help you:
http://204.152.191.100/wiki/index.php/ZFS_rpool_Upgrade_and_GRUB
In particular, how to mount the rpool so you can perform update_grub,
and with using the command(s) with the "-R" option.

Regards, Scott

0 new messages