Managing ZFS File Systems in Oracle® Solaris 11.2

Exit Print View

Updated: December 2014
 
 

How to Create a ZFS Storage Pool

  1. Become root or assume an equivalent role with the appropriate ZFS rights profile.

    For more information about the ZFS rights profiles, see ZFS Rights Profiles.

  2. Pick a name for your storage pool.

    This name is used to identify the storage pool when you are using the zpool and zfs commands. Pick any pool name that you prefer, but it must satisfy the naming requirements in ZFS Component Naming Requirements.

  3. Create the pool.

    For example, the following command creates a mirrored pool that is named tank:

    # zpool create tank mirror c1t0d0 c2t0d0

    If one or more devices contains another file system or is otherwise in use, the command cannot create the pool.

    For more information about creating storage pools, see Creating ZFS Storage Pools. For more information about how device usage is determined, see Detecting In-Use Devices.

  4. View the results.

    You can determine if your pool was successfully created by using the zpool list command.

    # zpool list
    NAME                    SIZE    ALLOC   FREE    CAP  HEALTH     ALTROOT
    tank                     80G    137K     80G     0%  ONLINE     -

    For more information about viewing pool status, see Querying ZFS Storage Pool Status.