How to Add a UFS Cluster File System to a Zone Cluster (CLI)
Perform this procedure to add a UFS cluster file system for use by a zone cluster.
Note:
Alternatively, you can use theclsetup
utility to perform this task. See How to Add a Cluster File System to a Zone Cluster (clsetup).
Example 6-6 Adding a UFS Cluster File System to a Zone Cluster (CLI)
The following example shows how to add a cluster file system with mount point /global/apache
to a zone cluster. The file system is available to a zone cluster using the loopback mount mechanism at the mount point /zone/apache
.
phys-schost-1# vi /etc/vfstab #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # /dev/md/oracle/dsk/d1 /dev/md/oracle/rdsk/d1 /global/apache ufs 2 yes global, logging phys-schost-1# clzonecluster configure zone-cluster-name clzc:zone-cluster-name> add fs clzc:zone-cluster-name:fs> set dir=/zone/apache clzc:zone-cluster-name:fs> set special=/global/apache clzc:zone-cluster-name:fs> set type=lofs clzc:zone-cluster-name:fs> end clzc:zone-cluster-name> verify clzc:zone-cluster-name> commit clzc:zone-cluster-name> exit phys-schost-1# clzonecluster show -v sczone … Resource Name: fs dir: /zone/apache special: /global/apache raw: type: lofs options: [] cluster-control: true …
Next Steps
Configure the cluster file system to be available in the zone cluster by using an HAStoragePlus resource. The HAStoragePlus resource manages the mounting of the file systems in the global cluster, and later performs a loopback mount on the zone-cluster nodes that currently host the applications that are configured to use the file system. For more information, see Configuring an HAStoragePlus Resource for Cluster File Systems in Planning and Administering Data Services for Oracle Solaris Cluster 4.4.