DB2 Non-Root Installation


DB2 non-root installation allows a DB2 user to install the Commvault and configure DB2 for backup and restores. Follow these procedures to install the software as a non-root user.

  1. Check the Considerations for the DB2 DataAgent.
  2. Create the Instance, backup set and a subclient for the database using XML.

Files Used during a Non-Root User Installation

The following are used during a non-root user installation.

  • The home directory of the user, <db2_home>/opt,
  • The home directory of the user, <db2_home>/log. You should have write access to the log file directory.
  • The home directory of the user, ~/CommVaultRegistry. Specify any other directory with write permission at the time of installation for creating the registry.

Folder Permissions

You need read and write permissions for the non-root user on the following folders:

  • The /tmp/locks folder
  • The parent folder of the DB2 archive folder
  • The parent folder of the DB2 error path folder
  • The parent folder of the DB2 retrieve path folder


  1. Log on as a DB2 user and follow the Creating a Custom Package for UNIX, Linux, and Macintosh Computers procedure.
  2. Follow one of the following installation methods:

    Interactive Installation

    Unattended Installation

Considerations for the DB2 Agent

Perform the following steps every time you start the DB2 application.

#export CVREG="<DB2 home directory>/CommVaultRegistry"


#export CVREG="/home/db2insta1/CommVaultRegistry”

Before you run the Db2_config.sh or the db2util.sh utility, make sure that the CVREG environment variable is set to the registry path. If it is not set, run the galaxy_vm command to get the registry path by typing the following command:


Create the DB2 Instance, Backup Set and Subclient Using XML

  1. Add a DB2 Instance
  2. Create a Backup Set
  3. Add a Subclient

Last modified: 5/14/2018 9:07:42 PM