一、配置NFS Server(在10.0.9.41上操作)
1、可以通过lssrc -g nfs查看NFS Server是否启动:(如图)
NFS Server启动和停止命令:
启动:startsrc -g nfs
停止:stopsrc -g nfs
2、编辑/etc/hosts文件,添加NFS Client机器信息
10.0.9.4 app1
10.0.9.5 app2
ping app1(检查是否能够ping通)
输入命令:smit nfs–>Network File System (NFS) –>Add a Directory to Exports List
配置三个地方其他默认:
查看exports是否配置成功:
二、配置NFS Client(在10.0.9.4和10.0.9.5上操作)
1、编辑/etc/hosts文件,添加NFS Server机器信息:
ping dbfile1(查看是否能够ping通)
设置tcm_bm文件夹的权限为777
3、配置共享关联:
#smit mknfsmnt
这四条信息在/etc/filesystems文件中体现
后面两个的意思是:
both -默认立即mount,并在/etc/filesystems中加文件系统记录
yes -系统启动时,自动mount该文件系统
说明:取消mount关系命令
4、通过ln -s进行文件软链接
cd /usr/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/app1Cell01/tcm_bm_war.ear/tcm_bm.war/
ln -s /tcm_bm 1
Linux下NFS Server配置参考文档:
http://www.troubleshooters.com/linux/nfs.htm