Recovering the catalog without the disaster recovery file on UNIX/Linux

Article:HOWTO32807  |  Created: 2010-10-28  |  Updated: 2012-08-04  |  Article URL http://www.symantec.com/docs/HOWTO32807
Article Type
How To


Environment

Subject


Recovering the catalog without the disaster recovery file on UNIX/Linux

If the disaster recovery file has been lost, consult the email that was sent to the administrator when the catalog was backed up. The disaster recovery file is written to the location you specify in the catalog backup policy and is appended to the backup stream itself.

To recover the catalog without the disaster recovery file

  1. The email identifies the media that contains the disaster recovery file, and the media that was used to back up critical policies. Ensure that this media is available.

  2. Follow up the normal catalog recovery steps until the point where the Catalog Recovery Wizard or bprecover command is called for.

  3. Run the following command to retrieve all disaster recovery files from the catalog backup media:

    bpimport -drfile -id media_id -drfile_dest dir_name_on_master
    
    This command recovers all disaster recovery files from the specified media ID and places them in the specified directory. The ID can be either a tape media ID or the fully qualified location of a disk storage unit.
  4. Verify that the correct disaster recovery file is available in the specified directory and that it is available from the NetBackup master server.

  5. Continue with the normal catalog recovery procedure by running the Catalog Recovery Wizard or bprecover command, providing the disaster recovery file location when prompted.

    Refer to the email as your primary source for recovery instructions, because they are the most current instructions for recovering your catalog. The instructions are sent when the catalog backup is completed, or when a catalog backup image is duplicated.

    Note:

    If you restore catalog files directly by using bprestore on a Solaris system, use the following path: /opt/openv/netbackup/bin/bprestore.

    The name of the online catalog backup policy is CatalogBackup. The email is written to the following file:

    /storage/DR/CatalogBackup_1123605764_FULL.

    The file name itself indicates if the backup was full or not.

    The following is an example of a disaster recovery email:

    Server
        ant
    
    Date
        Tue Aug 10 11:41:48 2010
    
    Policy
        CatalogBackup
    
    Catalog Backup Status
        the requested operation was successfully completed (status 0).
    
    To ensure that the NetBackup catalog data is protected through Tue 
    Aug 10 11:41:48 2010, retain a copy of the attached file, and the 
    media or files listed below:
    
    Catalog Recovery Media
            Media Server                Disk image path
          * ant /storage/DiskUnit1/ant_1123605764_C1_TIR
          * ant /storage/DiskUnit1/ant_1123605764_C1_F1
          * ant /storage/DiskUnit1/ant_1123605713_C1_F1
    
    DR file written to
        /storage/DR/CatalogBackup_1123605764_FULL
    
    * - Primary Media
    
    Catalog Recovery Procedure for the Loss of an Entire Catalog
    
    Symantec recommends creating a detailed disaster recovery plan 
    should it become necessary to restore your organization's data in 
    the event of a disaster.  A checklist of required tasks can be a 
    tremendous tool in assisting associates in triage.  For example, 
    after the facility is safe for data to be restored, the power and 
    data infrastructure need to be verified.  When these tasks are 
    completed, the following scenarios will help to quickly restore the 
    NetBackup environment, and in turn, restore applications and data.
    
    Disaster Recovery Procedure using the DR Image File
    
    In the event of a catastrophic failure, use the following procedure 
    to rebuild the previous NetBackup environment.
    
    Note:  If new hardware is required, make sure that the devices 
    contain drives capable of reading the media and that the drive 
    controllers are capable of mounting the drives.
    
    1. Install NetBackup.
    2. Configure the devices necessary to read the media listed above.
    3. Inventory the media.
    4. Make sure master server can access the attached DR image file.
    Start NetBackup Recovery Wizard from the NetBackup Administration 
       Console. Or, start the wizard from a command line by entering
       bprecover -wizard.
    
    Disaster Recovery Procedure without the DR Image File
    NOTE: ONLY ATTEMPT THIS AS A LAST RESORT If you do not have the 
    attachment included with this email, use the following instructions 
    to recover your catalog:
    
    1. Install NetBackup.
    2. Configure the devices necessary to read the media listed above.
    3. Inventory the media.
    4. Run: bpimport -create_db_info [-srvr name] -id /storage/DiskUnit1
    5. Go to the following directory to find the DR image file
       CatalogBackup_1123605764_FULL:
       /usr/openv/netbackup/db/images/ant/1123000000/tmp
    6. Delete the other files in the directory.
    7. Open CatalogBackup_1123605764_FULL file and find the BACKUP_ID
        (for example: ant_1123605764).
    8. Run: bpimport [-server name] -backupid ant_1123605764
    9. Run: bprestore -T -w [-L progress_log] -C ant -t 35 -p 
              CatalogBackup -X -s 1123605764 -e 1123605764 /
    10. Run the BAR user interface to restore remaining image database 
        if the DR image is a result of an incremental backup.
    11. To recover the NetBackup relational database, run:
           bprecover -r -nbdb
    12. Stop and Start NetBackup
    13. Configure the devices if any device has changed since the last 
        backup.
    14. To make sure the volume information is updated, inventory 
    the media to update the NetBackup database.

See How to recover a catalog from a backup on UNIX/Linux


Legacy ID



id-SF970160433_v46435089


Article URL http://www.symantec.com/docs/HOWTO32807


Terms of use for this information are found in Legal Notices