How to Add a ZFS Storage Pool to a Zone Cluster (CLI)

Perform this procedure to add a ZFS storage pool to a zone cluster.

Note:

Alternatively, you can use the clsetup utility to perform this task. See How to Add a ZFS Storage Pool to a Zone Cluster (clsetup). To configure a ZFS storage pool to be highly available in a zone cluster, see How to Set Up the HAStoragePlus Resource Type to Make a Local ZFS File System Highly Available in Planning and Administering Data Services for Oracle Solaris Cluster 4.4.
  1. Assume the root role on a node of the global cluster that hosts the zone cluster.

    You perform all steps of this procedure from a node of the global zone.

  2. Create the ZFS storage pool on the global cluster.

    Ensure that the pool is connected on shared disks that are connected to all nodes of the zone cluster.

    See Managing ZFS File Systems in Oracle Solaris 11.4 for procedures to create a ZFS pool.

  3. Add the pool to the zone-cluster configuration.
    phys-schost# clzonecluster configure zone-cluster-name
    clzc:zone-cluster-name> add dataset
    clzc:zone-cluster-name:dataset> set name=ZFSpoolname
    clzc:zone-cluster-name:dataset> end
    clzc:zone-cluster-name> verify
    clzc:zone-cluster-name> commit
    clzc:zone-cluster-name> exit
  4. Verify the addition of the file system.
    phys-schost# clzonecluster show -v zone-cluster-name

Example 6-4 Adding a ZFS Storage Pool to a Zone Cluster (CLI)

The following example shows the ZFS storage pool zpool1 added to the zone cluster sczone.

phys-schost-1# clzonecluster configure sczone
clzc:sczone> add dataset
clzc:sczone:dataset> set name=zpool1
clzc:sczone:dataset> end
clzc:sczone> verify
clzc:sczone> commit
clzc:sczone> exit

phys-schost-1# clzonecluster show -v sczone
…
Resource Name:                                dataset
name:                                          zpool1
…

Next Steps

Configure the ZFS storage pool to be highly available by using an HAStoragePlus resource. The HAStoragePlus resource manages the mounting of file systems in the pool on the zone-cluster node that currently hosts the applications that are configured to use the file system. See Enabling Highly Available Local File Systems in Planning and Administering Data Services for Oracle Solaris Cluster 4.4.