Configuring the NFS server (Linux)Added by IBM on September 23, 2013 | Version 1 (Original)
|Configure the NFS server side. All other nodes must point to this NFS server.
About this task
The variables below show the information needed to configure the NFS server with examples shown after the equals sign (=).
NFS (S)erver (H)ost:<SH>= 220.127.116.11
NFS (S)erver (M)ount (P)ath: <SMP>= /opt/data
NFS (C)lient (H)ost for (L)inux:<CH4L>= 18.104.22.168
NFS (C)lient (M)ount (P)ath for (L)inux: <CMP4L>= /opt/shared_data
NFS (C)lient (H)ost for (W)indows: <CH4W>= 22.214.171.124
NFS (C)lient (M)ount (P)ath for (W)indows: <CMP4W>= z:
The SH, CH4L, and CH4W can be either the host name or IP address. It is best to use the host name. The following procedure is based on these assumptions:
- docs_nfs is the userid under which your WebSphere® Application Server deployment on the IBM® Docs server is running. If deploying multiple IBM Docs servers, each WebSphere Application Server deployment must use the same user ID.
- 5050 is the UID for this user. This also must be the same if deploying multiple IBM Docs servers.
- For example if your WebSphere Application Server is running under root on theIBM Docs server, then the UID must be 0 (root). If it is using some other user ID, you must find the matching UID for that user.
Log in to the NFS server, and run the following commands. This example assumes the NFS server is being deployed on anIBM
Docs server node (RHEL 5.4+ Linux
™). If your NFS server is being hosted elsewhere, you must adapt this procedure.
Parent topic: Configuring a shared data folder
Configuring the NFS Client (Windows, Linux)
Configuring the shared data folder as a non-root user
Configuring the CIFS Client for File Viewer (Windows)
- adduser -u 5050 docs_nfs
- mkdir -p <SMP>
- chown docs_nfs <SMP>
- chmod 755 <SMP>
- echo "<SMP> <CH4L>(insecure,rw,async,no_root_squash) <CH4W>(insecure,rw,async,no_root_squash)" /etc/exports
Note: If you need more NFS clients to access the NFS server, add more items, such as <CH4W>(insecure,rw,async,no_root_squash)
- /sbin/service portmap start
Note: On some Linux versions, portmap is replaced by rpcbind. Run /sbin/service rpcbind start instead.
- /sbin/service nfslock start
- /sbin/service nfs start
- Verify the exported mount points by /usr/sbin/showmount -e localhost.
For File Viewer, repeat steps 2 through 5 with a separate share for File Viewer. Ensure that the viewer share is not a subdirectory of the IBM
Docs mount points, for example:
NFS (S)erver (M)ount (P)ath: <SMP>= /opt/viewer_data
NFS (C)lient (M)ount (P)ath for (L)inux: <CMP4L>= /opt/viewer_shared_data
NFS (C)lient (M)ount (P)ath for (W)indows: <CMP4W>= v: