The nhadmsync.conf file is the configuration file
for the nhadm synccheck and nhadm syncgen
commands. The nhadm synccheck command compares nonreplicated
files on the master and the vice-master nodes, printing any differences to
the console. You can accept the differences using the nhadm syncgen command.
To use these commands, both master-eligible nodes must have remote access
to the other master-eligible node. For details on how to enable this, see
the nhadm(1m) man page.
In the nhadmsync.conf, you must specify the nonreplicated
files that you want to compare. The default location of this file is /SUNWcgha/remote/etc/nhadmsync.conf. The name and location of this
file can be changed at any time and is specified in the -y | --syncfile option, when using the nhadm synccheck command.
You can create multiple versions of the nhadmsync.conf
file. This enables you to have lists that are specific to a feature or a group
of features, as described in the nhadm(1m) man page. The nhadm synccheck configuration files must have write permissions if you want to
use the nhadm syncgen command.
To use the nhadmsync.conf file, copy the template
file /opt/SUNWcgha/config.standard/adm/nhadmsync.conf.template
to /SUNWcgha/remote/etc/nhadmsync.conf.
Add the names of the files to be compared, to the nhadmsync.conf file. Make sure that the filenames you add have the following
criteria:
The syntax of your entries in this file must be the following:
NODEID=node1 node2
FILE=filename1
=BEGIN
...
=END
FILE=filename2
=BEGIN
...
=END
-
NODEID
-
node1 and node2 are the node IDs
of the master and vice-master nodes, respectively. If these are not present,
the default logical IP addresses of the master and vice-master nodes are used.
When nhadm syncgen is executed, the NODEID parameter is generated with the actual node IDs of both nodes to
ensure the comparison is always made in the same order. This is because the diff -b command is dependent on the order of the
files.
If the NODEID parameter is present, it must be the
first line of the nhadmsync.conf file and can only be
preceded by a blank line.
-
FILE
-
The name
of the file to be tested.
-
=BEGIN...=END
-
This contains the result of the diff -b
command for the file specified by the preceding FILE parameter.