SnapProtect - DB2 - Configuration

Configuration

Once the DB2 iDataAgent is installed, configure an Instance and a Backup Set to facilitate backups. Each Backup Set references a DB2 database. It is recommended to create separate subclients for SnapProtect operations.

If you plan to use SnapVault or SnapMirror, use the appropriate storage policy based on the type of snapshot, such as NetApp 7-Mode and Cluster-Mode snapshots. For NetApp 7-Mode snapshots, use storage policies associated with OnCommand Unified Manager 5.0, 5.1, or 5.2. For NetApp Cluster-Mode snapshots, use storage policies associated with OnCommand Unified Manager 6.0, 6.1, 6.2 6.3P1, 6.4P1, or 7.0.

Most capabilities of data ONTAP 7-Mode apply, however cascaded replication of primary to snapvault to snapmirror on a single policy is not supported.

The following sections provide the necessary steps required to create and configure these components for a first SnapProtect backup of the DB2 database.

Configuring an Instance

  1. From the CommCell Browser, expand Client Computers > client.
  2. Right-click DB2, point to All Tasks and then click New Instance.
  3. In the Creating New Instance dialog box, specify the following:
    1. On the General tab:
      1. In the Instance Name box, type the instance name.
      2. In the Home box, enter the path to the DB2 application files.
      3. Click Change, enter the user account information to access the DB2 application in the Set DB2 User Account dialog box, and then click OK.
    2. On the Storage Device tab:
      1. On the Data Backup tab, from the Default Storage Policy box, select a storage policy name for data backups.
      2. On the Command Line Backup tab, from the Storage Policy for Command Line Backup box, select a storage policy name.
      3. On the Logs Backup tab, from the Storage Policy for All Log Files box, select a storage policy name for log backups.
  4. Click OK.

Configuring Backup Set

  1. From the CommCell Browser, expand Client Computers > client > DB2.
  2. Right-click the instance, point to All Tasks and then click Create New Backup Set.
  3. From the Available DB Names, select the appropriate database name, and click > to move it to the Selection list.
  4. Click OK.

Configuring a Subclient

  1. Right-click the backup_set, point to All Tasks and then click New Subclient.

  2. In the Creating New Subclient dialog box, specify the following:
    1. On the General tab, in the Subclient Name box, type a name.
    2. On the Storage Device tab, from the Data Storage Policy list, select the same storage policy used for data backups.

      The subclient should use the same storage policy set for data backups at the instance level in order to prevent job failure.

  3. Click OK.

Skip this section if not using Solaris.

Enable SnapProtect Backups on Solaris Zone

Follow the steps given below to enable SnapProtect backups on each of the non-global zone clients containing the application data.

  1. From the CommCell Console, navigate to Client Computers | <Client>
    • Right-click the client and select Properties.
    • Click Advanced.
  2. In the Advanced Client Properties (General) tab
    • Select the Global zone host name from the drop-down list.
    • Click OK.

      • We support disks on a global zone mounted using loopback File System on a non global zone.
      • This option need not be enabled if you are using a NFS share. This is because when using NFS mount paths, the operations are limited to the non-global zone and does not use the global zone.

  3. Click OK and repeat the above steps on all the non-global zone clients containing the application data.

Skip the following section if you already created a snapshot copy.

Create a Snapshot Copy

The following section provides step-by-step instructions for creating a Snapshot Copy for a Storage Policy.

  1. From the CommCell Browser, navigate to Policies | Storage Policies.

    Right-click the <Storage_Policy> and click All Tasks | Create New Snapshot Copy.

  2. Specify the following to create a Snapshot Copy:
    1. Type the Copy Name in the Copy Name box.
    2. From the Library list, select the name of Library.
    3. From the MediaAgent list, select the name of a MediaAgent.
    4. From the Drive Pool list, select the name of a Drive Pool.
    5. From the Scratch Pool list, select the name of the Scratch Pool.

      Drive Pool and Scratch Pool are not applicable for disk libraries.

    6. Click OK.

The newly created Snapshot Copy can be associated with the subclient from which the snap backup is performed. In this case, the Snapshot Copy acts as the primary copy and therefore will contain only the metadata information associated with the snapshot Backup.

Configuring a Backup Copy

A backup copy operation provides the capability to copy snapshots of the data to any media. It is useful for creating additional standby copies of data and can be performed during the SnapProtect backup or at a later time.

Follow the steps given below to configure Backup Copy for moving snapshots to media.

  1. Open CommCell Console:
    • From the CommCell Browser, navigate to Policies | Storage Policies.
    • Right-click the <Storage Policy> and click Properties.

  2. Click the Snapshot tab.

    Select Enable Backup Copy checkbox to enable movement of snapshots to media.

    Click OK.