test veritas logo


cfsmount(1M)

NAME

cfsmount, cfsumount - mount or unmount a cluster file system

SYNOPSIS

cfsmount mount_point [ [ node_name ] ...]

cfsmount all [ [ node_name ] ...]

cfsumount [-c] mount_point [ [ node_name ] ...]

cfsumount all [ [ node_name ] ...]

AVAILABILITY

VRTScavf

DESCRIPTION

cfsmount mounts a shared volume associated with a mount point (as specified in the corresponding cluster-mount definition) on the specified nodes. If no node names are specified, the shared volume is mounted on all associated nodes in the cluster. Before running cfsmount, the cluster mount instance for the shared volume must be defined by the cfsmntadm add command.

cfsumount unmounts a shared volume associated with a mount point (as specified in the corresponding cluster-mount definition) on the specified nodes. If no node names are specified, the shared volume is unmounted on all associated nodes in the cluster. If the unmount fails, cfsumount does a forced unmount of the volume. If the node unmounting the shared volume is the primary of the cluster file system, the primaryship is moved to another node in the cluster before unmounting the file system.

NOTES

If the mount_point does not exist, create it before attempting to mount the file system on the cluster nodes.

If a shared volume is being mounted for the first time, cfsmount enables (starts) the shared disk group and volume.

These commands can be run from any node in the cluster.

Only a privileged user can run this command.

KEYWORDS

cfsmount all
  mounts all CFS file systems managed by VCS on all nodes.
cfsumount all
  unmounts all CFS file systems managed by VCS on all nodes.

OPTIONS

-c Force unmount the specified file system.

ARGUMENTS

mount_point
  The mount point representing the cluster mount with which a shared volume is associated. If no shared volume is associated with this mount point, the command fails.
node_name List of node names on which to mount/unmount the shared volume. These nodes must be part of the cluster nodes as defined by the cfsmntadm add command. If no nodes are specified, the shared volume is mounted/unmounted on all the nodes in the cluster with which it is associated.

EXAMPLES

To mount a shared volume associated with the mount point /mnt1 on both nodes of a 2-node cluster (node1 and node2), from node1 enter:

cfsmount /mnt1

To mount a shared volume associated with the mount point /mnt1 on only one node of a 2-node cluster (node1 and node2), on either node enter:


cfsmount /mnt1 node1

The above examples also work with the cfsumount command.

To mount all CFS file systems managed by VCS on node1, enter:


cfsmount all node1

To unmount all CFS file systems managed by VCS on all nodes, enter:


cfsumount all

EXIT CODES

cfsmount and cfsumount return an exit value of 0 if the command completes successfully, and a value greater than 0 if the command fails.

SEE ALSO

cfscluster(1M), cfsdgadm(1M), cfsmntadm(1M)


VxFS 7.4 cfsmount(1M)