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.
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
- Log in to the remote server as a root user.
- 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.
- Perform the following steps.
- 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.
- 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.
- 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
- Enter the smit nfs command.
- Click the Network File System (NFS) icon.
- Click the Add a File System for Mounting icon.
- 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.
- 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.
- 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.
- Set the MOUNT now, add entry to /etc/filesystems
or both? field to both.
- Set the /etc/filesystems entry will mount
the directory on system RESTART field to yes.
- Set the MODE for this NFS file system field
to read-only.
- 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.
- Set the Allow execution of SUID and sgid
programs in this file system? field to No.
- Click OK.
- Log out of the remote server.