NetBackup™ for DB2 Administrator's Guide

Last Published:
Product(s): NetBackup (10.3.0.1, 10.3)
  1. Introduction to NetBackup for DB2
    1.  
      Features of NetBackup for DB2
    2. NetBackup for DB2 overview
      1.  
        About the NetBackup for DB2 components
      2.  
        About NetBackup for DB2 terminology
  2. Installing NetBackup for DB2
    1.  
      Planning the installation of NetBackup for DB2
    2. Verifying the operating system and platform compatibility
      1.  
        NetBackup server and client requirements
      2.  
        DB2 server software requirements
      3.  
        Requirements for using NetBackup for DB2 in a NetBackup cluster
    3.  
      License for NetBackup for DB2
    4. About log archiving
      1.  
        Using the VENDOR archive method
      2.  
        Using the user exit archive method
    5.  
      Specifying the DB2 home path (UNIX)
    6.  
      About adding new DB2 instances
  3. Configuring NetBackup for DB2
    1.  
      Overview of NetBackup for DB2 configuration
    2.  
      About permissions for NetBackup for DB2 log files (UNIX)
    3. About configuring a backup policy for DB2
      1.  
        Adding a NetBackup for DB2 policy
      2.  
        About policy attributes
      3.  
        Adding clients to a policy
      4.  
        Specifying the master server for a NetBackup for DB2 client
      5.  
        Configuring a policy to back up the configuration files
      6.  
        Configuring the Maximum jobs per client
    4. About adding backup selections to a DB2 policy
      1.  
        About backup schedules and scripts
      2.  
        Adding a script to the backup selections list
    5.  
      Configuring an application backup schedule
    6.  
      Example application backup schedule
    7.  
      Configuring automatic backup schedules
    8.  
      Example automatic backup schedule
    9.  
      About schedule properties
    10.  
      NetBackup for DB2 backup types
    11.  
      Performing a manual backup
    12.  
      Reviewing the auto-discovered mappings in Host Management
    13. About backing up archive log files with the user exit program
      1.  
        DB2 objects in the backup window
      2.  
        Configuring a policy to back up the archive logs
      3.  
        Configuring a policy to archive the archive logs
    14. Configuring the run-time environment
      1. Creating a db2.conf file for use with the user exit program
        1.  
          Example db2.conf file using ARCFUNC SAVE
        2.  
          Example db2.conf file using ARCFUNC COPY
      2. Creating a db2.conf file (vendor method)
        1.  
          Example db2.conf file (vendor method)
      3. Configuring bp.conf files in a cluster environment
        1.  
          Configuring a master bp.conf file
        2.  
          Configuring a user bp.conf file
      4.  
        Keywords for the db2.conf file
      5.  
        NetBackup for DB2 environment variables
      6.  
        Configuring the logon account for the NetBackup Client Service for NetBackup for DB2
    15. About NetBackup for DB2 shell scripts
      1. Creating DB2 scripts manually
        1.  
          Modifying DB2 backup and install scripts
        2.  
          Script parameters
      2.  
        About NetBackup shell script storage
  4. Performing backups and restores of DB2
    1.  
      NetBackup for DB2 backup overview
    2.  
      About backups from the NetBackup master server
    3. About user-directed backups
      1.  
        Using DB2 to run a user-directed backup
      2.  
        BACKUP DATABASE command options
    4.  
      About browsing DB2 backup images with bplist
    5. Performing a database restore
      1. Using DB2 to perform a restore
        1.  
          Restoring and recovering a DB2 database - with a catalog name that has been specified
        2.  
          Recovering a DB2 database - Simplest case
        3.  
          Recovering a DB2 database - Restoring archive logs
        4.  
          RESTORE DATABASE command options
    6. About an alternate restore
      1.  
        Preparing the primary server for an alternate restore
      2.  
        Performing the alternate restore on the clients
      3.  
        Restoring the transaction logs
    7.  
      About preventing the direct expiration of backup images
  5. Using Snapshot Client with NetBackup for DB2
    1.  
      NetBackup for DB2 with Snapshot Client features
    2. About NetBackup for DB2 with Snapshot Client operations
      1.  
        About the sequence of a NetBackup for DB2 backup operation with Snapshot Client methods
      2.  
        About the sequence of a NetBackup for DB2 restore operation with Snapshot Client methods
      3.  
        About database objects supported by advanced backup methods
      4.  
        About multistreaming and DB2 snapshot backups
      5.  
        About symbolic links and DB2 backups and restores (UNIX)
      6.  
        NetBackup for DB2 stream-based operations
      7.  
        NetBackup for DB2 file-based operations
      8.  
        Example: multiple sessions for a DB2 snapshot backup
    3.  
      About configuring Snapshot Client with NetBackup for DB2
    4.  
      Configuration requirements for snapshot backups with NetBackup for DB2
    5.  
      Configuring a snapshot policy for NetBackup for DB2
    6.  
      About configuring the db2.conf for a snapshot policy
    7. Restoring NetBackup for DB2 from a snapshot backup
      1.  
        About restoring individual files from a NetBackup for DB2 snapshot backup
      2.  
        About NetBackup for DB2 restores of volumes and file systems using snapshot rollback
      3.  
        Performing a NetBackup for DB2 point-in-time rollback restore from a SnapVault backup (UNIX)
      4.  
        Performing a snapshot rollback restore from the command line
      5.  
        Troubleshooting NetBackup for DB2 rollback restores
    8. About configuring NetBackup for DB2 block-level incremental backups on UNIX
      1.  
        How BLI works with NetBackup for DB2 (UNIX)
      2.  
        About the Storage Checkpoint facility and NetBackup for DB2
      3.  
        Configuration requirements for BLI backups with NetBackup for DB2
      4.  
        Storage Checkpoint configuration on the NetBackup for DB2 client
      5. Configuring policies for BLI backups with NetBackup for DB2
        1.  
          About the types of NetBackup for DB2 BLI backups
      6.  
        BLI incremental backup options using NetBackup for DB2
    9. About Snapshot Client effects
      1.  
        How Snapshot Client software affects backup types
      2.  
        How Snapshot Client software affects schedule properties
      3.  
        How Snapshot Client software affects scripts
    10.  
      Performing NetBackup for DB2 backups with Snapshot Client methods
    11.  
      Performing NetBackup for DB2 restores with Snapshot Client methods
  6. Troubleshooting NetBackup for DB2
    1.  
      NetBackup debug logs and reports
    2.  
      Enabling the debug logs for a NetBackup for DB2 client automatically (Windows)
    3.  
      Enabling the debug logs manually (Windows)
    4.  
      Enabling the debug logs manually (UNIX)
    5. About the NetBackup for DB2 log files
      1.  
        About the bphdb directory on the Windows database client
      2.  
        About the bphdb directory on the UNIX database client
      3.  
        About the bpdb2 directory on the UNIX database client
    6.  
      Setting the debug level on a Windows client
    7.  
      Setting the debug level on a UNIX client
    8.  
      Minimizing timeout failures on large database restores
    9.  
      Minimizing the loading and unloading of tapes for database backups
    10.  
      Use the NET_BUFFER_SZ file to speed up a slow restore
    11.  
      About false restore failures reported in the activity monitor
    12.  
      About the error message codes
  7. Appendix A. Configuration for a DB2 EEE (DPF) environment
    1.  
      Overview of installation and configuration for a DB2 EEE (DPF) environment
    2.  
      Configuring NetBackup for DB2 in an EEE environment
    3.  
      Adding NetBackup policies for DB2 EEE environment
    4.  
      Backing up archive logs in a DB2 EEE environment
    5.  
      Creating DB2 scripts for a DB2 EEE environment
  8. Appendix B. Using NetBackup for DB2 with SAP®
    1.  
      About NetBackup for DB2 with SAP
    2.  
      Installation of the DB2 user exit program
    3.  
      Backup and restore of DB2 databases used by SAP
    4.  
      Archive and restore of DB2 log files used by SAP
    5.  
      Backup of SAP files
  9. Appendix C. Register authorized locations
    1.  
      Registering authorized locations used by a NetBackup database script-based policy

