DSMAINT.NLM version 4.90

 
The DSMAINT.NLM provides control of NetWare Directory Services
(NDS) when certain hardware maintenance operations are necessary. 
Because it deals with the Directory information on a specific
server, it is run from that server's console.  You may wish to
copy it to the SYS:\SYSTEM directory so it is available if
needed.

The DSMAINT utility provides functionality to address two
specific scenarios that NetWare administrators may experience.
Each specific situation is addressed by a pair of features in the
utility that work together.  One command begins a process;
another completes it.


Scenario One: NDS and Upgrading Server Hardware

There are times when a server requires an upgrade that does not
affect the server as a Directory object.  For example, the SYS:
volume may be physically located on an old hard disk drive that
needs to be upgraded.

In these situations, you no longer need to uninstall NDS from the
server.  You can use DSMAINT to prepare Directory information on
the server for the upgrade. Then, after the upgrade, you can
restore Directory information to the server with DSMAINT.

The "Prepare NDS for a hardware upgrade" option prepares the
Directory information on this server for a planned hardware
upgrade of this server.  DSMAINT creates a file 
(SYS:\SYSTEM\BACKUP.DS) that stores all the Directory information
on this server, including replica information. This file should 
be included in backup procedures before bringing the server down.

The "Prepare NDS for a hardware upgrade" option locks and 
disables the Directory on this server, preventing any data 
change.  To other servers that normally communicate with this 
server, the server appears to be down.  Any Directory information 
that normally is sent to the locked server is stored by other 
servers in the Directory; the "stored" information is used to 
synchronize the server when it comes back online.

Because the global Directory is expecting the server to come back 
online quickly, you should not plan to take several days to 
upgrade the server.  Complete the upgrade promptly and restore 
Directory information on the server as soon as possible.

The "Restore NDS after a hardware upgrade" option uses the file 
created by the "Prepare..." option (SYS:\SYSTEM\BACKUP.DS) to 
restore Directory information on this server.  Before the 
Directory is restored, DSMAINT ensures that the server is in the 
same relative state as before the upgrade.  DSMAINT ensures that 
the server's object and authentication keys still exist and that 
the server still exists in all the replica rings for copies that 
were on this server before the upgrade.


Procedure:

IMPORTANT: If you use backup software that needs to be logged in 
to the Directory, log it in before you use this option.  Because 
the option closes the Directory on this server, you cannot 
authenticate to this server after performing the option.

1. Log in your backup software or if you have a current backup
login as Admin.  The object of this step is to ensure that there
is an authenticated connection with Admin rights to SYS:SYSTEM.

2. Load DSMAINT and use the "Prepare NDS for a hardware upgrade" 
option; then, back up the server.  If a backup was already performed
the BACKUP.DS file will need to be copied to the client's harddrive.
The object of this step is to not only backup the data, but to also 
get a backup of the BACKUP.DS file in the SYS:SYSTEM subdirectory 
which was created by DSMAINT.

3. Bring down the server and perform the upgrade.

4. Use the INSTALL utility to reinstall NetWare and place a 
"temporary" Directory on the server.   

********************************************************************
PLEASE NOTE:  Install the server to its OWN temporary Directory tree,
not your normal Directory tree.  This will allow client/backup
application access to the server volumes, specifically SYS:, to copy
the BACKUP.DS and DSMAINT.NLM to the SYS volume.   The temporary
Directory tree will be replaced in step 7.  
********************************************************************

5. Copy the DSMAINT.NLM and restore BACKUP.DS to the SYS:\SYSTEM 
directory.

6. Use the INSTALL utility to remove NDS from this server.  This 
option is under INSTALL's "Directory options" menu.

7. Load DSMAINT.NLM at the server console and use the "Restore 
NDS after a hardware upgrade" option to restore the correct 
Directory information to the server.

8. Restore Data from backup performed in Step 2.

9. Run DSREPAIR

10. Load INSTALL and upgrade mounted volumes.

IMPORTANT: This procedure may create trustee assignments that did 
not exist before the upgrade.  By default, the container object 
into which the server is installed receives Read and File Scan 
rights to the server's SYS:\PUBLIC directory.  If these rights 
were previously removed you will need to remove them again.


Scenario Two: Maintaining Server References during a Brief 
Shutdown

At times, it is necessary to remove a NetWare Server object from 
the Directory for a brief period of time.  For example, in the 
case of a corrupt authentication key, it is necessary to 
reinstall NDS on the server.  During the uninstall process, the 
NetWare Server object is removed from the Directory.  When the 
NetWare Server object is removed from the Directory, objects that 
reference it in their required attributes can become Unknown 
objects.  A similar type of problem can occur with services like 
printing that are associated with a physical server.

With DSMAINT, you can avoid losing objects and ease 
reinstallation by replacing references to the server with 
references to another object that you create for this purpose.  
After installing NDS on the server again, you can use DSMAINT to 
replace these references to the server in other objects' Host 
Server, Host Device, or Message (Default) Server attributes.

The "Replace server references" option searches the Directory and 
replaces references to this server's NetWare Server object in 
other objects' Host Server, Host Device, or Message (Default) 
Server attributes with a reference to another Directory object.

The "Restore server references" option restores references to 
this server in other objects' Host Server, Host Device, or 
Message (Default) Server attributes.  This option reverses the 
replacements made by the "Replace server references" option.

Procedure:

1. Begin by selecting an object for "holding" the references.  
This can be an existing User object, but must not be a NetWare 
Server object.  The user object you have logged in as would be 
appropriate.

2.  Now select the "Replace server references" option.  You are 
required to enter the full name of the container where you want 
to begin searching for objects that reference this server's 
NetWare Server object.  You also need to enter the full name of 
the object you want DSMAINT to use as a replacement value (such 
as a TEMP User object).  

3. At this point, you can uninstall and reinstall NetWare 
Directory Services.

4. Once NDS is properly operating, you can select the "Restore 
server references" option to reverse the replacements made by the 
"Replace server references" option.  You will again be required 
to provide the full name of the temporary object that is holding 
the references.

Note:  DSMAINT automatically removes volume IDs from the
physical volumes on the server so Volume objects are not removed
during an uninstall.


