Restoring Data

Use SBCON to restore information from tape backup. These procedures use SBCON as the Storage Management Engine (SME).

You can restore data either from the server command line or from a Windows workstation using NWBACK32.


Restoring Data from a Server

  1. Load the drivers for your specific device and controller board.

    See Loading Controller and Storage Device Drivers on the Server.

  2. Load the appropriate Target Service Agents.

    See Loading the Target Service Agents.

  3. Load SBCON.

    See Loading SBCON.

  4. Select Main Menu > Job Administration > Restore.

    The Restore Options screen appears.


    Restore Options screen

  5. Select Target Service and then the NetWare server running your backup and restore Target Services Agent.

    This is the name of the server or workstation on which you want to restore your data. Before selecting it, you must load the correct TSA. See Loading the Target Service Agents.

    If you do not see the target you want on the list, check for these possible causes:

    • The proper TSA is not loaded on the target.
    • Network traffic is heavy. In these circumstances, it might take SBCON a few moments to detect all the targets. Press Esc to return to the Main Menu, and then press Enter again. Your target should now be listed. From the Target Services list, select a target.

    If the target you select has more than one TSA loaded, SBCON shows you a list of their full names in the Backup/Restore Target Services on This Server.

    NOTE:  When you are trying to connect to a different server, SBCON uses the same username and password you gave the first time. It prompts only if it fails.

    The following table lists the target services and their associated datasets.

    Target Service to Restore Dataset to Select

    Cluster-enabled pool

    The cluster-enabled pool that you backed up

    File system

    The server whose file system you want to restore

    eDirectory database

    The server with TSANDS loaded

    Workstation

    The workstation's host server and then the workstation

    Server-specific information

    The server whose server-specific information you want to restore and then the file system to restore

  6. When prompted for the target username, enter your username (and context if required) as the network administrator for the target.

    If SBCON rejects the username you entered, you probably need to include the context of where the user object is located. For example, instead of entering ADMIN as the username, enter a complete name such as .CN=ADMIN.O=COMPANY_NAME or .ADMIN.COMPANY_NAME.

    You must include the context in the username at this point if the username exists in an eDirectory container that is different from the context set on the server running SBCON.

  7. If a password is requested, enter the password for the target.

    SBCON will take a few moments to attach to the target. Wait for the confirmation box, and then press any key to continue.

  8. Enter a descriptive name for the restore session in the Description field.

    The descriptive name of the job will help you identify the session.

  9. Select the device and media for restore by pressing Enter at the Device/Media Name field and decide where you want to restore from.

    A list of available objects is displayed in the Select a Device screen.

    If you enter *.* (DEVICE NAME.MEDIA NAME), the engine selects the device and media that it encounters first.

    If your device has more than one storage device attached, select an available device from the list. If the device contains multiple media, select the media for the backup.

    If the storage media does not have a label, SBCON displays a message indicating that the media cannot be identified. You should set the label before selecting it for a backup job.

  10. On the Select a Session screen, select the Session to Restore.

    WARNING:  TSA600.NLM backs up files in compressed or uncompressed format as specified by the user. However, if you try to restore a compressed file to a volume without compression, the file is corrupted and no error message is displayed.

  11. Specify the path to the session log file of the session you want to restore.

    Use one or more of the following methods:

    • Press Enter to accept the default; then go to Step 12.
    • Press Insert to select from a list of directories, press Esc to return to the previous window, and then go to Step 12.
    • Press Backspace over the path shown (or a portion of the path), type in a new directory or path, and then go to Step 12.

    Press Insert any time during this process to choose parts of the existing path from a list.

    NOTE:  At the present, it takes the default. This will be implemented in the future release.

  12. When a list of sessions is displayed, select the session you want to restore.

    If the media on which the data resides is not loaded on the device you choose, you will be prompted to insert the correct media.

  13. Select Advanced Options to make the selective restore.

    The Advanced Restore Options screen appears. See Customizing Restore. You can perform the advanced restore, specify the execution time, reschedule the job, etc., using this form.

  14. Complete the Advanced Restore Options form.

  15. Press Esc and answer the prompt at the Submit Job screen to begin the restore session.

  16. Press Alt+Esc to view the activity log screen.

    If the job execution starts and is not successfully completed, the error messages appear on this screen. The activity log file ACTIVITY.LOG is located at the server's SYS:\SYSTEM\TSA\LOG directory.

  17. To view the Run Time Status of a job, select Job Administration > Current Job List > job name.

  18. When the restore session finishes, your screen display reads the following:

    The restore process was completed normally.

  19. To return to the Main Menu, press Esc as required.

    The Esc key allows you to exit SBCON one screen at a time until you reach the Main Menu. If you want to exit SBCON, answer the confirmation prompt.

    NOTE:  To unload SBCON and applicable Target Service Agents, see Unloading SBCON.


