[OmniOS-discuss] Moving The Root Pool

Dan McDonald danmcd at omniti.com
Tue Feb 14 14:18:53 UTC 2017


> On Feb 14, 2017, at 7:02 AM, Andre Kruger <andre at ak47.co.za> wrote:
> 
> Shall I consider the matter dead?

No!

I'd asked about some things offline:

1.) Are the SSDs larger than the HDs?  (you said yes)

2.) Which OmniOS (you said r151018).


Since the SSDs are larger, you COULD use mirroring to clone your rpool.

1.) zpool attach [-f] rpool HDD-drive SSD-drive

2.) Let the mirror completely resilver.

3.) installgrub -M /dev/rdsk/HDD-drive /dev/rdsk/SSD-drive
   (alternatively installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/SSD-drive)

4.) Reboot your system MAKING SURE YOU SELECT THE SSD TO BOOT.  This is important, because if you can't boot via SSD, you shouldn't break the HDD from the mirror.  OPTIONAL:  Unplug your HDD before booting.

If (and only if) you boot off the SSD successfully, proceed to decomission the HDD, and add the new SSD space to rpool:

5.) zpool detach rpool HDD-drive

6.) zpool online -e rpool

If you cannot boot off the SSD for some reason, reconnect the HDD, boot off of it, and detach the SSD from the rpool instead.  You'll have to try another way.

Dan



More information about the OmniOS-discuss mailing list