【AIX】AIX_LINUX通过NFS共享目录

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

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值