Introduction
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.
-
Check the Considerations for the DB2 DataAgent.
-
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
Procedure
-
Log on as a DB2 user and follow the Creating a Custom Package for UNIX, Linux, and Macintosh Computers procedure.
-
Follow one of the following installation methods:
Considerations for the DB2 Agent
Perform the following steps every time you start the DB2 application.
db2set DB2ENVLIST='CVREG'
db2stop
#export CVREG="DB2 home directory/CommVaultRegistry"
db2startExample
#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:
~/opt/commvault/galaxy_vm