系统景况

需求:在SUSE11.1 建NFS 
  AIX6.1上挂载NFS

后天在转码业务平台挂载华为布满式存款和储蓄时,出现了挂载败北:

系统景况:

操作系统: RedHat
EL4、AIX 5.3

1.SUSE 11.1上建NFS

linux-82ke:~ # mount -t nfs
192.168.202.60:/mnt/zxdfs/CM_South23/root/cccloud_tenant_id10001155
/mnt/D989/60/mnt/wfs10 -v
mount.nfs: timeout set for Wed Jul 30 15:39:52 2014
mount.nfs: trying text-based options
‘vers=4,addr=192.168.202.60,clientaddr=192.168.199.4’
mount.nfs: mount(2): No such file or directory
mount.nfs: trying text-based options ‘addr=192.168.202.60’
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.202.60 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.202.60 prog 100005 vers 3 prot UDP port
39325
mount.nfs: mount(2): Connection timed out
mount.nfs: trying text-based options
‘vers=4,addr=192.168.202.60,clientaddr=192.168.199.4’
mount.nfs: mount(2): No such file or directory
mount.nfs: trying text-based options ‘addr=192.168.202.60’
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.202.60 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.202.60 prog 100005 vers 3 prot UDP port
32954
mount.nfs: mount(2): Connection timed out
mount.nfs: trying text-based options
‘vers=4,addr=192.168.202.60,clientaddr=192.168.199.4’
mount.nfs: mount(2): No such file or directory
mount.nfs: trying text-based options ‘addr=192.168.202.60’
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.202.60 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.202.60 prog 100005 vers 3 prot UDP port
37809
mount.nfs: mount(2): Connection timed out
mount.nfs: Connection timed out

操作系统:AIX 5300-08

荒唐现象

(1)首先利用安装光盘安装nfs-kernel-server

红米布满式存款和储蓄那边的/etc/exports配置为:
 /data 192.168.199.*(rw,no_root_squash,sync,no_subtree_check)
 
而是奇异的是,假使将/etc/exports修改为:
 /data/test 192.168.199.4(rw,no_root_squash,sync,no_subtree_check)
 
挂载又是成功的。
 最终无意间使用了如下配置后,居然通常了:
 /data 192.168.199.0/24(rw,no_root_squash,sync,no_subtree_check)

在AIX系统下,level 2 为系统运维暗中同意品级(多用户多职分,帮助图形)

Linux 作为NFS Server ,AIX host 作为NFS Client;

(2)配置分享目录,编辑  /etc/exports,加入

————————————–分割线

Ubuntu 12.04安装NFS
server
http://www.linuxidc.com/Linux/2012-09/70728.htm

NFS服务器安装配备实现Ubuntu 12.04与ARM文件分享
http://www.linuxidc.com/Linux/2012-10/73159.htm

Ubuntu搭建nfs服务器
http://www.linuxidc.com/Linux/2012-10/71930.htm

文件服务器NFS配置详解
http://www.linuxidc.com/Linux/2013-06/86542.htm

Ubuntu下搭建NFS网络文件系统服务器
http://www.linuxidc.com/Linux/2013-07/87367.htm

Heartbeat_ldirector+LB+NFS完结HA及LB、文件分享
http://www.linuxidc.com/Linux/2013-06/85292.htm

CentOS
5.5配置NFS服务器教程
http://www.linuxidc.com/Linux/2013-03/81737.htm

Ubuntu 12.10下NFS的装置使用
http://www.linuxidc.com/Linux/2013-03/80478.htm

[root@aix211 /]#who -r

[root@aix211 /]#mount  /backup

/nfs_dir *(rw,sync,no_root_squash,no_all_squash)

————————————–分割线

正文长久更新链接地址:http://www.linuxidc.com/Linux/2014-08/104939.htm

图片 1

.        run-level 2 May 20 11:35      2    0    S

mount: giving up on:

/nfs_dir 是分享目录

[root@aix211 /]#cd /etc/rc.d/rc2.d/

        bksrv:/backup/cuug11/storage21

*表示能够采访的IP范围,这里指装有IP都能访谈

[root@aix211 rc2.d]#ls -l

vmount: Not owner

no_all_squash 保留分享文件的UID和GID(私下认可)

total 24

NFS Server 配置

no_root_squash 代表root用户具备根目录的通通管理访谈权限

lrwxrwxrwx    1 root    system          13 May  8 15:22 K96init.crs
-> /etc/init.crs

[root@rhel152 ~]# cat /etc/hosts

(3)运营rpcbind    nfsserver 五个服务

lrwxrwxrwx    1 root    system          14 Sep 12 2013  K96init.cssd
-> /etc/init.cssd

192.1688.211    aix211

service rpcbind start

-r-xr-x—    1 root    system          363 Aug 30 2013  Kradiusd

[root@rhel152 ~]# cat  /etc/exports

service nfsserver start

lrwxrwxrwx    1 root    system          13 May  8 15:22 S96init.crs
-> /etc/init.crs

Author

发表评论

电子邮件地址不会被公开。 必填项已用*标注