分类:
2009-12-16 15:58:38
RedHat : 192.168.8.202
AIX: 192.168.8.193
在RedHat服务器上设置NFS服务:
1、RedHat服务器端的设定NFS都是在/etc/exports这个文件中进行设定的,设定格式如下:
[root@redhat /]# vi /etc/exports
[root@redhat backup]# vi /etc/exports
/backup 192.168.8.193(rw,sync,no_root_squash,insecure,no_wdelay,anonuid=501,anongid=503)
启动NFS服务:
[root@redhat backup]# service nfs restart
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: [ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [ OK ]
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
[root@redhat backup]# showmount -e localhost
Export list for localhost:
/backup 192.168.8.194,192.168.8.193
2、在AIX服务器上showmount一下:
bash-3.00# showmount -e 192.168.8.202
export list for 192.168.8.202:
/backup 192.168.8.193
查看nfs_use_reserved_ports的参数值,一般默认是0
bash-3.00#nfso –a |grep use_reserved_ports
如果是0 ,则将nfs_use_reserved_ports参数值设置为1
bash-3.00#nfso –p -o nfs_use_reserved_ports=1
编辑/etc/filesystems:
在/etc/filesystems 添加如下内容
/backup:
dev = /backup
vfs = nfs
nodename = 192.168.8.202
mount = true
options = rw,bg,soft,nointr,rsize=32768,wsize=32768,proto=tcp,vers=3,timeo=600
account = false
在AIX服务器上mount上