Go to main content

Installing and Configuring an Oracle® Solaris Cluster 4.4 Environment

Exit Print View

Updated: November 2019
 
 

Adding Local File Systems to a Specific Zone-Cluster Node

This section describes how to add file systems that are dedicated to a single zone-cluster node. To instead configure file systems for use by the entire zone cluster, go to Adding File Systems to a Zone Cluster.

This section contains the following procedures:

How to Add a Local File System to a Specific Zone-Cluster Node (CLI)

Perform this procedure to add a local file system to a single, specific zone-cluster node of a specific zone cluster. The file system is not managed by Oracle Solaris Cluster software but is instead passed to the underlying Oracle Solaris zone.


Note -  To add a highly available local file system to a zone cluster, perform procedures in How to Add a Highly Available Local File System to a Zone Cluster (clsetup) or How to Add a Highly Available Local File System to a Zone Cluster (CLI).
  1. Assume the root role on a node of the global cluster that hosts the zone cluster.

    Note -  Perform all steps of this procedure from a node of the global cluster.
  2. Create the local file system 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 file system 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 fs
    clzc:zoneclustername:node:fs> set dir=mountpoint
    clzc:zoneclustername:node:fs> set special=disk-device-name
    clzc:zoneclustername:node:fs> set raw=raw-disk-device-name
    clzc:zoneclustername:node:fs> set type=FS-type
    clzc:zoneclustername:node:fs> end
    clzc:zoneclustername:node> end
    clzc:zoneclustername> verify
    clzc:zoneclustername> commit
    clzc:zoneclustername> exit
    dir=mountpoint

    Specifies the file-system mount point

    special=disk-device-name

    Specifies the name of the disk device

    raw=raw-disk-device-name

    Specifies the name of the raw-disk device

    type=FS-type

    Specifies the type of file system


    Note -  Enable logging for UFS file systems.
  4. Verify the addition of the file system.
    phys-schost# clzonecluster show -v zoneclustername
Example 19  Adding a Local File System to a Zone-Cluster Node (CLI)

This example adds a local UFS file system /local/data 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 fs
clzc:sczone:node:fs> set dir=/local/data
clzc:sczone:node:fs> set special=/dev/md/localdg/dsk/d1
clzc:sczone:node:fs> set raw=/dev/md/localdg/rdsk/d1
clzc:sczone:node:fs> set type=ufs
clzc:sczone:node:fs> add options [logging]
clzc:sczone:node:fs> 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:                                fs
dir:                                           /local/data
special:                                       /dev/md/localdg/dsk/d1
raw:                                           /dev/md/localdg/rdsk/d1
type:                                          ufs
options:                                       [logging]
cluster-control:                               false ...

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 20  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