Creating Storage Checkpoints using db2ed_ckptcreate

You can use the command to create a Storage Checkpoint from the command line.

Storage Checkpoints can be either online or offline. If online is specified, the database is put into write suspend mode when the Storage Checkpoint is created. If offline is specified, the database is expected to be down.

Before creating a Storage Checkpoint, the following conditions must be met:

Prerequisites

  • You must be logged on as the instance owner (typically, the user ID db2inst1).

  • For best recoverability, always keep the LOGRETAIN and/or USEREXIT database configuration parameters enabled when you create Storage Checkpoints.

Usage notes

  • db2ed_ckptcreate stores Storage Checkpoint information under the following directory:

    /etc/vx/vxdbed/DB2.$DB2INSTANCE.$DB2DATABASE/NODEnum/checkpoint_dir

  • For multiple partitions, use the db2ed_ckptcreate_all command. db2ed_ckptcreate_all creates a Version Checkpoint for a partitioned DB2 database by calling db2ed_ckptcreate on every database partition.

  • See the db2ed_ckptcreate(1M) manual page for more information.

To create Storage Checkpoints while the database is online

To create Storage Checkpoints without updating the repository while the database is online

To create Storage Checkpoints while the database is offline

  1. Terminate the database before creating the offline Storage Checkpoint:

    # db2 terminate
  2. Use the db2ed_ckptcreate command as follows:

    $ /opt/VRTS/bin/db2ed_ckptcreate -D PROD -o offline
    An offline Storage Checkpoint Checkpoint_971672044 
    is created at GMT 2004-05-01-18.22.34.0000.

    The default option is online.

To assign a Storage Checkpoint allocation policy to a Storage checkpoint

To create Storage Checkpoints on multiple partitions