How to Add a Highly Available Local File System to a Zone Cluster (CLI)
Perform this procedure to add a highly available local file system on the global cluster for use by the zone cluster.
Note:
Alternatively, you can use theclsetup
utility to perform this task. See How to Add a Highly Available Local File System to a Zone Cluster (clsetup). To add a ZFS pool to a zone cluster, instead perform procedures in How to Add a ZFS Storage Pool to a Zone Cluster (clsetup). Or, 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.
Example 6-3 Adding a Highly Available Local File System to a Zone Cluster (CLI)
This example adds the local file system /global/oracle/d1
for use by the sczone
zone cluster.
phys-schost-1# clzonecluster configure sczone clzc:sczone> add fs clzc:sczone:fs> set dir=/global/oracle/d1 clzc:sczone:fs> set special=/dev/md/oracle/dsk/d1 clzc:sczone:fs> set raw=/dev/md/oracle/rdsk/d1 clzc:sczone:fs> set type=ufs clzc:sczone:fs> add options [logging] clzc:sczone:fs> end clzc:sczone> verify clzc:sczone> commit clzc:sczone> exit phys-schost-1# clzonecluster show -v sczone … Resource Name: fs dir: /global/oracle/d1 special: /dev/md/oracle/dsk/d1 raw: /dev/md/oracle/rdsk/d1 type: ufs options: [logging] cluster-control: [true] …
Next Steps
Configure the file system to be highly available by using an HAStoragePlus resource. The HAStoragePlus resource manages the mounting of the file system on the zone-cluster node that currently host 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.