Mounting a thin server instance (Linux and AIX)

In a thin server instance environment, to enable instance management functions on remote servers you must mount the shared Db2® installation path on the code server on each of the remote server in the network.

Before you begin

About this task

In a thin server instance environment, a read-only copy of non-root Db2 installation path on the code server is exported by using Network File System (NFS). To use the thin server instance on remote servers in the network, you must create a mount point on each of the remote server in the network. The code server that exports the file system has the file system mounted locally. This task explains how to mount the shared Db2 installation path of the code server on the remote server.

Procedure

  1. Log in to the remote server as a root user.
  2. Create a mount point on the remote server as shown in the following example:
    mkdir –p /home/db2inst1/sqllib
    where /home/db2inst1/sqllib is the mount point on the remote server.
  3. Perform the following steps.

    For Linux®:

    1. Verify that the mount point on the code server is listed from the remote server as shown in the following example:
      showmount -e SYSTEM A
      where SYSTEM A is the code server.
    2. Edit the /etc/fstab file on the remote server and add an entry for shared directory as shown in the following example:
      SYSTEM A:/home/db2inst1/sqllib /home/db2inst1/sqllib nfs timeo=100 retrans=5,soft,intr,bg,suid,ro,nolock.
      where /home/db2inst1/sqllib is the mount point on the remote server.
    3. Run the mount command from the remote server as shown in the following example:
      mount -t nfs SYSTEM A:/home/db2inst1/sqllib/ /home/db2inst1/sqllib

    For AIX®:

    1. Enter the smit nfs command.
    2. Click the Network File System (NFS) icon.
    3. Click the Add a File System for Mounting icon.
    4. Enter the path name of the mount point in the PATHNAME of the mount point (Path) field.

      The path name of the mount point is where you must create the Db2 home directory. For example, /home/db2inst1/sqllib.

    5. Enter the path name of the remote directory in the PATHNAME of the remote directory field.

      You must enter the same value that you entered in the PATHNAME of the mount point (Path) field. For example, /home/db2inst1/sqllib.

    6. Enter the hostname of the computer where you exported the file system in the HOST where the remote directory resides field.

      This value is the host name of the computer where the file system that you are mounting was created. For example, SYSTEM A.

    7. Set the MOUNT now, add entry to /etc/filesystems or both? field to both.
    8. Set the /etc/filesystems entry will mount the directory on system RESTART field to yes.
    9. Set the MODE for this NFS file system field to read-only.
    10. Set the Mount file system soft or hard field to hard.

      A soft mount means that the computer does not try for a long period to remotely mount the directory. A hard mount means that your computer tries for a long period to mount the directory. This might cause problems in the event of a system crash. It is recommended that you set this field to hard.

      The remaining fields can be left to the default settings.

    11. Set the Allow execution of SUID and sgid programs in this file system? field to No.
    12. Click OK.
  4. Log out of the remote server.