How to Add a Local ZFS Storage Pool to a Specific Zone-Cluster Node (CLI)

Perform this procedure to add a local ZFS storage pool to a specific zone-cluster node. The local ZFS pool is not managed by Oracle Solaris Cluster software but is instead passed to the underlying Oracle Solaris zone.

Perform all steps of the procedure from a node of the global cluster.

  1. Assume the root role on a node of the global cluster that hosts the zone cluster.
  2. Create the local ZFS pool that you want to configure to a specific zone-cluster node.

    Use local disks of the global-cluster node that hosts the intended zone-cluster node.

  3. Add the pool to the zone-cluster configuration in the node scope.
    phys-schost# clzonecluster configure zoneclustername
    clzc:zoneclustername> select node physical-host=baseclusternode
    clzc:zoneclustername:node> add dataset
    clzc:zoneclustername:node:dataset> set name=localZFSpoolname
    clzc:zoneclustername:node:dataset> end
    clzc:zoneclustername:node> end
    clzc:zoneclustername> verify
    clzc:zoneclustername> commit
    clzc:zoneclustername> exit
    set name=localZFSpoolname

    Specifies the name of the local ZFS pool

  4. Verify the addition of the ZFS pool.
    phys-schost# clzonecluster show -v zoneclustername

Example 6-9 Adding a Local ZFS Pool to a Zone-Cluster Node (CLI)

This example adds the local ZFS pool local_pool for use by a node of the sczone zone cluster. This zone-cluster node is hosted on global-cluster node phys-schost-1.

phys-schost-1# clzonecluster configure sczone
clzc:sczone> select node physical-host=phys-schost-1
clzc:sczone:node> add dataset
clzc:sczone:node:dataset> set name=local_pool
clzc:sczone:node:dataset> end
clzc:sczone:node> end
clzc:sczone> verify
clzc:sczone> commit
clzc:sczone> exit

phys-schost-1# clzonecluster show -v sczone
…
--- Solaris Resources for phys-schost-1 ---
…
Resource Name:                                dataset
name:                                          local_pool