How to verify the integrity of the VERITAS Cluster Server main.cf file
The hacf command can be used to verify the integrity of the main .cf file if any manual changes were made. The main.cf file is the VERITAS Cluster Server (VCS) configuration file. Any changes made to the main.cf file should be performed with VCS services stopped on all nodes in the cluster.
hacf -verify <conf-dir>
If the prompt location is in the C:\Program Files\VERITAS\Cluster Server\conf\config directory, a "." must be used after the hacf -verify. To access the config directory from the root of a drive, the entire path must be in double quotes.
Change directories to the C:\Program Files\VERITAS\Cluster Server\conf\config directory (Figure 1). (This is the default VCS install path. Some installations will not use this path. Run echo %vcs_home% to check the VCS installation path)
If there are no errors in the main.cf, no data will be returned (Figure 2).
If there were errors in the main.cf, an error will be returned stating the line number of the error. In this case, the line number is 205 (Figure 3).
To correct this, open the main.cf file and go to the line that was returned from the hacf -verify command. In this case, it is line 205 (Figure 4).
Delete or correct the line and run the verify again. If no errors are returned, start the VCS services on the node on which the main.cf was modified.
Note: Starting the services on any other node will overwrite all changes made to the main.cf file.