How to verify the integrity of the VERITAS Cluster Server main.cf file
| Article:TECH11480 | | | Created: 2001-01-07 | | | Updated: 2009-01-28 | | | Article URL http://www.symantec.com/docs/TECH11480 |
Problem
How to verify the integrity of the VERITAS Cluster Server main.cf file
Solution
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.
Usage:
hacf -verify <conf-dir>
If the prompt location is in the X:\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 X:\Program
Files\VERITAS\Cluster Server\conf\config directory (Figure 1). (This is the
default VCS install path. Some installations will not use this
path.)
Figure 1
If there are no errors in the main.cf, no data
will be returned (Figure 2).
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).
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).
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.









Thank you.