This procedure applies to both SPARC based systems and x86 based systems. It assumes that you have installed the replacement disk on the system.
For information about adding disks, see Adding or Replacing Disks for ZFS File Systems.
# format
Ensure that the new disk is included in the command output.
# zpool replace non-root disk
# zpool online non-root disk
# zpool status non-root
# zpool attach root-pool old-disk new-disk
In this example, a new disk c1t1d0 is installed for a ZFS non root pool tank.
# zpool replace tank c1t1d0 # zpool online tank c1t1d0 # zpool status tank # zpool attach tank mirror c1t1d0 c2t0d0