Customizing Restore

Using the Advanced Restore Options form at the server, you can perform a custom restore of the database you need.

  1. Select Main Menu > Job Administration > Restore.

    The Restore Options screen appears.

  2. Select Advanced Options.

  3. Select Rename Data Sets to restore data to a location different from the backup location.

  4. At the Restore Datasets to a Different Location screen, do the following:

    1. Press Insert to select the namespace type.

    2. Enter the source path (where the data originally was backed up from).

    3. Enter the destination path you want the data restored to, in the entry box.

    Both the source and destination paths must include the volume names (for network server) or the hard disk drive letter (for example, C:\) for workstations.

    IMPORTANT:  When you specify a particular portion of the file structure as the source location, it does not necessarily mean that this will be the only data restored. What is restored can be influenced by the include and exclude settings on the Subsets of What You Want to Restore form. If you do not want to overwrite any subdirectories that might exist in the area you have included, you must specifically exclude them by their full path.

  5. Select Subsets of What to Restore.

    Use this screen to specify which parts of the file structure you want to restore. Various data sets to be included or excluded are listed in this form. You can include or exclude any or all items listed. For more information about including and excluding items, see Exclude and Include Options.

    The screen lists major and minor resources. Default indicates that none of that type of subset has been specified.

  6. To specify a subset, do the following:

    1. Select any item on the screen.

    2. Edit the Include or Exclude screens using Insert and Enter.

    3. Press Esc to save changes.

    4. To view a list of values associated with major TSA resources (for example, server or volumes) select either the include or exclude line.

      The Selection List Options form appears. Any value you previously selected is shown on the form. If you did not select a value, the form is blank.

    5. To select a value for this major resource, press Insert and select the value from the list that appears by pressing Enter.

  7. Select Open Mode Options and select parts of the backed up data structure to be restored.

    The backed-up data set contains various types of data that are listed on the screen. By default, all the types of data are included in the restore.

    1. To exclude a particular type of data from the restore, select that line and type Y.

    2. When all the data items are selected correctly, press Esc.

  8. Specify whether to overwrite the existing parent by typing Y (Yes) or N (No).

    For more information, see Overwriting a Parent or Child.

  9. Specify whether to overwrite the existing child by typing Y (Yes) or N (No).

  10. Specify the execution time.

  11. Select Scheduling to reschedule the job.

  12. Press Esc as required and then select Yes to confirm the Submit Job? prompt.

    The job is submitted and is listed in the Current Job List menu.


Restoring Data from a Workstation

When you restore data, you are copying your backed up data to a server or workstation.

  1. Run NWBACK32.

    See Loading NWBACK32.

    You can run the NWBACK32 program (NWBACK32.EXE) from SYS:PUBLIC.

  2. At the Quick Access window, click Restore.

  3. Click What you Want to Restore.

    1. Double-click What to Restore.

    2. Select the context.

    3. Double-click Queues and select the queue.

    4. Double-click Servers and select a server.

    5. Double-click Devices and select a device.

    6. Double-click the device to view the media list.

    7. Select a medium.

  4. Click where you want the restored data to go.

    1. Double-click Where to Restore.

    2. Select eDirectory, NetWare Servers, or Workstations.

    3. Click the server to which you want to restore your data.

    4. Enter your username and password to authenticate to the server.

    5. Click OK.

  5. Submit the restore job by clicking Restore > Submit the Job on the toolbar.

  6. (Optional) Click Next to display more information about the restore.


Restoring eDirectory

The procedures in the following sections are performed at the beginning of the restore process.


Restoring a Volume Other Than SYS:

WARNING:  Do not delete the Volume object for the failed volume from the eDirectory tree structure. The Volume object preserves any references that other objects (such as Directory Map and Queue objects) might have to that volume. If the Volume object is deleted and you have objects that depend on this volume, you must re-establish the relationships through a selective eDirectory restore. See Custom eDirectory Restore.

  1. Bring down the server.

  2. Correct the problem.

  3. Bring the server back up and re-create the volume.

  4. Perform an advanced file system restore.

    See Customizing Restore for the procedure.


Restoring Volume SYS: in a Single-Server Network

