The cfsmount command is used by VCS to mount Cluster File System (CFS) resources. If the CFS filesystem is not in the VCS configuration, then the cfsmount command will fail.
The CFS filesystem can be added to the VCS configuring using the cfsmntadm command.
For example:
To add the following CFS filesystem to the VCS configuration:
diskgroup =datadg
volume = datavol
mount point = /datavol
service group name =datasg
mount options = cluster,rw
nodes = sys27,sys28
the following cfsmntadm command would be used:
# cfsmntadm add datadg datavol /datavol datasg all=cluster,rw sys27 sys28
Mount Point is being added...
/datavol added to the cluster-configuration
The above command below will create Service Group datasg with CFSMount and CVMVoldg resources and will create the necessary resource dependencies and create a dependency between this servicegroup and the cvm servicegroup.
Note: When the cfsmntadm command is used to create the Service Group, the default value for AutoFailOver and Critical attributes is 0.
Once the group and resources are created, the cfsmount command can be used to mount the cfs filesystems.
eg.
# cfsmount /datavol
Mounting...
[/dev/vx/dsk/datadg/datavol] mounted successfully at /datavol on sys27
[/dev/vx/dsk/datadg/datavol] mounted successfully at /datavol on sys28
In order to delete datasg and its associated resources, the servicegroup can be offlined on all the cluster nodes and the 'cfsmntadm delete' command used to remove the resources.
eg.
# cfsmntadm delete /datavol
Mount Point is being removed...
/datavol deleted successfully from cluster-configuration