Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP 9000 Networking: NetWare 4.1/9000 Installation and Administration Guide > Chapter 8 Managing NetWare

Backup/Restore a Volume

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

The backup and restore strategy has become a more flexible one with the 4.1 product vs the 3.12 product. This backup strategy allows you to use the standard HP-UX backup and restore tools for this purpose. It allows selective file restore and also operates when the NetWare server is up.

As the NetWare file system contains attributes, such as DOS attributes or NetWare trustee security information, which are not visible to the normal HP-UX backup utilities, the NetWare backup tools provided with the product extract a snapshot of this information so that it can be backed up by standard HP-UX backup utilities.

To do so, this information is put into a separate "shadow" file. Doing so, guarantees that the information will stay in a valid state during an HP-UX backup. The NetWare backup program, nwbackupsync, which creates the "shadow" file, must be run before you begin the normal HP-UX backup.

When you run nwbackupsync, it creates a "shadow" file, called backup_shadow, in the control path directory for each NetWare volume being backed up. By default, the control path for a volume is /var/opt/netware4/NWControl/<volume>. The shadow file contains NetWare-specific attributes for all directories and files in the volume. This information includes NetWare trustee information, such as trustee assignments and inherited rights masks; NetWare file information, such as attributes, object IDs, and create/modify times; and name space information.

Notes about NetWare Backup

  • NetWare 4.1/9000 server must be UP when running nwbackupsync.

  • nwbackupsync, even of the SYS volume where some key NDS files reside, is not an NDS backup (see next section).

  • nwbackupsync does not backup file contents, only NetWare attributes.

  • You can backup all NetWare volumes or only volumes specified in the command. See the command syntax below.

  • The size of the backup_shadow file is approximately the size of the trustee.sys and usinodes files combined together.

  • One backup_shadow file is created for each volume, which is found in the NetWare control path for that volume.

  • NOTE: nwbackup and nwrestore are two utilities that exist, but CANNOT be called directly from the command line. These two utilities are to be used instead: nwbackupsync and nwrestoresync.

nwbackupsync

This tool extracts NetWare file system-specific data, which is not visible to standard HP-UX backup tools, and places this data in a backup_shadow file for each volume that you have backed up. You can then use your usual HP-UX backup utilities to back up your volume(s), including the backup_shadow file.

NOTE: nwbackupsync must be run while the NetWare file server is up

Syntax:

nwbackupsync [options]

  • -a Used to backup all NetWare volumes.

  • -v volume Used to backup a specific volume(s). This option can be repeated which enables you to backup one or more specified NetWare volumes. You cannot specify the -a option with the -v option.

  • -p Prints list of all NetWare volumes.

  • -l [0|1|2|3] Specifies logging verbosity level:

    0 - only criticial error messages displayed. 1 - displays major information and warning messages 2 - displays directories being backed up 3 - displays all files being backed up.

  • -h Displays command help information.

Procedure to Backup All Volumes:

  1. Check that the NetWare file server is up using: nwserverstatus.

  2. Allow users to log off the server. Check the connection status using the command: conndata. This step is recommended, not required.

  3. Run the command: nwbackupsync -a

  4. After the command completes, run the normal HP-UX backup utilities. Be sure to backup both the volume data and the backup_shadow file.

Procedure to Backup a Single Volume:

  1. Check that the NetWare file server is up using: nwserverstatus.

  2. Allow users to log off the server. Check the connection status using the command: conndata. This step is recommended, not required.

  3. Run the command: nwbackupsync -v volume_name

  4. After the command completes, run the normal HP-UX backup utilities. Be sure to backup both the volume data and the backup_shadow file.

nwrestoresync

This tool recovers NetWare file system-specific data from a previously created backup_shadow file. The shadow file may already exist on your system in the NetWare control directory (/var/opt/netware4/NWControl/volume), or may be restored to an alternate location from tape. When restoring an entire volume, the backup_shadow file is restored to its proper location (the control directory). When you restore individual files or directories, the shadow file should be restored to an alternate location to avoid overwriting the existing shadow file.

Syntax:

nwrestoresync [options]

  • -a Used to resynchronize all NetWare volumes.

  • -v volume [file | directory]... Used to resynchronize one or more files or directories from a specific NetWare volume. This option can be repeated on the command line. This enables you to restore one or more specified NetWare volumes. You cannot specify the -a option with the -v option. You must qualify the files and directories to be restored relative to the root of the NetWare volume. For example, the NetWare file SYS:public\ndir is specified as: -v SYS public/ndir.

  • -f <temp_shadow_file> [file|directory] Resynchronize one or more files or directories from a specific NetWare volume, using an alternative temp_shadow_file file, instead of the default file associated with the volume. The -v and -a options are not used in conjunction with the command. Files and directories to be restored are specified using the HP-UX path name instead of a NetWare path name.

  • -p Prints list of all NetWare volumes.

  • -l [0|1|2|3] Specifies logging verbosity level:

    0 - only critical error messages displayed. 1 - displays major information and warning messages 2 - displays directories being backed up 3 - displays all files being backed up.

  • -h Displays command help information.

