Overview#A Custom Menu Driven Script used for a couple of Clients.
Inserting New Server into an Existing eDirectory Tree#
On ALL other servers in the tree: Edit the /etc/hosts.nds to include the tree and server entries for the new server. For example, add these lines if the new server INO0S001 at IP 188.8.131.52 is being installed in the B1TEST tree:
#B1TEST. 184.108.40.206 INO0S001 220.127.116.11IMPORTANT: The tree name for the new server must remain commented out until the server has been completely installed. healthy and error-free according to an existing server in the target tree.
Correct any problems before proceeding.
nds-menu#From the interactive eDirectory install menu, select InsertRemoveServerFromEdirectoryTree, then option "Install server in Existing Tree"
Follow the on-screen prompts for server insertion. The complete process may take several hours to complete, depending upon the size of the partition containing the server object.
NOTE: If the script fails or must be aborted for some reason, review the /var/b1nds.log file to determine the last successful step. You should decide if it is better to remove the server and start over, or to continue installation manually.
IMPORTANT NOTE: #Upon insertion into the tree, if the partition the server is installed into (based on current design, dc=svr,dc=Directory-Info.com,dc=net is part of the Root partition) is hosted by fewer than 3 servers, a replica will automatically be placed on the new server. The build script assumes that the replica add will start, and will wait up to 18 hours for it to complete before finishing the completing the rest of the server configuration.
If there are already 3 replicas of the partition, then the build script will continue to wait for something that will never happen without manual intervention. When you see either of these messages:
Waiting 2 minutes for new replica add... Waiting up to 18 hours for new replica add...you should use ConsoleOne or iManager to manually add the replica to the server, if the replica was not automatically added.
NOTE: If the tree that the server is being inserted into is very small, it is possible that the replica add will be completed before the script can start logging to watch for the completion event. If the tree is small, and the first 2 minutes expire, you should select No when prompted:
Continue waiting ([Y]/n)?
On this Server, Modify /etc/hosts.nds#On the new server, add entries for every other server in the tree to /etc/hosts.nds. The final file should look something like this:
# Example entry: #TREENAME. 18.104.22.168 #SERVERNAME 22.214.171.124 B1TEST. 126.96.36.199 INO0S001 188.8.131.52 --- All servers in tree should be listed B1TEST. 184.108.40.206 INO0S002 220.127.116.11IMPORTANT: The order of entries in this file is significant always make sure that the local server appears in its hosts.nds file first.
On ALL Other Servers, Modify /etc/hosts.nds#On ALL other servers in the tree: Edit the /etc/hosts.nds to un-remark the tree entry. Using the example quoted in step 1, change the entries to look like this:
B1TEST. 18.104.22.168 INO0S001 22.214.171.124
Manually Build Index#The automated build may not create of creating one standard index under eDirectory 8.7.x. See Build B1ObjectClass Index This index may need to be created manually via ConsoleOne. make the server ready for production use. Certificate Management healthy and error-free according to an existing server in the target tree. If the only errors are communication related (e.g. 625), just wait a few minutes and check again.
Make sure the server is in the tree correctly and you can connect to the server via NDS and LDAP over SSL.
Fix any issues.