NFS Server Configuration(Linux)Added by IBM on January 6, 2013 | Version 1 (Original)
|Usually, IBM Docs server hosts NFS Server side, so you need configure these steps on the server which run IBM Docs.
About this task
For cluster environment, you might need to configure a NFS Server side, then all other nodes should point to this NFS Server.
Here are some variables (examples are after =)：
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:
Besides, we assume docs_nfs
is your NFS server user, and 5050 is the user id. This user should be the owner of WebSphere Application Server, so you can use the existing user of WAS.
Login NFS server by bash, and execute the commands below:
Parent topic: Configuring a shared data folder
- su adduser -u 5050 docs_nfs
- 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 NFS Server, add more items like: <CH4W>(insecure,rw,async,no_root_squash)
- /sbin/service portmap start
- /sbin/service nfs start
- /sbin/service nfslock start
- Verify the exported mount points by /usr/sbin/showmount -e localhost.