Create or change a password on an RS secondary server

You can create a password for an RS secondary server to provide authentication between the primary server and the secondary server when the cluster is established. The password is optional. The password is valid only the first time the primary and secondary connect to each other.

The password prevents an unwanted instance on the network from initializing and accepting transaction data from the primary. The password is independent of the informix user password.

You create the password with the same command that you use to specify the RS secondary server name. The name and password of each RS secondary server can be defined either before or after the level-0 backup of the primary server.

To set the RS secondary server name and password, run the onmode -d add RSS rss_ha_alias password command on the primary server. During secondary server setup, you include the password when you run the onmode -d RSS rss_ha_alias password command on the secondary server.

You can change the password only if the server is not connected to a high availability environment. Attempting to change the password of an RS secondary server that is already connected returns an error.

To change the password on an RS secondary server before the server is connected, use the onmode -d change RSS password command on the primary server.

Examples

The following commands establish an RS secondary server named ServerB using a password of s#cure. The server's HA_ALIAS configuration parameter is set to ServerB.

On the primary server:
onmode -d add RSS ServerB s#cure
On the secondary server:
onmode -d RSS ServerB s#cure
The following command changes the password of the RS secondary server named ServerB that is not connected to the primary to s@fest. The server's HA_ALIAS configuration parameter is set to ServerB.
onmode -d change RSS ServerB s@fest