Reviewing the auto-discovered mappings in Host Management

In certain scenarios, a NetBackup host shares a particular name with other hosts or has a name that is associated with a cluster. To successfully perform backups and restores with NetBackup for DB2, you must approve each valid auto-discovered mapping that NetBackup discovers in your environment. Or, manually add the mappings.

See Approve the auto-discovered mappings for a cluster.

See Manually map host names.

Examples of the configurations that have multiple host names include:

  • A host is associated with its fully qualified domain name (FQDN) and its short name or its IP address.

  • If the DB2 server is clustered, the host is associated with its node name and the virtual name of the cluster.

These mappings appear in the Host Management properties on the primary server. You can also use the nbhostmgmt command to manage the mappings. See the NetBackup Administrator's Guide, Volume I for more details on Host Management properties.

Auto-discovered mappings for a cluster

In a DB2 cluster environment, you must map the node names to the virtual name of the cluster if the following apply:

  • If the backup policy includes the cluster name (or virtual name)

  • If the NetBackup client is installed on more than one node in the cluster, the virtual name must be mapped to each node.

    If the NetBackup Client is only installed on one node, then no mapping is necessary.

Approve the auto-discovered mappings for a cluster

To approve the auto-discovered mappings for a cluster

  1. In the NetBackup web UI, expand Security > Host mappings.
  2. Click the Mappings to approve tab.

    The list displays the hosts in your environment and the mappings or additional host names that NetBackup discovered for those hosts. A host has one entry for each mapping or name that is associated with it.

    For example, for a cluster with hosts client01.lab04.com and client02.lab04.com, you may see the following entries:

    Host

    Auto-discovered Mapping

    client01.lab04.com

    client01

    client01.lab04.com

    clustername

    client01.lab04.com

    clustername.lab04.com

    client02.lab04.com

    client02

    client02.lab04.com

    clustername

    client02.lab04.com

    clustername.lab04.com

  3. Click the name of the host.
  4. Review the mappings for the host and click Approve if you want to use the discovered mappings.

    For example, if the following mappings are valid for client01.lab04.com, then you approve them.

    Auto-discovered Mapping

    Valid name for

    client01

    The short name of the client

    clustername

    The virtual name of the cluster

    clustername.lab04.com

    The FQDN of the virtual name of the cluster

  5. When you finish approving the valid mappings for the hosts, click on the Hosts tab.

    For hosts client01.lab04.com and client02.lab04.com, you see entries for Mapped host or IP Address that are similar to the following:

    Host

    Mapped Host Names/IP Addresses

    client01.lab04.com

    client01.lab04.com, client01, clustername, clustername.lab04.com

    client02.lab04.com

    client02.lab04.com, client02, clustername, clustername.lab04.com

  6. If you need to add a mapping that NetBackup did not automatically discover, you can add it manually.

Table: Example mapped host names for a DB2 cluster environment

Environment

Host

Mapped Host Names

Cluster with two nodes

Physical name of Node 1

Virtual name of DB2 server

 

Physical name of Node 2

Virtual name of DB2 server

 

Manually map host names

If you need to add a mapping that NetBackup did not automatically discover, you can add it manually.

To manually map host names

  1. In the NetBackup web UI, expand Security > Host mappings.
  2. Click on the Hosts tab.
  3. Click Add shared or cluster mappings.

    For example, type the name of the virtual name of the cluster. Then click Add to choose the hosts to which you want to map that virtual name.