Perform this procedure to remove a file system from a zone cluster. Supported file system types in a zone cluster include UFS, Vxfs, stand-alone QFS, shared QFS, ZFS (exported as a data set), and loopback file systems. For instructions on adding a file system to a zone cluster, see Adding File Systems to a Zone Cluster in Sun Cluster Software Installation Guide for Solaris OS.
The phys-schost# prompt reflects a global-cluster prompt. This procedure provides the long forms of the Sun Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix B, Sun Cluster Object-Oriented Commands.
Become superuser on a node of the global cluster that hosts the zone cluster. Some steps in this procedure are performed from a node of the global cluster. Other steps are performed from a node of the zone cluster.
Delete the resources related to the file system being removed.
Identify and remove the Sun Cluster resource types, such as HAStoragePlus and SUNW.ScalMountPoint, that are configured for the zone cluster's file system that you are removing.
phys-schost# clresource delete -F -Z zoneclustername fs_zone_resources |
If applicable, identify and remove the Sun Cluster resources of type SUNW.qfs that are configured in the global cluster for the file system that you are removing.
phys-schost# clresource delete -F fs_global_resouces |
Use the -F option carefully because it forces the deletion of all the resources you specify, even if you did not disable them first. All the resources you specified are removed from the resource-dependency settings of other resources, which can cause a loss of service in the cluster. Dependent resources that are not deleted can be left in an invalid state or in an error state. For more information, see the clresource(1CL) man page.
If the resource group for the removed resource later becomes empty, you can safely delete the resource group.
Determine the path to the file-system mount point directory. For example:
phys-schost# clzonecluster configure zoneclustername |
Remove the file system from the zone-cluster configuration.
phys-schost# clzonecluster configure zoneclustername |
clzc:zoneclustername> remove fs dir=filesystemdirectory |
clzc:zoneclustername> commit |
The file system mount point is specified by dir=.
Verify the removal of the file system.
phys-schost# clzonecluster show -v zoneclustername |
This example shows how to remove a file system with a mount-point directory (/local/ufs-1) that is configured in a zone cluster called sczone. The resource is hasp-rs and is of the type HAStoragePlus.
phys-schost# clzonecluster show -v sczone ... Resource Name: fs dir: /local/ufs-1 special: /dev/md/ds1/dsk/d0 raw: /dev/md/ds1/rdsk/d0 type: ufs options: [logging] ... phys-schost# clresource delete -F -Z sczone hasp-rs phys-schost# clzonecluster configure sczone clzc:sczone> remove fs dir=/local/ufs-1 clzc:sczone> commit phys-schost# clzonecluster show -v sczone |
This example shows to remove a ZFS file systems in a ZFS pool called HAzpool, which is configured in the sczone zone cluster in resource hasp-rs of type SUNW.HAStoragePlus.
phys-schost# clzonecluster show -v sczone ... Resource Name: dataset name: HAzpool ... phys-schost# clresource delete -F -Z sczone hasp-rs phys-schost# clzonecluster configure sczone clzc:sczone> remove dataset name=HAzpool clzc:sczone> commit phys-schost# clzonecluster show -v sczone |
This example shows how to remove a configured shared file system with a mount-point directory of /db_qfs/Data. The file system has the following characteristics:
The shared QFS file system is configured in the Data-rs resource of type SUNW.qfs. This file system is configured in a global cluster for a zone cluster with the QFSFileSystem extension property set to /<sczone_root_path> /db_qfs/Data.
The shared QFS file system is monitored by scal-Data-rs of type SUNW.ScalMountPoint configured in a zone cluster.
phys-schost# clzonecluster show -v sczone ... Resource Name: fs dir: /db_qfs/Data special: Data type: samfs ... phys-schost# clresource delete -F -Z sczone scal-Data-rs phys-schost# clresource delete -F Data-rs phys-schost# clzonecluster configure sczone clzc:sczone> remove fs dir=/db_qfs/Data clzc:sczone> commit phys-schost# clzonecluster show -v sczone |