Go to main content

Managing Devices in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 

Configuring a Disk for a ZFS Non-Root File System

A disk that is set up for a non-root ZFS file system is relabeled automatically when the pool is created or when the disk is added to the pool. If you use a whole disk either to create a pool or to add to a ZFS storage pool, an EFI label is applied.

Most modern bus types support hot-plugging, which enables a system to immediately recognize a disk that you insert into an empty slot. For more information about hot-plugging devices, see Dynamically Configuring Devices.

How to Set Up a Disk for a ZFS Non-Root File System

This procedure 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.

  1. Become an administrator.
  2. Launch the Format utility to verify that the new disk is listed in the output and therefore accessible.
    # format
  3. Type quit to exit the Format utility.
  4. Replace the root pool on the new disk.
    # zpool replace non-root disk
  5. If required, bring the new disk online.
    # zpool online non-root disk
  6. Verify that the new disk is resilvered.
    # zpool status non-root
  7. Attach the new disk to the ZFS pool.
    # zpool attach root-pool old-disk new-disk
Example 56  Setting Up a Disk for a ZFS Non Root Pool

In this example, the new disk c1t1d0 is installed for the ZFS non root pool tank.

# zpool replace tank c1t1d0
# zpool online tank c1t1d0
# zpool status tank
# zpool attach tank mirror c1t1d0 c2t0d0