How to Add a Oracle HSM Shared File System to a Zone Cluster (CLI)

Perform this task to add a Oracle HSM shared file system for use by a zone cluster.

Note:

Alternatively, you can use the clsetup utility to perform this task. See How to Add a Cluster File System to a Zone Cluster (clsetup).

At this time, Oracle HSM shared file systems are only supported for use in clusters that are configured with Oracle RAC. On clusters that are not configured with Oracle RAC, you can use a single-machine Oracle HSM file system that is configured as a highly available local file system.

  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 cluster.

  2. On the global cluster, configure the Oracle HSM shared file system that you want to use in the zone cluster.

    Follow procedures for shared file systems in your Oracle HSM documentation.

  3. On each node of the global cluster that hosts a zone-cluster node, add an entry to the /etc/vfstab file for the file system that you want to mount on the zone cluster.
  4. Add the file system to the zone cluster configuration.
    phys-schost# clzonecluster configure zone-cluster-name
    clzc:zone-cluster-name> add fs
    clzc:zone-cluster-name:fs> set dir=mount-point
    clzc:zone-cluster-name:fs> set special=QFS-file-system-name
    clzc:zone-cluster-name:fs> set type=samfs
    clzc:zone-cluster-name:fs> end
    clzc:zone-cluster-name> verify
    clzc:zone-cluster-name> commit
    clzc:zone-cluster-name> exit
  5. Verify the addition of the file system.
    phys-schost# clzonecluster show -v zone-cluster-name

Example 6-7 Adding a Oracle HSM Shared File System as a Direct Mount to a Zone Cluster (CLI)

The following example shows the Oracle HSM shared file system Data-cz1 added to the zone cluster sczone. From the global cluster, the mount point of the file system is /zones/sczone/root/db_qfs/Data1, where /zones/sczone/root/ is the zone's root path. From the zone-cluster node, the mount point of the file system is /db_qfs/Data1.

phys-schost-1# vi /etc/vfstab
#device     device    mount   FS      fsck    mount     mount
#to mount   to fsck   point   type    pass    at boot   options
#
Data-cz1    -    /zones/sczone/root/db_qfs/Data1 samfs - no shared,notrace

phys-schost-1# clzonecluster configure sczone
clzc:sczone> add fs
clzc:sczone:fs> set dir=/db_qfs/Data1
clzc:sczone:fs> set special=Data-cz1
clzc:sczone:fs> set type=samfs
clzc:sczone:fs> end
clzc:sczone> verify
clzc:sczone> commit
clzc:sczone> exit

phys-schost-1# clzonecluster show -v sczone
…
Resource Name:                            fs
dir:                                       /db_qfs/Data1
special:                                   Data-cz1
raw:
type:                                      samfs
options:                                   []
…