Error: V-35-479: Cluster not completely configured for cfsnfs [nfs]
When running cfsshare command, it checks the Veritas Cluster System (VCS) configuration to confirm whether Cluster File System (CFS) and Clustered Network File System (CNFS) have been configured or not .
VCS must be up and running. cfscluster config must have been run to configure the required service group and resource, before you can run the cfsshare command with other options.
The cfsshare command can be used to configure or unconfigure CNFS.
You can use the cfsshare command as follows:
o To share or unshare an existing CFSMount resource already in VCS configuration. o To create and share a CFSMount resource corresponding to a cluster mounted filesystem. Or unshare and delete an existing CFSMount resource that has already been shared. o To add and delete the Virtual IP addresses through which the NFS shares need to be accessed.
The required VCS configurations (VCS service group and VCS resource) for CFS and CNFS are defined in /opt/VRTSvxfs/cfs/lib/cfsadm.env as the following two variables.
CFSSG_SVC_GRP=cfsnfssg <<<< VCS service group cfsnfssg must be configured in VCS
CFSLOCKS_RES=cfsnfs_locks <<<< VCS resource cfsnfs_locks must be configured in VCS
The VCS service group cfsnfssg and VCS resource cfsnfs_locks must be configured in VCS and the names must exactly as defined above. Changing the names will cause cfsshare to fail as described in this article. You can run the following two commands to check if they are configured in VCS.
# hagrp -display cfsnfssg
# hares -display cfsnfs_locks
The above defined VCS service group name and resource name are used in Veritas Storage Foundation High Availability (SF/HA) version 5.1 . Please check the "/opt/VRTSvxfs/cfs/lib/cfsadm.env" for the exact names if different versions are used.
In a Veritas Storage Foundation Cluster File System (SFCFS) cluster with Clustered Network File System (CNFS) configured, the following are the Veritas Cluster Server (VCS) service groups:
cvm: This service group controls the Cluster Volume Manager (CVM) and the CFS shared resources. This group is automatically created during the configuration phase of CFS installation. This service group manages CVM and the basic CFS functionality that is provided through vxfsckd.
cfsnfssg: This service group contains the CFS mount resources for the NFS share as well as the shared CFS mount resources that are needed for lock management. This service group consists of the NFS resource and the share resource apart from the CVMVoldg and the CFSMount resources.
cvm and cfsnfssg are configured as parallel service groups and are online on all the nodes.
Here is the man page for cfsshare in SFCFS version 5.1.
If these names are changed, cfsshare will fail and the name must be changed back to default names as defined in /opt/VRTSvxfs/cfs/lib/cfsadm.env.
CFSSG_DUMMY_SVC_GRP=cfsnfssg_dummy
CFSSG_SVC_GRP=cfsnfssg
CFSLOCKS_RES=cfsnfs_locks
The following is a sample main.cf with the service group and resource properly defined.
group cfsnfssg (
SystemList = { test01 = 0, test02 = 1 }
Frozen = 1
AutoFailOver = 0
Parallel = 1
AutoStartList = { test01, test02 }
)
.......
CFSMount cfsnfs_locks (
Critical = 0
NodeList = { test01, test02 }
BlockDevice = "/dev/vx/dsk/testdg/test01"
MountPoint = "/locks"
)
CVMVolDg cvmvoldg_locks (
Critical = 0
CVMActivation @test01 = sw
CVMActivation @test02 = sw
CVMVolume = { test01 }
CVMDiskGroup = vxlockdg
)
Applies To
Veritas Storage Foundation for Cluster File System (SFCFS) version 5.0 and above in Unix environment