标签:aix
1、创建/etc/exports文件
[root@db1 ~]# vi /etc/exports /u02/share -sec=sys:krb5p:krb5i:krb5:dh,rw,root=192.168.1.10
/u02/share:共享目录
-sec:是指数据加密方法
root=:设置192.168.1.10主机对/u02/share有读写权限;如果root后面指定的是主机名,则必须将主机名称和IP写入/etc/hosts文件,否则无法解析(通过DNS解析可以忽略)。
2、更新/etc/xtab文件
[root@db1 ~]# exportfs -a [root@db1 ~]# more /etc/xtab /u02/share -sec=sys:krb5p:krb5i:krb5:dh,rw,root=192.168.1.10
3、启动nfs相关服务
[root@db1 ~]# startsrc -g nfs 0513-059 The biod Subsystem has been started. Subsystem PID is 9371710. 0513-059 The nfsd Subsystem has been started. Subsystem PID is 11403630. 0513-059 The rpc.mountd Subsystem has been started. Subsystem PID is 6291686. 0513-059 The nfsrgyd Subsystem has been started. Subsystem PID is 8913388. 0513-059 The gssd Subsystem has been started. Subsystem PID is 11141424. 0513-059 The rpc.lockd Subsystem has been started. Subsystem PID is 11141426. 0513-059 The rpc.statd Subsystem has been started. Subsystem PID is 4915606. [root@db1 ~]# startsrc -g portmap 0513-059 The portmap Subsystem has been started. Subsystem PID is 3670366. [root@db1 ~]# showmount -e localhost export list for localhost: /u02/share (everyone)
4、客户端挂载
[root@hisdb ~]# showmount -e db1 Export list for db1: /u02/share (everyone) //如果客户端是linux系统,则会出现下面错误,AIX客户端直接挂载即可。 [root@hisdb ~]# mount db1:/u02/share /mnt mount.nfs: Remote I/O error 解决办法如下,加vers参数并指定为3即可。 [root@hisdb ~]# mount -o vers=3 db1:/u02/share /mnt
本文出自 “candon123” 博客,谢绝转载!
Configure NFS Server On AIX 6.1
标签:aix
原文地址:http://candon123.blog.51cto.com/704299/1835105