Procedure to Restore All Volumes:

NOTE: If you are restoring all volumes on a NetWare server, you probably lost the entire file server in a catastrophic event. If so, you may have also lost your NDS information, including either an NDS master or replica database that existed on the server. If this is the case, you must review the next section, "Backup and Restore NDS" before continuing with this procedure.
  1. Check that the disk space required for resoration of each volume is available.

  2. If you don't know the HP-UX path names of the volumes you have lost, you can determine the names with the nwrestoresync -p command or in SAM. For additional information, see the section, "Add NetWare Volume."

  3. If the NetWare server is up, shut it down using the command:

    stopnw.

  4. Use your normal backup/restore utilities to restore the lost volumes, giving HP-UX paths determined in step 2 above. Also, be sure to restore the backup_shadow file for each volume that was lost. The backup_shadow files are found in the control directory for that volume:

    /var/opt/netware4/NWControl/volume_name

  5. Run SAM and check that each volume is still configured. Refer to the section "Add NetWare Volume" in this chapter for this procedure. If any volumes are missing, add them in the SAM configuration tool.

  6. Start the NetWare file server using the command: startnw

  7. Wait for the following message to appear on the system console:

    NetWare server servername is up

  8. Run the command: nwrestoresync -a

Procedure to Restore a Single Volume:

  1. Check that the disk space required for resoration of the volume is available.

  2. If you don't know the HP-UX path names of the volume you have lost, you can determine the name with the nwrestorsync -p command or in SAM. For additional information, see the section, "Add NetWare Volume."

  3. If the NetWare server is up, shut it down using the command:

    stopnw

  4. Use your normal backup/restore utilities to restore the lost volume, giving HP-UX paths determined in step 2 above. Also, be sure to restore the backup_shadow file for the volume that was lost. The backup_shadow file is found in the control directory for that volume:

    /var/opt/netware4/NWControl/volume_name

  5. Run SAM and check that the volume is still configured. Refer to the section "Add NetWare Volume" in this chapter for this procedure. If volume is missing, add it in the SAM configuration tool.

  6. Start the NetWare file server using the command: startnw

  7. Wait for the following message to appear on the system console:

    NetWare server servername is up

  8. Run the command: nwrestoresync -v volume_name

Procedure to Restore Selected Directories or Files:

  1. Check that the NetWare file server is up. To do so, run the command:

    nwserverstatus

  2. Restore all lost files from tape to their original locations in the NetWare volume using your preferred HP-UX restore tool. If you don't know the HP-UX path name of the volume for the file(s) you have lost, you can determine this with the nwrestorsync -p command or in SAM. For additional information, refer to the section, "Adding a NetWare Volume."

  3. Determine the location of the backup_shadow file on the tape, which will be in the control path for the volume:

    /var/opt/netware4/NWControl/volume_name.

  4. Restore the backup_shadow file to a temporary location such as /tmp/backup_shadow.volume_name.

  5. Change the HP-UX current working directory to the parent of the lost file(s).

  6. Run the command:

    nwrestoresync -f /tmp/backup_shadow.volume file|dirname

NOTE: The file or directory names specified when you restore using the -f option must be in the form of an HP-UX path name, not VOL:dir\file.

Example:

For the NetWare file name, VOL:DIR1\FILE1, the HP-UX file name is:

/var/opt/ netware4/vol/dir1/file1.

The restore commands example for this file would be:

cd /var/opt/netware4/vol/dir1

nwrestoresync -f /tmp/backup_shadow.vol file1

Troubleshooting a restore

If you encounter errors when restoring entire volumes, such as:

nwrestore: Unable to open file
Error: 0x50-/var/opt/netware4/volume/dir1/file

nwrestore: Unable to open file
Error: 0x40 - /var/opt/netware4/volume/dir1/file2 stat of file failed with errno 2

complete the steps below:

  1. Stop the NetWare server with the stopnw command.

  2. Change the HP-UX working directory to the control path of the troubled volume:

    /var/opt/netware4/NWControl/volume_name

  3. Verify the backup_shadow file exists in this directory.

  4. Remove the usinodes, trustee.sys and extendedNames files.

  5. Restart the NetWare server with the startnw command.

  6. Wait for the message:

    NetWare server servername is up.

  7. Attempt nwrestoresync again on the problem volume with the command:

    nwrestoresync -v volume_name.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997 Hewlett-Packard Development Company, L.P.