DB2 10.5 for Linux, UNIX, and Windows

Setting up a thin server instance environment (Linux and AIX)

You can set up a thin server instance environment by performing a non-root DB2® installation on a code server and sharing a read-only copy of the DB2 installation path to other users in the network by using Network File System (NFS).

Before you begin

Procedure

To set up a thin server instance environment:

  1. Log in to the code server as a non-root user.
  2. Perform a non-root DB2 installation on the code server. For more information, see Installing DB2 database servers as a non-root user. After successful non-root installation on code server, an instance is created in the user home directory as shown in the following example:
    /home/db2inst1/sqllib/
    where, db2inst1 is the non-root user name, and /home/db2inst1 is the home directory of the non-root user.
  3. Share the non-root copy of DB2 installation path on the code server as a read-only copy to other systems in the network by using NFS. Perform one of the following set of substeps:
    • On Linux operating systems, perform the following substeps:
      1. Log in to the code server as a root user.
      2. In the /etc/exports file, add the following entry:
        /home/db2inst1/sqllib <ip_address_of_remote_server>(ro,sync,no_subtree_check,no_root_squash)
        where, /home/db2inst1 is the home of the instance user.
      3. Start the NFS server by issuing the following commands.
        /etc/init.d/nfsserver restart or /etc/init.d/service nfs restart or /etc/init.d/nfs restart
        /etc/init.d/portmap restart
        /etc/init.d/nfslock start
        exportfs -a
        exportfs -v
    • On AIX® operating systems, perform the following substeps:
      1. Issue the smit nfs command.
      2. Click the Network File System (NFS) icon.
      3. Click the Add a Directory to Exports List icon.
      4. In the PATHNAME of directory to export field, enter the path name and directory to export, such as /home/db2inst1/sqllib.
      5. Click the Mode to export directory icon.
      6. Select read-only.
      7. In the HOSTS and netgroups allowed client access field, enter the name of the code server and remote server.
      8. Click OK.