Configuring the NFS server (Linux)Added by IBM on September 24, 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>= 126.96.36.199
NFS (S)erver (M)ount (P)ath: <SMP>= /opt/data
NFS (C)lient (H)ost for (L)inux:<CH4L>= 188.8.131.52
NFS (C)lient (M)ount (P)ath for (L)inux: <CMP4L>= /opt/shared_data
NFS (C)lient (H)ost for (W)indows: <CH4W>= 184.108.40.206
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® File Viewer server is running. If deploying multiple File Viewer 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 File Viewer servers.
- For example if your WebSphere Application Server is running under root on theFile Viewer 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 anFile Viewer 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.