Since there are no replicas in a single-server network, you cannot recover any eDirectory information from a replica. After repairing or replacing the failed hardware, you must restore the entire NetWare environment, including eDirectory, from an SMS backup.

To restore a single SYS: volume, do the following.

  1. Correct the problem that caused volume SYS: to fail.

  2. Reinstall NetWare and eDirectory.

    When NWCONFIG asks for the names for Organization objects immediately under the [Root] object, use the same names that existed before in the eDirectory tree. Otherwise you will end up with new, empty containers in the restored eDirectory tree structure.

    Make sure disk partitions are at least as large as they were before, and that the volumes are defined as before.

  3. Restore eDirectory using Customizing Restore.


Restoring Volume SYS: in a Multiple-Server Network

To restore SYS: volumes on several servers, do the following.

  1. Restore the server-specific eDirectory information file (SERVDATA.NDS) to another server on the network following the custom (advanced) file system restore (see Customizing Restore).

    By default, the file is placed into the SYS:SYSTEM\server_name directory on the server you have selected.

  2. Use the DSMISC.LOG file (part of the information restored with the server specific information) to see if the failed server had a master replica of any partition.

  3. If the failed server had a master replica of any partition, select the server you want to hold the master replica and load DSREPAIR on that machine.

    1. Select Available Options > Advanced Options Menu.

    2. Select Replica and Partition Operations.

      NOTE:  Use the NDS Manager utility to perform regular partition operations.

    3. Select the partition you want to edit.

    4. To see the list of servers that have replicas of that partition, select View Replica Ring.

    5. Press Esc.

    6. Select Designate This Server as the New Master Replica.

    7. Repeat Steps 3a through 3f for each master replica that the failed server contained.

  4. (Conditional) If the failed server contained any replicas, remove them.

    1. Select Available Options > Advanced Options > Replica and Partition Operations.

    2. Select the partition the server held replicas of.

    3. Select View Replica Ring.

    4. Select the name of the failed server.

    5. Select Remove This Server from the Replica Ring.

    6. Enter the supervisor name and password.

    7. Select Yes to continue.

  5. Exit DSREPAIR.

  6. Reinstall NetWare.

    1. Begin the installation.

    2. When prompted for DS install, select Create a New DS Tree and complete the installation.

    3. Load NWConfig and remove DS.

    4. Install DS, when prompted for DS install and select Install into an Existing Tree.

    5. When prompted to choose a eDirectory tree structure, press F5.

      This allows you to choose to restore the SERVDATA.NDS file to the failed server.

    6. To specify the path where the SERVDATA.NDS file exists, press F3 and enter the path.

      HINT:  If the information fits on a diskette, you can save the information on a diskette instead of another server on the network.

    7. Press Enter to accept the path.

    8. Log in to the server that contains the SERVDATA.NDS file.

    9. Log in to the eDirectory database.

    10. If the START.NCF file of the failed server is different from the default, you can edit the default file.

    11. You now can choose from the following:

      • To continue the install and not copy the files from install, but use the backup tapes to finish restoring the information, press Enter.
      • To go back to the previous screen, press Esc.
      • To copy the files from install and then restore the files from tape, press F3.

  7. Restore the file system using Restoring Data.


Restoring the Entire eDirectory Tree Structure

To restore an entire network from a full backup in a multiple-server environment, do the following:

  1. Reinstall NetWare on the first server.

    By default, this server will hold the master replica of the [Root] partition.

    When NWCONFIG asks for the names of Organization objects immediately under the [Root] object, use the same names that existed before in the eDirectory tree.

    In NWCONFIG, select Directory Options > Directory backup and restore options to obtain the information.

    Otherwise you will end up with new empty containers in the restored eDirectory tree.

    When this installation is complete, you will have a working eDirectory tree containing one NetWare server with a master [Root] partition.

  2. Add name spaces as required.

  3. Install the remaining servers to complete a skeleton of your network.

    Before restoring a full eDirectory session, you should create a skeleton of your network.

    • All servers and volumes should be up and running.
    • The eDirectory objects should exist in the eDirectory tree in the same context as before. (NWCONFIG prompts you for the container in which you want each server to be placed.)
    • Make sure all servers are communicating with one another.
    • Make sure time synchronization is working properly.

    NOTE:  If you can get some, but not all of the servers backed up, you can still proceed with the restoration. However, you might see errors and experience problems due to eDirectory objects having dependencies that cannot be resolved.

    The User object (Admin or equivalent) used to create the backup session must exist in the same container with the same password and eDirectory rights as when the backup was performed.

    Once this step is completed, you still have just one partition: [Root]. Because of the NWCONFIG program defaults, you now have two replicas of that partition. These are stored on the second and third servers you installed.

  4. Restore eDirectory on one server using Restoring Data.


