Configuring the NFS Client (Windows, Linux)Added by IBM on September 24, 2013 | Version 1 (Original)
|Usually, the Document Format Conversion server and IBM® File Viewer host the NFS client side, so you must configure these steps on the nodes that run the Conversion and File Viewer applications.
About this task
Configure the NFS client on each node that must access the shared folders that are hosted on the NFS server. The following variables show the example information for configuring the NFS client.
NFS (S)erver (H)ost:<SH>= 18.104.22.168
NFS (S)erver (M)ount (P)ath: <SMP>= /opt/data
NFS (C)lient (H)ost for (L)inux:<CH4L>= 22.214.171.124
NFS (C)lient (M)ount (P)ath for (L)inux: <CMP4L>= /opt/shared_data
NFS (C)lient (H)ost for (W)indows: <CH4W>= 126.96.36.199
NFS (C)lient (M)ount (P)ath for (W)indows: <CMP4W>= z:
The assumptions for this procedure are as follows:
- docs_nfs is the user ID under which your WebSphere Application Server deployment on the File Viewer server is running.
- 5050 is the UID for this user.
- On Linux™, this user must match the user and user ID used on the WebSphere Application Server deployment on theFile Viewer server.
- On Windows™, the user ID and group ID of this user must match when you set the Windows registry AnonymousUID and AnonymousGID values.
Parent topic: Configuring a shared data folder
Configuring the NFS server (Linux)
Configuring the shared data folder as a non-root user
Configuring the CIFS Client for File Viewer (Windows)
- On Windows, complete the following steps:
- Start the command console as the administrator (Click Start -> All Programs -> Accessories. Right-click the Command Prompt, and select Run as administrator).
- Run the following command to install FS-NFS-Services: servermanagercmd.exe -install FS-NFS-Services.
Note: Ignore the warning that the servermanagercmd.exe command is deprecated. It still works on the required level of Windows operating system (Windows 2008 Server R2 Enterprise version).
- Run nfsadmin client stop.
- Run Add and Set HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default\AnonymousUID=5050, as DWord (32-bit) Decimal.
- Run Add and Set HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default\AnonymousGID=5050, as DWord (32-bit) Decimal.
- Run nfsadmin client start.
- Run nfsadmin client localhost config fileaccess=700 SecFlavors=+sys -krb5 -krb5i.
- On Linux, run the following commands:
- adduser -u 5050 docs_nfs
- mkdir -p <CMP4L>
- chown docs_nfs <CMP4L>
- chgrp docs_nfs <CMP4L>
- chmod 755 <CMP4L>
- service portmap start
Note: On some Linux versions, run service rpcbind start.
- service nfslock start
- umount -f <CMP4L>
- mount -t nfs -o sec=sys,bg,soft,retry=1,timeo=60,actimeo=0,nfsvers=3 <SH>:<SMP> <CMP4L>
Note: If the server is rebooted, the mount points for Linux are not mounted automatically. The mount points must be added to your fstab or equivalent, or be remounted when the server is rebooted.