Checking for Running Backups

Both database backups and query server snapshots use the same file space on the LSMS. If a backup is in process and a query server snapshot or another backup is started, the first backup process will terminate prematurely, and the next backup will take significantly longer to complete. Therefore, it is very important that you perform the following procedure to check for a running backup before starting a manual backup or creating a query server snapshot.

In addition, the following tasks all use temporary file space on the LSMS. If you attempt to run these processes simultaneously, you may run out of disk space. Since backups can be run automatically, it is recommended that you perform the following procedure before attempting any of these tasks to ensure that no database backups are running:

  1. Log in as the lsmsadm or lsmsall user to the active server (for information about logging in, see “Logging In to LSMS Server Command Line”).
  2. Enter the following command to determine whether any database backups are running:

    $ ps -ef | grep netbackup
    • If output similar to the following displays (only grep netbackup displays after 00:00:00), no backup is running, and you may continue with the procedure you were performing:
      lsmsadm   6826  6312  0 16:58 pts/12   00:00:00 grep netbackup
      
    • If output similar to the following displays (with one or more processes after 00:00:00), a backup is running. DO NOT proceed with the procedure that you are performing. (This output displays all on one line although it does not fit on one line in this manual.)
      lsmsadm 25742 25596  0 11:20 ?        00:00:00 /usr/bin/perl -T /usr/TKLC/plat/bin/netbackup --config=/usr/TKLC/plat/etc/BackupTK/lsmsdb.xml
      
      CAUTION: While a backup is in progress, do not attempt to start a standby node (change its state from UNINITIALIZED "INHIBITED" to STANDBY), run the import command, run the lsmsdb quickaudit command, create a query server snapshot, or start another backup. All of these tasks use temporary file space. If you attempt to start one of these processes, you may run out of disk space.
    Before restarting or attempting to proceed with the procedure you were performing, run the command in this step again.