h2. How to Create a Mirrored ZFS Storage Pool
|
The OpenSolaris installer creates a ZFS storage pool, which is a pool of devices that all the file systems in that pool share.
|
... If you have an additional disk that is the same size as the disk in the ZFS storage pool that was created during the OpenSolaris installation, you might consider creating a two-disk mirrored ZFS storage pool. A two-disk mirrored pool provides better data protection against a disk failure. |
*Tip* \- For general recommendations about ZFS storage pools, go to http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide. |
h5. Steps
|
# {include:root_step} # *Identify your existing storage pool devices.* |
... For example: {code} # zpool status pool: rpool state: ONLINE scrub: none requested config:
NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 c4d0s0 ONLINE 0 0 0
errors: No known data errors {code} # *Attach a second disk as a mirror to the existing storage pool device.* For example: {code} # zpool attach rpool c4d0s0 c4d1s0 {code} # *Verify that the device is attached.* For example: {code} # zpool status pool: rpool state: ONLINE scrub: none requested config:
NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 mirror ONLINE 0 0 0 c4d0s0 ONLINE 0 0 0 c4d1s0 ONLINE 0 0 0
errors: No known data errors {code} # *Apply the boot blocks to the newly attached disk.* For example: {code} # installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c4d1s0 {code} # *Confirm that you can boot from the newly attached disk by selecting this disk from the BIOS level.*
{include:bottom_navigation} |