Please follow the below steps to configure mirrored root pool in the OS level if you didn’t create it during the OS installation. I will always recommend you to go with the software root mirror instead of hardware mirror which I never recommend with the T-series and Oracle Solaris 11 with ZFS file system.
Step 1: Login to the machine as a root user and check the existing root pool status.
# zpool status rpool
pool: rpool
state: ONLINE
scrub: none requested
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c1t0d0s0 ONLINE 0 0 0
errors: No known data errors
Now you can find only one disk (c1t0d0s0) configured in rpool so now you can go ahead and attach a new disk to the rpool to configure mirror.
Step 2: Attach a second disk to configure a mirrored root pool.
# zpool attach rpool c1t0d0s0 c1t1d0s0
Please be sure to invoke installboot(1M) to make ‘c1t1d0s0’ bootable. Make sure to wait until resilver is done before rebooting.
Step 3: Now check the status of mirrored root pool
# zpool status rpool
pool: rpool
state: ONLINE
status: One or more devices is currently being resilvered. The pool will continue to function, possibly in a degraded state.
action: Wait for the resilver to complete. scrub: resilver in progress for 0h1m, 28.26% done, 0h4m to go
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c1t0d0s0 ONLINE 0 0 0
c1t1d0s0 ONLINE 0 0 0 4.3G resilvered
errors: No known data errors
Wait till the re-silvering gets completed ·
Step 4: Now apply boot blocks to the second disk after re-silvering completed
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
So now you have successfully configured mirrored root pool and verify that you can boot successfully from the second disk.
If you find this post is useful/helpful, please follow, like and share. Thank you for visiting my blog!!!
Leave a Reply