Backing up databases when converting to a Db2 pureScale environment

Before and after the process of converting your environment to a Db2 pureScale environment, perform a full offline database backup.

Before you begin

Procedure

To perform a full offline back up for each of your local databases:

  1. Disconnect all applications and users from the database.
    To get a list of all database connections for the current instance, issue the LIST APPLICATIONS command:
    db2 LIST APPLICATIONS
    
    If all applications are disconnected, this command returns the following message:
    SQL1611W No data was returned by the Database System Monitor.
    SQLSTATE=00000
    To disconnect all applications and users, use the FORCE APPLICATION command:
    db2 FORCE APPLICATION ALL
  2. Backup your database using the BACKUP DATABASE command.
    The following is an example for UNIX operating systems:
       db2 BACKUP DATABASE database_alias USER username USING password TO backup-dir
    where database_alias is the database alias, the user name is username, the password is password, and the directory to create back up files is backup-dir.

    In partitioned database environments, back up all database partitions.

    If you activated and configured Db2 Advanced Copy Services (ACS) on your databases in Db2 Version 9.5 or later, you can use the USE SNAPSHOT parameter to perform a snapshot backup. However, you can only restore a snapshot backup to an instance of the same version. You cannot use snapshot backup to move to a new server. For details, see Performing a snapshot backup.

    If you performed a full offline database backup recently and you cannot perform another one before conversion, you can perform an incremental offline database backup instead.

  3. Optional: Test the integrity of a backup image to ensure that the image can be restored using the db2ckbkp command.
    The following command is an example on UNIX operating systems:
       cd backup-dir   
       db2ckbkp SAMPLE.0.arada.NODE0000.CATN0000.20091014114322.001
    
       [1] Buffers processed:  #######
    
       Image Verification Complete - successful.

What to do next

Backing up Db2 server configuration and diagnostic information before converting to aDb2 pureScale environment.