During the install, OpenSolaris creates a ZFS pool, called rpool, and installs to it. Let’s set up two hard drives for redundancy (i.e., RAID-1).
Before (note that rpool consists of a single drive):
james@opensolaris:~# zpool status
pool: rpool
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c5t0d0s0 ONLINE 0 0 0
errors: No known data errors
Attaching the second hard drive to the pool:
james@opensolaris:~# zpool attach -f rpool c5t0d0s0 c5t1d0s0
Please be sure to invoke installgrub(1M) to make 'c5t1d0s0' bootable.
Make sure to wait until resilver is done before rebooting.
Need to install grub to the second hard drive to make it bootable should the primary go offline:
james@opensolaris:~# installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c5t1d0s0
Updating master boot sector destroys existing boot managers (if any).
continue (y/n)?y
stage1 written to partition 0 sector 0 (abs 16065)
stage2 written to partition 0, 273 sectors starting at 50 (abs 16115)
stage1 written to master boot sector
And we’re done…
james@opensolaris:~# zpool status
pool: rpool
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
c5t0d0s0 ONLINE 0 0 0
c5t1d0s0 ONLINE 0 0 0
errors: No known data errors
