![]() |
Installation
Guide Netscape Directory Server |
| Previous |
Contents |
Index |
DocHome | Next |
If you have a previous installation of Directory Server, depending on its version, you can migrate or upgrade to Netscape Directory Server 7.x. Migration refers to the process of moving Directory Server 6.x files to Directory Server 7.x. Upgrade refers to the process of updating Directory Server files; upgrade to Directory Server 7.0 is not supported.
This chapter covers the migration process in these sections:
You can migrate Directory Server 6.11, 6.2, or 6.21; versions 6.1 and before cannot be migrated to Directory Server 7.0. For these releases, it is recommended that you export the databases to LDIF, install a fresh Directory Server, and import the LDIF data.
Before you migrate your directory service, you should become familiar with the new features offered in 7.0 release of the Directory Server.
The migration process is performed by running the migrateInstance7
script on the system where your Directory Server is installed. You must
shut down your directory service before running the migration script;
if you do not, the script will shut down the server.
The migration script performs the following tasks in sequence:
The migration script shuts down your legacy Directory Server before performing the migration process. The migration script also backs up your current configuration.
This section lists the prerequisites that your system must meet before you can consider beginning the migration process.
Before you start with migration process, ensure the following:
This section contains the following information:
Once you have backed up your critical configuration information, do the following to migrate a server:
migrate6to7 -D
"cn=directory manager" -w
secret12 -p 11440 -o
/export/home/jdoe/611-latest/slapd-bart
-n
/export/home/jdoe/70-latest/slapd-bart
-t 3 -L log.out
oldDir:
/export/home/jdoe/611-latest,
oldHome:/export/home/jdoe/611-latest/slapd-bart,
oldConfDir:
/export/home/jdoe/611-latest/slapd-bart/config/,
ldif_rep:
/export/home/jdoe/611-latest/slapd-bart/config//ldif/,
rootDN:
cn=directory manager,
Port: 11440,
Newname: bart
Shutdown the legacy Directory Server
instance:
/usr/netscape/servers/ds611/slapd-bart
Shutting down server slapd-bart . . .
Name of the old LDAP server:
bart.netscape.com
Name of the new LDAP server: bart.netscape.com
6.11 localuser: jdoe, uid: 9871, gid: 10
7.0 localuser: jdoe, uid: 9871, gid: 10
Backup
/export/home/jdoe/70-latest/slapd-bart/config on
/export/home/jdoe/70-latest/slapd-bart/config_backup ...
Where do you want to back up your configuration directory
[/export/home/jdoe/70-latest/slapd-bart/config_backup] ?
Migrate the schema...
-------------------------------------------------------------------------
Parse the old DSE ldif file:
/export/home/jdoe/611-latest/slapd-bart/config/dse.ldif *****
SECURITY - Update successfull:
cn=encryption,cn=config
SNMP - Update successfull: cn=snmp,cn=config
Compared to the old instance, the current new plugin cn=referential
integrity postoperation,cn=plugins,cn=config belongs this attribute:
nsslapd-pluginarg7
Param: nstransmittedcontrols values To migrate: 2.16.840.1.113730.3.4.2
2.16.840.1.113730.3.4.9 1.2.840.113556.1.4.473 1.3.6.1.4.1.1466.29539.12
Param: nstransmittedcontrols new current values:
2.16.840.1.113730.3.4.2
2.16.840.1.113730.3.4.9 1.2.840.113556.1.4.473 1.3.6.1.4.1.1466.29539.12
Param: nsslapd-timelimit values To migrate: 3600
Param: nsslapd-timelimit new current values: 3600
Param: nsconcurrentbindlimit values To migrate: 10
Param: nsconcurrentbindlimit new current values: 10
Param: nsbindconnectionslimit values To migrate: 3
Param: nsbindconnectionslimit new current values: 3
Param: nsconnectionlife values To migrate: 0
Param: nsconnectionlife new current values: 0
Param: nsbindretrylimit values To migrate: 3
Param: nsbindretrylimit new current values: 3
Param: nsoperationconnectionslimit values To migrate: 10
Param: nsoperationconnectionslimit new current values: 10
Param: nsreferralonscopedsearch values To migrate: off
Param: nsreferralonscopedsearch new current values: off
Param: nsmaxtestresponsedelay values To migrate: 15
Param: nsmaxtestresponsedelay new current values: 15
Param: nsmaxresponsedelay values To migrate: 60
Param: nsmaxresponsedelay new current values: 60
Param: nsbindtimeout values To migrate: 15
Param: nsbindtimeout new current values: 15
Param: nsabandonedsearchcheckinterval values To migrate: 2
Param: nsabandonedsearchcheckinterval new current values: 2
Param: nsconcurrentoperationslimit values To migrate: 10
Param: nsconcurrentoperationslimit new current values: 10
Param: nschecklocalaci values To migrate: off
Param: nschecklocalaci new current values: off
Param: nshoplimit values To migrate: 10
Param: nshoplimit new current values: 10
Param: nsslapd-sizelimit values To migrate: 2000
Param: nsslapd-sizelimit new current values: 2000
Param: nsproxiedauthorization values To migrate: on
Param: nsproxiedauthorization new current values: on
-------------------------------------------------------------------------
Migrate LDBM backend instances...
*** LDBM_BACKEND_INSTANCE - cn=backend1,cn=ldbm database,cn=plugins,cn=config already exists
*** Migration will overwrite existing
database
Do you want to continue Yes/No [No] ? y
Do you want to export the existing data Yes/No [Yes] ?
Enter the full pathname of the file
[/export/home/jdoe/70-latest/slapd-bart/db_backup/backend1.ldif]:
Existing data will be exported under
/export/home/jdoe/70-latest/slapd-bart/db_backup/backend1.ldif
Continue Yes/No [No] ? y
Now backing up database backend1 in
/export/home/jdoe/70-latest/slapd-bart/db_backup/backend1.ldif
Shutting down server slapd-bart . . .
ldiffile:
/export/home/jdoe/70-latest/slapd-bart/db_backup/backend1.ldif
[12/Jun/2002:10:32:05 -0700] - export backend1: Processed 3 entries
(100%).
[12/Jun/2002:10:32:05 -0700] - Waiting for 4 database threads to stop
[12/Jun/2002:10:32:07 -0700] - All database threads now stopped
try to reconnect to search cn=backend2,cn=ldbm
database,cn=plugins,cn=config
*** LDBM_BACKEND_INSTANCE - cn=backend2,cn=ldbm database,cn=plugins,cn=config already exists
*** Migration will overwrite existing
database
Do you want to continue Yes/No [No] ? y
Do you want to export the existing data Yes/No [Yes] ? n
We should add the backend instance cn=backend3,cn=ldbm
database,cn=plugins,cn=config
LDBM_BACKEND_INSTANCE - Add successfull: cn=backend3,cn=ldbm
database,cn=plugins,cn=config
*** INFORMATION - NetscapeRoot is NOT migrated
*** LDBM_BACKEND_INSTANCE - cn=userroot,cn=ldbm database,cn=plugins,cn=config already exists
*** Migration will overwrite existing database
Do you want to continue Yes/No [No] ?
*** Migration will not update it
-------------------------------------------------------------------------
*** MAPPING_TREE -
cn="dc=backend1,dc=com",cn=mapping tree,cn=config already exists
*** Migration will not add the suffix
*** MAPPING_TREE - cn="dc=backend2,dc=com",cn=mapping tree,cn=config
already exists
*** Migration will not add the suffix
MAPPING_TREE - Add successfull:
cn="dc=backend3,dc=com",cn=mapping tree,cn=config
*** MAPPING_TREE - cn="dc=netscape,dc=com",cn=mapping tree,cn=config
already exists
*** Migration will not add the suffix
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
Migrate replication agreements...
-------------------------------------------------------------------------
-------------------------------------------------------------------------
Where do you want to back up the file /export/home/jdoe/611-latest/shared/config/certmap.conf [/export/home/jdoe/611-latest/shared/config/certmap.conf_backup] ?
***** Close the LDAP connection to the new
Directory Server instance *****
Shutting down server slapd-bart . . .
-------------------------------------------------------------------------
ldiffile:
/export/home/jdoe/611-latest/slapd-bart/config//ldif/backend1.ldif
[12/Jun/2002:10:33:25 -0700] - export backend1: Processed 3 entries
(100%).
[12/Jun/2002:10:33:25 -0700] - Waiting for 2 database threads to stop
[12/Jun/2002:10:33:26 -0700] - All database threads now stopped
ldiffile:
/export/home/jdoe/611-latest/slapd-bart/config//ldif/backend2.ldif
[12/Jun/2002:10:33:29 -0700] - export backend2: Processed 3 entries
(100%).
[12/Jun/2002:10:33:29 -0700] - Waiting for 1 database threads to stop
[12/Jun/2002:10:33:30 -0700] - All database threads now stopped
ldiffile:
/export/home/jdoe/611-latest/slapd-bart/config//ldif/backend3.ldif
[12/Jun/2002:10:33:32 -0700] - export backend3: Processed 2 entries
(100%)
[12/Jun/2002:10:33:32 -0700] - Waiting for 1 database threads to stop
[12/Jun/2002:10:33:33 -0700] - All database threads now stopped
Done.
[12/Jun/2002:10:33:37 -0700] - import backend1: Index buffering enabled
with
bucket size 15
[12/Jun/2002:10:33:37 -0700] - import backend1: Beginning import job...
[12/Jun/2002:10:33:37 -0700] - import backend1: Processing file
"/export/home/jdoe/611-latest/slapd-bart/config//ldif/backend1.ldif"
[12/Jun/2002:10:33:37 -0700] - import backend1: Finished scanning file
"/export/home/jdoe/611-latest/slapd-bart/config//ldif/backend1.ldif" (3
entries)
[12/Jun/2002:10:33:40 -0700] - import backend1: Cleaning up producer
thread...
[12/Jun/2002:10:33:40 -0700] - import backend1: Indexing complete.
Post-processing...
[12/Jun/2002:10:33:40 -0700] - import backend1: Flushing caches...
[12/Jun/2002:10:33:40 -0700] - import backend1: Closing files...
[12/Jun/2002:10:33:40 -0700] - import backend1: Import complete.
Processed 3
entries in 3 seconds. (1.00 entries/sec)
[12/Jun/2002:10:33:44 -0700] - import backend2: Index buffering enabled
with
bucket size 15
[12/Jun/2002:10:33:44 -0700] - import backend2: Beginning import job...
[12/Jun/2002:10:33:44 -0700] - import backend2: Processing file
"/export/home/jdoe/611-latest/slapd-bart/config//ldif/backend2.ldif"
[12/Jun/2002:10:33:44 -0700] - import backend2: Finished scanning file
"/export/home/jdoe/611-latest/slapd-bart/config//ldif/backend2.ldif" (3
entries)
[12/Jun/2002:10:33:44 -0700] - import backend2: Workers finished;
cleaning up...
[12/Jun/2002:10:33:47 -0700] - import backend2: Workers cleaned up.
[12/Jun/2002:10:33:47 -0700] - import backend2: Cleaning up producer
thread...
[12/Jun/2002:10:33:47 -0700] - import backend2: Indexing complete.
Post-processing...
[12/Jun/2002:10:33:47 -0700] - import backend2: Flushing caches...
[12/Jun/2002:10:33:47 -0700] - import backend2: Closing files...
[12/Jun/2002:10:33:47 -0700] - import backend2: Import complete.
Processed 3
entries in 3 seconds. (1.00 entries/sec)
[12/Jun/2002:10:33:50 -0700] - import backend3: Index buffering enabled
with
bucket size 15
[12/Jun/2002:10:33:50 -0700] - import backend3: Beginning import job...
[12/Jun/2002:10:33:51 -0700] - import backend3: Processing file
"/export/home/jdoe/611-latest/slapd-bart/config//ldif/backend3.ldif"
[12/Jun/2002:10:33:51 -0700] - import backend3: Finished scanning file
"/export/home/jdoe/611-latest/slapd-bart/config//ldif/backend3.ldif" (2
entries)
[12/Jun/2002:10:33:51 -0700] - import backend3: Workers finished;
cleaning up...
[12/Jun/2002:10:33:54 -0700] - import backend3: Workers cleaned up.
[12/Jun/2002:10:33:54 -0700] - import backend3: Cleaning up producer
thread...
[12/Jun/2002:10:33:54 -0700] - import backend3: Indexing complete.
Post-processing...
[12/Jun/2002:10:33:54 -0700] - import backend3: Flushing caches...
[12/Jun/2002:10:33:54 -0700] - import backend3: Closing files...
[12/Jun/2002:10:33:54 -0700] - import backend3: Import complete.
Processed 2
entries in 4 seconds. (0.50 entries/sec)
-------------------------------------------------------------------------
-------------------------------------------------------------------------
***** Migrate ReplicaBindDN entries...
-------------------------------------------------------------------------
If you are upgrading from Directory Server 6.x to Directory Server 7.x, your replication configuration is automatically migrated when you run the migrateInstance7 script.
To migrate a 6.x replicated site:
This section explains
how to migrate a live
multi-master replication (MMR) architecture built using Directory
Server 6.x to Directory Server 7.x in a production environment. The
procedure outlined here ensures that your environment will stay live
and no re-initialization will be needed.
|
|
|
|
If you want to preserve your replication
agreements, you must use the same port numbers in your new
installations that you used in your legacy servers.
|
|
|
|
|
The instructions are written with these assumptions:
The migration process can be summarized into these steps:
Follow these steps for the first supplier, and then repeat the steps for the second:
To migrate a 6.x consumer server:
If you have a multi-master installation with o=NetscapeRoot replicated between your two suppliers, server1 and server2, you can modify the Console on the second server (server2) so that it uses server2's instance instead of server1's. (By default, writes with server2's Console would be made to server1 then replicated over.)
|
|
|
|
You must import your database LDIF files at
the time of migration using
the -d
option. If you do not, your creation times for the entries will
hang, and replication will not resume.
|
|
|
|
|