Cluster Server 7.4.2 Agent for DB2 Installation and Configuration Guide - Linux
- Introducing the Cluster Server Agent for DB2
- About agent functions for VCS Agent for DB2
- About IMF Integration functions for VCS Agent for DB2
- Installing and configuring DB2
- VCS requirements for installing DB2
- Setting up the DB2 configuration
- Installing and removing the Cluster Server Agent for DB2
- Configuring VCS service groups for DB2
- About DB2 configurations in VCS
- Before configuring the service group for DB2
- Configuring the VCS Agent for DB2 from Cluster Manager (Java Console)
- Configuring the VCS Agent for DB2 by editing the main.cf file
- Setting up in-depth monitoring of a DB2 instance
- Administering VCS service groups for DB2
- Appendix A. Troubleshooting Cluster Server Agent for DB2
- Appendix B. Resource type information for Cluster Server Agent for DB2
- Appendix C. Resource type attributes for DB2
- Appendix D. Sample configurations
Adding user accounts for DB2 on Linux
In the following examples that show creating user accounts, you can use the following options:
The -g option specifies the group
The -u option specifies the user ID
The -d option specifies the home directory
The -m option creates the home directory if it doesn't exist
The -s option is the user's logon shell
The final expression is the user's logon.
Create the user accounts on each node in the cluster.
This example shows how to create the user, db2inst1, who is the DB2 UDB instance owner. The instance's home directory is also the mount point: /db2_mnt/db2inst1. The DB2 UDB instance home directory must exist on every node. For example:
# useradd -g db2iadm1 -u 1004 -d /db2_mnt/db2inst1 -m -s \ /bin/ksh db2inst1
The following examples show how to create user accounts for db2fenc1 and dasusr1. These users' home directories are under /home in the local file system on each node.
# useradd -g db2fadm1 -u 1003 -d /home/db2fenc1 -m -s \ /bin/ksh db2fenc1 # useradd -g dasadm1 -u 1002 -d /home/dasusr1 -m -s /bin/ksh dasusr1
For DB2 configuration in MPP mode the file system that uses the mount point: /db2_mnt/db2inst1 uses Cluster File System to hosts the DB2 UDB instance home directory.