eDirectory Restore Session Types

You can choose to restore eDirectory in one of the following ways:


Single Server or an Entire Tree Restore

  1. Restore the entire eDirectory session from your SMS backup.

    You will have no session file to work from at this point. Choose the option to restore without session files.

  2. Continue through Step 15 to Step 19 to restore eDirectory.


Custom eDirectory Restore

To perform a custom eDirectory restore, do the following.

  1. Enter SBCON at the server console prompt.

  2. Select Job Administration.

  3. Select Restore Options > Advanced Restore Options > Subsets of What to Restore.

  4. To specify a subset, do the following.

    1. Select any item on the screen.

    2. Edit the Include or Exclude screen using Insert and Enter.

    3. Press Esc to save your changes.

  5. Specify whether or not to overwrite the existing parent or child.

    A parent is a container. A child is an object, which is the lowest level of the eDirectory tree.

    If you want to overwrite the parent or child that exists on the hard disk, regardless of whether the existing version or the backed-up version has the latest date, accept YES for parent, child, or both.

    If you do not want to overwrite the parent or child that exists on the hard disk, regardless of whether the existing version or the backed-up version has the latest date, select the option (parent or child or both), and enter N.

  6. Continue through Step 14 to Step 19.


Custom File System Restore

To perform a custom file system restore, do the following.

  1. Enter SBCON at the server console prompt.

  2. Select Job Administration > Restore Options > Advanced Restore Options > Subsets of What to Restore.

    The screen lists major and minor resources. The word DEFAULT indicates that none of that type of subset has been specified.

  3. To specify a subset, do the following.

    1. Select any item on the screen.

    2. Edit the Include or Exclude screen using Insert and Enter.

    3. Press Esc to save your changes.

  4. (Conditional) If you want to exclude certain types of data from the restore session, select Job Administration > Restore Options > Advanced Restore Options > Open Mode Options, and then edit the form.

    The backed-up data set contains the various types of data items listed on the screen. By default, all types of data items are included in the restore.

    If you want to exclude any item, select it and enter Y. Press Esc when you are finished editing the form.

  5. (Optional) Restore data to a different workstation or location on a different NetWare server.

    1. Back up the data from the server where it resides.

    2. Exit to the Main Menu.

    3. Select Change Target to Back Up From or Restore To screen from the Main Menu.

      See Changing Your Target.

  6. (Optional) Restore data to a different workstation or location within the backed-up server's file system structure.

    Follow these important rules about restoring to a new location:

    • When you specify a particular portion of the file system structure as the source location, it does not necessarily mean that this will be the only data restored. You can influence what is restored by using the Include and Exclude options on the Choose Subsets Of What You're Restoring screen (Job Administration > Restore Options > Advanced Restore Options > Subsets of What to Restore).
    • You can restore only to a new location in the name space that is supported by the drive you are restoring to.
    • OS/2 workstation only---On an HPFS drive you can rename only in the OS/2 name space, and on a FAT file system you can rename only in the DOS name space. However, SBCON displays both names spaces in the log file even though only one is valid.
    • If you do not want to overwrite any subdirectories that might exist in the area you have included, you must specifically exclude them by their full path.

    1. Go to Subsets of what you want to restore, press Enter, and then Insert, select the name space you want, and enter the name you used for your backup at the Enter the Data Set Name field.

    2. Enter the full directory path of the source including the volume name.

    3. Enter the full directory path to the new destination.

    4. Press Esc to save your changes.

    NOTE:  The eDirectory Target Service Agent (TSANDS) does not support restoration of data to a different location.

  7. Specify whether to overwrite the existing parent or child.

    A parent might be a server, a volume, or a directory. A child is a file, which is the lowest level of the file system structure.

    If you want to overwrite the parent or child that exists on the hard disk, regardless of whether the existing version or the backed-up version has the latest date, accept YES for parent or child or both.

    If you don't want to overwrite the parent or child that exists on the hard disk, regardless of whether the existing version or the backed-up version has the latest date, select the option (parent or child or both), enter N.

    If you want to overwrite the child that exists on the hard disk only if the date of the backed-up copy on the media is later than the date of the copy on the hard disk, select Overwrite Existing Child and select the option.

  8. Continue through Step 15 to Step 19.


Server-Specific Information Restore

