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.
Pick a pool name.
The pool name is used to identify the storage pool when you are using the zpool or zfs commands. Most systems require only a single pool, so you can pick any name that you prefer, provided it satisfies the naming requirements outlined in ZFS Component Naming Requirements.
Create the pool.
For example, create 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 a ZFS Storage Pool.
For more information about how device usage is determined, see Detecting In-Use Devices.
View the results.
You can determine if your pool was successfully created by using the zpool list command.
# zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT tank 80G 137K 80G 0% ONLINE - |
For more information about viewing pool status, see Querying ZFS Storage Pool Status.