
Before Migration
75
migrate-ds-admin.pl
allows the password parameter to be provided on the command line, similar
to the
setup-ds-admin.pl
script. The arguments set the section, parameter, and value of
.inf
parameters in the following form:
section.parameter=value
The only required argument is the Configuration Directory Server administrator password
(
ConfigDirectoryAdminPwd
):
/usr/sbin/migrate-ds-admin.pl --oldsroot /opt/redhat-ds
General.ConfigDirectoryAdminPwd=password
To avoid having this password in the clear on the command line, you can use a
.inf
file with the
migration script that gives the administrator's password:
/usr/sbin/migrate-ds-admin.pl --oldsroot /opt/redhat-ds --file=/export/example.inf
The
.inf
would have the following two lines:
[General]
ConfigDirectoryAdminPwd=
password
The migration script takes all of the other settings from the old configuration files in the old server
root, specified in
--oldsroot
. Any other argument passed in the command line or listed in an
inf
file, such as those used with the
setup-ds-admin/pl
script, is ignored. The Directory Server
configuration parameters are only taken from the old instance. It is not possible to change the
configuration settings, such as the hostname or port, using the migration script.
6.2.2. Before Migration
For the safety of the Directory Server data, do these things before beginning to migrate the Directory
Server instances:
• Shut down all Directory Server instances and the Administration Server.
• Back up all of your databases.
• For servers which have a different configuration directory, make sure that the Directory Server
Console write operations are moved from the configuration directory to the server itself.
6.2.2.1. Backing up the Directory Server Configuration
All of the configuration files for Directory Server 7.1 instances are in the
/opt/redhat-ds/
slapd-
serverID
/config
directory. Other important configuration files for the Administration Server
and for shared configuration are in
/opt/redhat-ds/admin-serv/config
and
/opt/redhat-
ds/shared/config
. Make a backup of all of these files in a secure location.
6.2.2.2. Configuring the Directory Server Console
If you have a multi-master replication setup which replicates
o=NetscapeRoot
replicated between
the two master servers,
server1
and
server2
. By default, writes made through
server2
's Directory