NetIQ eDirectory 8.8.x for Linux
This process is a more detailed version of the process documented section â8.2 Migrating to eDirectory 8.8 SP7 Without Upgrading the Operating Systemâ in the eDirectory 8.8.7 documentation. (https://www.netiq.com/documentation/edir88/pdfdoc/edirin88/edirin88.pdf)
The commands outlined in this document are specific to 87.3.10 Linux to 8.8.7 Linux migration. This document has not been tested for an 8.8.x to 8.8.x migration.
Install your target server into a temp tree using all the default paths, to get eDirectory on the server and running. (Assumes that nds.conf is in /etc/opt/novell/eDirectory/conf, and the eDirectory dib is in /var/opt/novell/eDirectory/data/dib, which are the defaults paths on our target server) It still should work if they are not, but you will have to modify the commands to the correct corresponding directories)
Download a copy of the ndsrc.pl script from cool solutions. (https://www.novell.com/communities/node/1129/ndsrc)
Extract and copy the ndsrc.pl script over to your source server (using winscp or comparable) and then set the appropriate flags on the file so it will execute. (chmod 777 ndsrc.pl)
It is always a good idea to get a copy of your customizations made to your server object and related objects in case there is a problem or mistake and those objects are removed. Like Attribute mappings on your ldap group object for the server, your custom indexes on the NCP file server object, any custom trustee assignments on the NCP file server or related objects, etc.
This process assumes that you are logged in as Root on the Source and Target servers.
Run a repair local database on the source server to clean up the database and prepare the server for migration. (ndsrepair -R)
Backup the nds files using ndsrc.pl on the source server. (ndsrc.pl) This creates two files in the /root/ directory. one edir-... and one nici-.... Copy those files off the server.
Shutdown the source server.
Copy the files to the target server and extract them. In this example I copied them to /root/mig/. Then I used tar xvf edir-<filename> to extract the edir file and tar xvf nici-<filename> for the nici file.
Make a backup of the nds.conf file (cp /etc/opt/novell/eDirectory/conf/nds.conf /etc/opt/novell/eDirectory/conf/nds.conf.bak)
Stop ndsd (rcndsd stop)
Reconfigure the network address to match the source server (yast, network devices), and verify with ifconfig.
Edit the nds.conf file to reflect information from source server (Leave directory path locations in the default locations you used for 887, but verify / change any server names, server contexts, tree names etc to match the source server.) (vi /etc/opt/novell/eDirectory/conf/nds.conf) It is a good idea to have a printout of the existing nds.conf file from the source server to verify and transfer the settings including custom settings to the new server. Like max threads (if over 256), even though you may want to adjust those settings on the new server, it is a good idea to use them to start with. The nds.conf file from your source server will be in /root/mig/etc/nds.conf (from your edir-... file extracted in step 3 above).
Delete the files in the existing dib on the server (rm /var/opt/novell/eDirectory/data/dib/*.*). It will give some errors on the directories in there.
Copy the eDirectory dib from the backup location to the correct location. (cp /root/mig/var/nds/dib/*.* /var/opt/novell/eDirectory/data/dib) It will give errors on omitting the nds.rfl directory.
Copy the Roll forward log over from the backup directory (cp /root/mig/var/nds/dib/nds.rfl/*.* /var/opt/novell/eDirectory/data/dib/nds.rfl)
Copy the backup nici directory in place. (cp /root/mig/var/novell/nici/*.* /var/opt/novell/nici
Verify the symbolic link is still in place from /var/novell/nici to /var/opt/novell/nici (ls âl /var/novell). If they are missing they need to be replaced. But they should be there.
Start ndsd (rcndsd start) (you will get errors)
Replace ndspath. (. /opt/novell/eDirectory/bin/ndspath)
Upgrade the certificates with ndsconfig upgrade. (ndsconfig upgrade) You may get errors on conflicting ports. Simply roll the ports up one for the time being. (8029,8031) This adds two lines in the nds.conf, which I deleted later. (http.server.clear-port=8029, http.server.tls-port=8031)
Restart ndsd. (rcndsd restart)
Verify that ldap is listening and working with an ldap browser or other tool.
Verify and adjust eDirectory caches settings. (64Bit â eDir hard cache limit should be the size of the dib or larger with 200MB MIN, MAX depends upon RAM in server, 32Bit â eDir hard cache limit should be slightly larger than the size of the dib with limits of 200MB MIN â 512MB MAX). It is recommended to adjust eDirectory cache in iMonitor (https://<IPAddressOfServer>:8030) under Agent Configuration, Database Cache. You can see the DIB size of the server there and adjust cache accordingly. It is always recommended to restart ndsd after adjusting the cache settings, so memory is allocated in one contiguous chunk and is not fragmented.
Monitor eDirectory threads and adjust if needed. (ndstrace -c threads, look at the peak on the pool workers line) (Default max threads in eDirectory 8.8.7 is 256, which should be sufficient for 99.5% of all servers) Use ândsconfig getâ to see the current settings.
Once the migration is complete, delete temporary directory you used for the process. (rm -r /root/mig)
!! Post Migration Caution !! Once the migration is complete and destination server is up and running. Disable / Destroy / Fdisk, your source server. It must NEVER come back up on the network again. Doing so will cause corruption in your eDirectory tree, which may be irreversible.
Source SLES9 OES1SP2 eDir 22.214.171.124 (32bit) to Destination SLES 11SP1 eDir 8.8.7 (32bit)
Source SLES9 OES1SP2 eDir 126.96.36.199 (32bit) to Destination SLES 11SP1 eDir 8.8.7 (64bit)