aix nfs服务相关

1:修改AIX的/etc/hosts文件,添加

192.1.1.203 rac1

2:修改或者添加/etc/exports文件,如下内容:
/u01 -sec=sys:krb5p:krb5i:krb5:dh:none,-rw,root=rac1,access=rac1

3:重启NFS服务:
#/usr/sbin/mknfs '-N'
0513-029 The portmap Subsystem is already active.
Multiple instances are not supported.
Starting NFS services:
0513-029 The biod Subsystem is already active.
Multiple instances are not supported.
0513-059 The nfsd Subsystem has been started. Subsystem PID is 577600.
0513-059 The rpc.mountd Subsystem has been started. Subsystem PID is 856250.
0513-029 The rpc.statd Subsystem is already active.
Multiple instances are not supported.
0513-029 The rpc.lockd Subsystem is already active.
Multiple instances are not supported.
Completed NFS services.
4:export all:
#exportfs -a

5:客户端修改/etc/hosts文件:
182.1.21.176 djfk

6:mount nfs:
mount djfk:/u01 /mnt


停止nfs
先停止nfs和portmap两个进程
# stopsrc -g nfs
# stopsrc -s portmap

启动NFS并测试
# startsrc -s portmap
# startsrc -g nfs

# showmount -e localhost
showmount -e 192.168.3.162

你可能感兴趣的:(AIX)