AIX端:
停止NFS相关服务
# stopsrc -g nfs
0513-044 The biod Subsystem was requested to stop.
0513-044 The rpc.statd Subsystem was requested to stop.
0513-044 The rpc.lockd Subsystem was requested to stop.
0513-044 The nfsd Subsystem was requested to stop.
0513-044 The rpc.mountd Subsystem was requested to stop.
# stopsrc -s portmap
0513-044 The portmap Subsystem was requested to stop.
在/etc/hosts文件中添加Linux主机地址及主机名
# vi /etc/hosts
192.168.15.100 dbadb01.badly9.com.cn
编辑/etc/exports文件添加共享目录及客户端地址及权限
# vi /etc/exports
/portal/test_ebs -rw,root=dbadb01.badly9.com.cn,access=dbadb01.badly9.com.cn
# exportfs -a
启动NFS相关服务
# startsrc -s portmap
0513-059 The portmap Subsystem has been started. Subsystem PID is 49283240.
# startsrc -g nfs
0513-059 The biod Subsystem has been started. Subsystem PID is 45220094.
0513-059 The nfsd Subsystem has been started. Subsystem PID is 6226140.
0513-059 The rpc.mountd Subsystem has been started. Subsystem PID is 5636288.
0513-059 The nfsrgyd Subsystem has been started. Subsystem PID is 44892330.
0513-059 The gssd Subsystem has been started. Subsystem PID is 32178302.
0513-059 The rpc.lockd Subsystem has been started. Subsystem PID is 49676476.
0513-059 The rpc.statd Subsystem has been started. Subsystem PID is 43581530.
查看NFS共享目录
# showmount -e localhost
export list for localhost:
/portal/test_ebs dbadb01.badly9.com.cn
Linux主机:
查看AIX主机NFS共享目录
[root@dbadb01 ~]# showmount -e 192.168.20.71
Export list for 192.168.20.71:
/portal/test_ebs dbadb01.badly9.com.cn
/etc/hosts文件添加AIX主机解析
[root@dbadb01 ~]# vi /etc/hosts
192.168.20.71 iportal.badly9.com.cn iportal
启动portmap服务
[root@dbadb01 test_ebs]# service portmap start
Starting portmap: [ OK ]
创建挂载目录
[root@dbadb01 ~]# mkdir /test_ebs
挂载:
[root@dbadb01 test_ebs]# mount -o nolock iportal:/portal/test_ebs /test_ebs
[root@dbadb01 test_ebs]#
至此完全OK
原文地址:http://blog.csdn.net/badly9/article/details/41800123