How To Increase rpool Size On Solaris 11 (Requires a Reboot)
Posted by Sandi Widianto, Last modified by Sandi Widianto on 21 November 2022 03:17 PM
1. Assuming that your initial rpool has the disk c0t0d0s0 and that you have a new disk c1t1d0s0 that is the size that you want to expand to. We will attach the new device c1t1d0s0 to the exisitng rpool.
# zpool attach rpool c0t0d0s0 c1t1d0s0
2. Now wait for the resilvering to complete. You can track this with :
# zpool status rpool
3. At this point, you can reboot from the mirror disk to verify that it works.
# init 6 ( or init 0 if you have autoboot set to true) ok> boot /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/disk@1
– On x86, you would configure the system BIOS.
4. And then we detach the old sub-mirror.
# zpool split rpool oldrpool c0t0d0s0
Now if you look at the pool it will show only one device (the new disk) but at the old size. You will also see a pool called “oldrpool” with the old disk that we split off. At this point, you should be able to boot from either of the two disks, but each will be a distinct rpool.
5. In order to expand the rpool size to that of the new disks we added, we need to tell zfs to expand to the capacity of the new disk. To do so, we have to set the autoexpand property on.
# zpool set autoexpand=on rpool