1

I am mirroring a zfs rpool for a whole root zone to move from one storage array to another. I have mirrored the disk, but do I need to install a boot block on the new disk?

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
user1712037
  • 141
  • 1
  • 2
  • 9

1 Answers1

1

Yes, see How to Create a Mirrored Root Pool (Post Installation).

Apply boot blocks to the second disk after resilvering is complete.

sparc# installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c1t1d0s0

x86# installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1t1d0s0

Verify that you can boot successfully from the second disk.

user121391
  • 1,272
  • 7
  • 19
  • Thanks. I knew you did for the Global OS, but wasn't sure on the zones. – user1712037 Jul 28 '17 at 15:53
  • zones don't get boot blocks as they share the kernel w/the global. Though I have yet to play with kernel zones on v11. – sleepyweasel Jul 28 '17 at 16:47
  • It doesn't hurt to install it, but I believe that the boot block is now copied in a mirrored rpool -- at least on SPARC in later releases of v10, as well as in v11 of Solaris. – sleepyweasel Jul 28 '17 at 20:44
  • @user1712037 Sorry, I did not read about the zones in your question, so the answer was just about the normal system. – user121391 Jul 31 '17 at 06:08
  • 1
    Please notice that you have to use installboot on global zone in Solaris 10. On Solaris 11.1 this is no longer necessary unless you are installing the boot disks in a different pool: https://docs.oracle.com/cd/E26502_01/html/E29007/gjtuk.html – BitsOfNix Jul 31 '17 at 07:46