OSF DCE Administration Guide--Core Components

Troubleshooting Procedures
40.3.1 Determining the Most Current Database
To determine whether the backup of the master replica’s database or a slave replica’s
database is more current, run the dcecp registry show -replica command for the replica.
The output of this command lists the last update sequence number and the update date
and time. Compare the replica’s last update sequence number and the update date and
time with the sequence number and date and time of the master’s backup. If the replica is
more current, make the replica the new master as described in the following section. If
the master’s backup is more current, restore the master from the backup as described in
Chapter 36.
40.3.2 Turning a Slave into the Master
This subsection describes how to use the dcecp registry set -master command to turn a
slave into the master. Be aware that, because the registry set -master command can
cause data to be lost, the registry set command without the -master option is the
preferred means of designating a different master replica. Use the registry set -master
command only if the master replica is irrevocably damaged and you are unable to use
the registry set command without the -master option.
Follow these steps to turn a master replica into a slave replica:
1. Choose the slave replica that will become the new master.
2. If necessary, issue the set _s(sec) command to set the chosen slave to the default
replica. The following example sets the default replica to
/.../musee.com/subsys/dce/sec/art:
dcecp> set _s(sec) /.../musee.com/subsys/dce/sec/art
3. Issue the following registry set -master command to change the default host to
the master registry:
dcecp> registry set -master
4. Use the registry show -replica command to verify the change.
5. Use standard UNIX commands to delete the old master replica’s database and
.mkey file by deleting the directory dcelocal/var/security/rgy_data and the file
dcelocal/var/.mkey.
6. Use the registry delete command with the -force option to remove the old master
from the replica list. The following example deletes the old master named history
from the replica list:
dcecp> registry delete -force /.../musee.com/subsys/dce/sec/history
124243 Tandem Computers Incorporated 405