This procedure describes how to convert the default root pool installation into a redundant configuration. This procedure applies to certain x86 systems and SPARC systems without GPT-aware firmware whose disks have the SMI (VTOC) label.
Before You Begin
Prepare the second disk to attach to the root pool as follows:
SPARC: Confirm that the disk has an SMI (VTOC) disk label and that slice 0 contains the bulk of the disk space. If you need to relabel the disk and create a slice 0, see How to Replace a ZFS Root Pool (VTOC) in Managing Devices in Oracle Solaris 11.3.
x86: Confirm that the disk has an fdisk partition, an SMI disk label, and a slice 0. If you need to repartition the disk and create a slice 0, see Modifying Slices or Partitions in Managing Devices in Oracle Solaris 11.3.
# zpool status root-pool
The configuration would display the disk's slice 0, as shown in the following example for rpool.
# zpool status rpool pool: rpool state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 c2t0d0s0 ONLINE 0 0 0 errors: No known data errors
# zpool attach root-pool current-disk new-disk
Make sure that you include the slice when specifying the disk, such as c2t0d0s0. The correct disk labeling and the boot blocks are applied automatically.
If resilvering has been completed, the output includes a message similar to the following:
scan: resilvered 11.6G in 0h5m with 0 errors on Fri Jul 20 13:57:25 2014
# zpool set autoexpand=on root-pool
The following example shows the difference in the rpool's disk space after the autoexpand property is enabled.
# zpool list rpool NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT rpool 29.8G 152K 29.7G 0% 1.00x ONLINE - # zpool set autoexpand=on rpool # zpool list rpool NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT rpool 279G 146K 279G 0% 1.00x ONLINE -