sun.com | docs.sun.com |  | How To Buy | My Sun | Worldwide Sites |

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

File Formats | nhadmsync.conf(4)

- NAME
- SYNOPSIS
- DESCRIPTION
- EXTENDED DESCRIPTION
- EXAMPLES
- ATTRIBUTES
- SEE ALSO

## NAME

> nhadmsync.conf - list of nonreplicated files and the differences between them

## SYNOPSIS

> `/SUNWcgha/remote/etc/nhadmsync.conf`

## DESCRIPTION

> 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.

## EXTENDED DESCRIPTION

> 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 files exist on both master-eligible nodes

> - The files are not replicated on a shared file system

> 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.

## EXAMPLES

> Example 1. Example of information added by syncgen after the file comparisons

> > If you defined the `nhadmsync.conf` file as follows:

> > >     NODEID=10 20
> > >     FILE=/etc/ethers
> > >     FILE=/etc/hosts
> > >     FILE=/etc/netmasks

> > After the `nhadm syncgen` command is executed, the `nhadmsync.conf` file might contain the following information:

> > >     NODEID=10 20
> > >     FILE=/etc/ethers
> > >     FILE=/etc/hosts
> > >     =BEGIN
> > >     5c5,6
> > >     < 10.250.1.10   MEN-C250-N10    loghost
> > >     ---
> > >     > 10.250.1.20   MEN-C250-N20    loghost
> > >     > 10.250.1.10 MEN-C250-N10
> > >     8d8
> > >     < 10.250.1.20 MEN-C250-N20
> > >     =END
> > >     FILE=/etc/netmasks

> > The differences printed to the `nhadmsync.conf` file are the differences that would be found by running `diff` -b on the files listed in `nhadmsync.conf`. For more information on the `diff` command, see the `diff`(1) man page.

## ATTRIBUTES

> See `attributes`(5) for descriptions of the following attributes:

> ATTRIBUTE TYPE | ATTRIBUTE VALUE
> --- | ---
> Architecture | SPARC
> Availability | SUNWnhadm
> Interface Stability | Evolving

## SEE ALSO

> `nhadm`(1M), `diff`(1)

Netra HAS FS 2.1 | Go To Top | Last Changed September 2004

Company Info | Contact | Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.