NetBackup™ in Highly Available Environments Administrator's Guide

Last Published:
Product(s): NetBackup & Alta Data Protection (10.2)
  1. About in this guide
    1.  
      What's in this guide
    2.  
      Documents related to NetBackup in highly available environments
  2. NetBackup protection against single points of failure
    1. Protecting against component failures
      1.  
        Network link failures
      2. Storage device connection failures
        1.  
          SAN connection failures
        2.  
          Robotic control connection failures
      3.  
        Storage device failure
      4.  
        Media availability failures
      5.  
        Primary server failures
      6. Media server failures
        1.  
          Dedicated media server failures
        2.  
          Non-dedicated media servers failures
        3.  
          SAN media server failures
        4.  
          Restoring tape backups using an alternative media server
        5.  
          Restoring disk backups using an alternative media server
      7.  
        LAN client failures
      8.  
        SAN client failures
    2.  
      Site failures
    3.  
      Protecting the catalog in highly available environments
  3. About site disaster recovery with catalog backup and recovery
    1.  
      Disaster recovery packages
    2. About catalog recovery
      1.  
        About full catalog recovery
      2.  
        Performing full catalog restore
      3.  
        Making the DR environment consistent after a full catalog restore
      4.  
        About partial catalog recovery
      5.  
        Performing a partial catalog restore
      6.  
        Making the DR environment consistent after a partial catalog restore
    3. About disk recovery in DR domain
      1.  
        Disk recovery in single-domain replication DR environment
      2.  
        Auto Image Replication
      3.  
        Disk recovery in cross-domain replication DR environment
  4. About site loss protection with auto image and catalog replication
    1.  
      About Auto Image Replication (AIR)
    2. About NetBackup catalog replication
      1.  
        About conditions for support of replicated NetBackup catalogs
      2.  
        About catalog synchronization
      3. About multi-site single domain replication
        1.  
          About multi-site single domain with stretched SAN
        2.  
          About multi-site single domain with optimized duplication
      4. About multi-site cross domain replication
        1.  
          About multi-site cross domain and BasicDisk storage
        2.  
          Planning a cross domain replication disaster recovery domain
      5. About full catalog replication
        1.  
          Recovering the catalog with full catalog replication
        2.  
          Making the DR environment consistent with full catalog replication
      6. About partial catalog replication
        1.  
          Preparing an environment for partial catalog replication
        2.  
          Recovering the environment with partial catalog replication
        3.  
          Making the disaster recovery environment consistent with partial catalog replication
        4.  
          Considerations for managing tapes with partial catalog replication
  5. Deploying NetBackup primary servers with full catalog replication
    1.  
      About replication considerations
    2. About non-clustered NetBackup primary server with catalog replication
      1. Installing and configuring non-clustered NetBackup primary server with catalog replication
        1.  
          Installing and configuring the main NetBackup primary server
        2.  
          Installing and configuring an alternate NetBackup primary server
        3.  
          Upgrading NetBackup primary server in a non-clustered replicated configuration
    3. About globally clustered NetBackup primary servers with catalog replication
      1. Installing and configuring a globally clustered NetBackup primary server with catalog replication
        1.  
          About clustering considerations
        2.  
          Installing and configuring the main NetBackup primary server cluster
        3.  
          Installing and configuring an alternate NetBackup primary server cluster
      2.  
        Populating the server tables in the NetBackup database
      3.  
        Upgrading NetBackup in a clustered replication configuration
      4.  
        Failing over to an alternate primary server cluster
      5.  
        Testing the NetBackup primary server cluster in clustered replication environment
  6. Using NetBackup to perform backups and restores in a cluster
    1. About backups and restores with NetBackup in a cluster
      1.  
        Performing user-directed backups with NetBackup in a cluster
      2. About restoring data in a cluster
        1.  
          Example: Performing a user-directed restore in a NetBackup cluster
    2.  
      About supported NetBackup application agents in a cluster

Recovering the environment with partial catalog replication

In the event of a loss of the source primary server (or during a disaster recover test) follow these steps:

To recover the environment with partial catalog replication

  1. Run the nbgetconfig command and save the output. This output can be used after the catalog recovery to recover the host-specific information that is overwritten during the catalog recovery.

    For example:

    ./nbgetconfig > sample.txt

  2. Ensure that replication is stopped between the main and the alternate sites.

    Replication stops if the main primary server is unavailable or if the replication link is disabled.

  3. Mount the replicated volume to the appropriate mount point on the alternate primary server.
  4. Use the command nbdb_admin - vxdbms_nb_staging <directory> on the target (disaster recovery) primary server to point the staging area for the database to the location on the replicated storage.
  5. Recover the image header information without recovering the entire NetBackup database, perform the following steps:
    • Step a - Back up the target database. Run the following command.

      nbdb_backup -online directory

      Make sure that you do not specify the staging folder as the output directory. (The staging folder contains the schema data and configuration data for the NetBackup database from the catalog backup. Image .f and configuration files are recovered to their final destinations.)

    • Step b - Recover the NetBackup database from the staging directory.

      nbdb_restore -recover -staging
    • Step c - Export the image header data that you want to import from the backup.

      For example, the following command exports export all image header data. The data is exported to the netbackup/db.export directory.

      cat_export -all
    • Step d- Recover the NetBackup database with the following command.

      nbdb_restore -recover directory

      Make sure that you specify the same directory as in step a.

    • Step e- Run the cat_import command to import the image header data that you extracted in step c.

      cat_import -all -replace_destination -delete_source

      The command does the following:

      • Imports all of the image header data in the netbackup/db.export directory.

      • Replaces any image header data that was exported that already exists in the target database.

      • Removes the image header data that resides in the netbackup/db.export directory.

    • Step f- If you recovered the catalog from a disk device, you may have to fix the disk media ID references. Run the following command:

      nbcatsync -sync_dr_file DR file path -dryrun

      Replace DR file path with the path to the catalog DR file.

    • Step g - If the result of the dry run is satisfactory, run the following command:

      nbcatsync -sync_dr_file DR file path
  6. Run the command cat_import - all to import the exported metadata into the active database.
  7. Recover the host settings that you backed up in step 1. Run the following command.
    ./nbsetconfig sample.txt
  8. Start NetBackup on the secondary primary server.
  9. If the backup policies are replicated, deactivate all backup policies to prevent backups from starting automatically. Use one of the following methods:
    • The NetBackup web UI.

    • Run the command bppllist <policy> -set -inactive.

  10. Ensure that the appropriate FAILOVER_RESTORE_MEDIA_SERVER settings are defined to direct restore operations through the media servers at the alternate site.
  11. To restore the backups from tapes, you must add the tapes to the disaster recovery primary server's catalog. Place the tapes in a tape library and run an inventory of the library. To prevent the tapes from being accidentally overwritten the disaster recovery primary server should have a barcode rule that adds the tapes to a volume pool. The volume pool must not use the global scratch pool and no backup policies should use this pool. Ideally the tapes should also be physically write locked.
  12. For disk-based backups, the storage servers and disk pools must be added to the disaster recovery primary server by running the disk storage server wizard.

    Once the disk storage is present, run the following command to reconcile the disk media IDs:

    nbcatsync - backupid <catalog backup ID> -prune_catalog

    The value <catalog backup ID> is the backup ID of the most recent catalog backup and can be found in the catalog backup's disaster recovery file. After the tapes have been added and the disk media IDs have been reconciled it is possible to start restore operations.