In general, the root pool disk is installed automatically when the system is installed. Use this procedure if you need to replace a root pool disk or attach a new disk as a mirrored root pool disk.
Before You Begin
Before you perform this procedure, ensure that you have completed the following tasks:
Installed the new or replacement disk. See Adding or Replacing Disks for ZFS File Systems.
Verified that the disk has a VTOC label.
Use the prtvtoc path/disk-name command to verify. See Displaying Disk Label Information for other commands you can use. If you need to change the label from EFI to VTOC, see Creating Disk Labels for instructions with an example in Example 44, Labeling a Disk With an SMI Label.
Verified that slice 0 uses most of the disk's size for optimal configuration.
Use the Format utility to verify. If you need to change the slice configuration, see Modifying Slices or Partitions with an example in Example 45, Resizing a Disk Slice.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.
# zpool replace root-pool disk
Perform the following steps if you are replacing a failed disk with a new disk.
If required, bring the new disk online.
# zpool online root-pool disk
Verify that the new disk is resilvered.
# zpool status root-pool
Skip this step and proceed to the next step if you do not want to install Oracle Solaris on the new disk. Otherwise, install Oracle Solaris and then boot the system.
Apply the boot blocks after the new disk is resilvered.
# bootadm install-bootloader
For more information about booting Oracle Solaris systems, see the following resources:
Verify that the boot blocks are installed by rebooting the system to run level 3.
# init 6
Perform the following steps if you are attaching a new disk to create a mirrored root pool or attaching a larger disk to replace a smaller disk.
Attach the new disk to the ZFS pool.
# zpool attach root-pool disk new-disk
The following example attaches the new disk c2t1d0s0 to the current rpool on c2t0d0s0.
# zpool attach rpool c2t0d0s0 c2t1d0s0
The zpool attach command also automatically applies the boot blocks.
Verify that you can boot from the new disk.
If you are replacing an old disk with the new, then after the system boots from the new disk, detach the old disk.
# zpool detach root-pool old-disk
For example, if you are replacing c2t0d0s0 with c2t1d0s0, you would type the following:
# zpool detach rpool c2t0d0s0