To view and restore server information, do the following.

  1. Select Main Menu > Job Administration > Restore Options > Advanced Options > Subsets of What to Restore > Include Major TSA Resources.

    The Selection List Options screen appears and is empty.

  2. Press Enter to see the Selection List Options. Press Insert to see the server specific information.

  3. Select the Server-Specific Info and press Enter.

    Esc returns you to the Selection List Options.

    This will return you to the Choose Subset of the Session to be Restored screen.

  4. Complete the form and press Esc.

    This will return you to the Restore Options screen.

  5. Complete the Restore Options form and press Esc.

    The server-specific information will be restored to the SYS:SYSTEM\failed_server_name directory of the server on which you are running SBCON.

  6. Continue through Step 15 to Step 19.


Single File or Directory Restore

  1. Select Main Menu > Job Administration > Restore Options > Advanced Options > Subsets of What to Restore.

  2. Enter the full path and name of the file or directory, including full directory and volume names.

    The following options appear:

    Include/Exclude directories (full path)

    Include/Exclude files

    Include/Exclude path/files

  3. Press Insert and enter the name space for the name space format you used when entering the file or directory name.

    The name space allows SBCON to correctly interpret the path information entered earlier in this menu in either the directory field or the location field.

    IMPORTANT:  If files are restored to a new location, the name spaces must be the same or an error message will occur.

    You can restore to a new location only in the name space that is supported by the drive to which you are restoring.

    The supported name spaces are DOS, FTAM, Macintosh, NFS, and long.

    SBCON provides a list of the name spaces currently loaded on the target to which you are restoring.

    For example, if you are restoring to a new Macintosh location, enter a path, (for example, SYS::test:monday) and then enter Macintosh as your name space.

  4. (Optional) Restore to a new location (located in Rename Data Sets).

    1. Enter the source path, including the volume name, to the target directory (a location different from where the data was backed up). Enter Volume:/directory/directory

    2. If the new location you are restoring to is a different NetWare server, do the following:

      1. Back up the data from the server where it resides.

      2. Exit to the Main Menu.

      3. Change your target to the server you want to restore the data to. See Changing Your Target.

  5. Continue through Step 15 to Step 19.


Completing the eDirectory Restore

If you restored the eDirectory database to volume SYS:, you should complete the restoration for the following to make sure the eDirectory database is working properly:


Volume Other than SYS:

To finish restoring eDirectory on a volume other than SYS:, do the following.

  1. Bring the server up.

  2. (Optional) Verify proper restoration of the data, trustee assignments, file ownership, and other related information by spot-checking some of the restored directories and files.


Single-Server Network

To finish restoring eDirectory on a server, do the following.

  1. Restore the full file system following Restoring Data.

  2. (Optional) Verify proper restoration of the data, trustee assignments, file ownership, and other related information by spot-checking some of the restored directories and files.


Multiple-Server Network

To finish restoring eDirectory on multiple servers, do the following.

  1. Restore replicas to the server.

    The DSMISC.LOG file, which is created when the SERVDATA.NDS is restored, contains the partition and replica information that resided on the failed server at the time of the backup. This will show you what replicas were on the server when it failed.

  2. (Optional) Verify proper restoration of the data, trustee assignments, file ownership, and other related information by spot-checking some of the restored directories and files.

    Commands that might be helpful include RIGHTS /T /S (displays users, groups and other objects that have explicit trustee assignments in a directory and its subdirectories) and NDIR (displays owners and other NetWare file information).


Entire Tree

To finish restoring eDirectory on the tree, do the following.

  1. Restore the file system information to each server following Restoring Data.

  2. Re-create partitions and replicas.

  3. (Optional) Verify proper restoration of the data, trustee assignments, file ownership, and other related information by spot-checking some of the restored directories and files.

    Commands that might be helpful include RIGHTS /T /S (displays users, groups and other objects that have explicit trustee assignments in a directory and its subdirectories) and NDIR (displays owners and other NetWare file information).


Partial eDirectory Restores

Certain conditions might arise in special cases involving the backup and restoration of eDirectory information.

The SMS TSA software allows you to do selective restores from the backup media. However, partial restoration of eDirectory from a backup can have many subtle consequences, particularly when only a single object or a selected group of objects is restored.

For partial eDirectory restores, keep these two main issues in mind:


Restoring Cluster-enabled Pools

Restore of cluster-enabled pools is similar to a normal restore session.

See Restoring Data.

NOTE:  Auto recovery of the restore session on failover or failback is currently not supported.



Previous | Next