Salam, i would like to share how to add new disk and mirroring it to existing disk. Here i will show adding it by using vmware and it will demonstrate real situation. At the end of this, i also demonstrate how to detach the disk in case of replacing disk.
Figure 1: zpool status shows current single disk which is c0d0s0
Figure 2: In order to make changes, we have to edit virtual machine settings.
Figure 3: Choose hard disk
Figure 4: Select disk type, in this case we will use IDE.
Figure 5: Please rename the vmdk formatted file if you want to and finish the wizard.
Figure 6: Click ok to close the settings dialog box.
Figure 7: Image above shows the newly added disk that system has been detected. The command is echo | format
Figure 8: Display current vtoc table for existing slice. prtvtoc /dev/rdsk/c0d0s0
Figure 9: Copy current vtoc table to new slice vtoc table. prtvtoc /dev/rdsk/c0d0s0 | fmthard -s – /dev/rdsk/c0d1s0
Figure 10: Atatch newly added disk to current disk as a mirrored disk. zpool attach -f rpool c0d0s0 c0d1s0
Figure 10: View the status for the zpool. It shows new disk has been attached and mirrored to current pool. zpool status
Figure 11: The status for mirroring is still resilvering and it takes time before we can make any changes.
Figure 12: Resilvering the disk has completed.
Figure 13: To replace one of the disk, we have to detach first from its mirror. The command we can use is zpool detach rpool c0d1s0
Figure 14: After detach the disk to be replaced, please verify it zpool status and supposedly it will shows as above, just one disk.