`
itspace
  • 浏览: 959105 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

AIX 挂载NFS错误nfsmnthelp: 1831-019之解决

阅读更多
介绍解决方法之前,先简单说明系统环境,共涉及到4台主机。为了保护客户隐私,ip地址做了修改。NFS服务端主机名为dqsbbak,操作系统版本为6100-01。hosts文件主要条目为
引用
127.0.0.1               loopback localhost     
10.90.150.78   dqsbbak

客户端共有三台主机。
客户端一主机名为dqora,操作系统版本为5300-04,hosts文件主要条目为
引用
127.0.0.1               loopback localhost      # loopback (lo0) name/address

#dqora
100.10.10.1     dqora_boot1     dqora
100.10.20.1     dqora_boot2     dqora
10.90.144.6     dqora_svc    dqora
10.90.144.7     dqora_pre

#dqapp
100.12.10.2     dqapp_boot1     dqapp
100.12.20.2     dqapp_boot2     dqapp
10.90.144.8     dqapp_svc    dqapp
10.90.144.9     dqapp_pre
192.168.0.100   dqora
10.90.144.13    backup


客户端二主机名为dqapp,操作系统版本为5300-05。
其hosts文件主要条目为
引用
127.0.0.1               loopback localhost      # loopback (lo0) name/address

#dqora
100.10.10.1     dqora_boot1     dqora
100.10.20.1     dqora_boot2     dqora
10.90.144.6     dqora_svc    dqora
10.90.144.7     dqora_pre

#dqapp
100.10.10.2     dqapp_boot1     dqapp
100.10.20.2     dqapp_boot2     dqapp
10.90.144.8     dqapp_svc    dqapp
10.90.144.9     dqapp_pre
192.168.0.101   dqapp
10.90.144.13    backup


客户端三主机名为dqjynew,操作系统版本为6100-01。其hosts主要条目为
引用
127.0.0.1               loopback localhost     
10.90.144.15   dqjynew

其中主机dqora和dqapp做了HA互备,10.90.144.6和10.90.144.8分别为dqora和dqapp的服务ip。
一、服务端操作。
1、检查服务端nfs进程。
引用
# lssrc -g nfs
Subsystem         Group            PID          Status
biod             nfs              172190       active
rpc.statd        nfs              119182       active
rpc.lockd        nfs              147652       active
nfsd             nfs                           inoperative
rpc.mountd       nfs                           inoperative
nfsrgyd          nfs                           inoperative
gssd             nfs                           inoperative

2、启动服务端nfs进程。
引用
# startsrc -g nfs
0513-029 The biod Subsystem is already active.
Multiple instances are not supported.
0513-059 The nfsd Subsystem has been started. Subsystem PID is 528854.
0513-059 The rpc.mountd Subsystem has been started. Subsystem PID is 671898.
0513-059 The nfsrgyd Subsystem has been started. Subsystem PID is 659720.
0513-059 The gssd Subsystem has been started. Subsystem PID is 647348.
0513-029 The rpc.lockd Subsystem is already active.
Multiple instances are not supported.
0513-029 The rpc.statd Subsystem is already active.
Multiple instances are not supported.
# lssrc -g nfs
Subsystem         Group            PID          Status
biod             nfs              172190       active
rpc.statd        nfs              119182       active
rpc.lockd        nfs              147652       active
nfsd             nfs              528854       active
rpc.mountd       nfs              671898       active
nfsrgyd          nfs                           inoperative
gssd             nfs                           inoperative

3、配置hosts文件,添加以下ip地址
引用
10.90.144.6       dqora
10.90.144.8       dqapp
10.90.144.15      dqjynew


4、配置exports文件
引用
# cat /etc/exports
/Tbackup/dqsb -rw,access=dqora:dqapp
/Tbackup/dqjy -rw,access=dqjynew


二、客户端操作。
1、在dqora,dqapp建立文件夹/Tbackup/dqsb,在dqjynew建立文件/Tbackup/dqjy
2、每个客户端检查进程portmap是否启动正常
引用
# lssrc -s portmap
Subsystem         Group            PID          Status
portmap          portmap          352434       active

3、在客户端配置文件/etc/hists文件添加如下条目
引用
10.90.150.78   dqsbbak

4、在客户端dqora,dqora配置文件/etc/filesystems中添加如下条目
引用
/Tbackup/dqsb:
     dev= "/Tbackup/dqsb"
     vfs= nfs
     nodename= dqsbbak
     mount= true
     type= nfs
     options= rw,bg,hard,intr,vers=3,rsize=32768,wsize=32768,timeo=600,proto=tcp,biods=32
     account= false

在客户端dqjynew配置文件/etc/filesystems中添加如下条目
引用
/Tbackup/dqjy:
     dev= "/Tbackup/dqjy"
     vfs= nfs
     nodename= dqsbbak
     mount= true
     type= nfs
     options= rw,bg,hard,intr,vers=3,rsize=32768,wsize=32768,timeo=600,proto=tcp,biods=32
     account= false

5、在dqjynew主机上挂载nfs文件系统,文件系统成功挂载
引用
dqjynew:/# mount /Tbackup/dqjy

在dqora,dqapp主机上挂载nfs文件系统,文件系统挂载错误
引用
dqora:/# mount /Tbackup/dqsb
nfsmnthelp: 1831-019 dqsbbak: System call error number -1.

mount: 1831-008 giving up on:
dqsbbak:/Tbackup/dqsb
System call error number -1.

经查官方文档有如下解释,红色字体部分明确说明服务端和客户端需要在hosts文件一一对应。由上面的操作步骤中,可以看出,服务端和客户端已经做了明确对应。
This is usually caused by the reverse lookup problem, which means NAS Gateway 500 can not resolve AIX client’s IP address to host name.

There are several ways for the NAS Gateway 500 to make the IP address to host name resolution. The most widely used methods in the TCP/IP world are DNS system and local file mapping.[color=red] For availability reasons, we highly recommend that you use local file mapping, that is, store host to IP address mapping in the /etc/hosts file on NAS Gateway 500.
We just do not want a DNS server outage to bring down the storage system.

Next we explain how to manage the local mapping on NAS Gateway 500.

First of all, you need to build an interactive session to the NAS Gateway 500, either through terminal or through telnet.

   1. Login as root user. Run the command smitty hostent.
   2. You will get the smitty Hosts table (/etc/hosts) screen.
   3. You can add, remove, and modify local IP addresses to host name mapping entries here. You select the Add a host task and provide the next host information.The other functions of this menu are also very straightforward



After adding all mappings for your storage client, SMITTY will process your input. Following that you can check your NFS exports using SMITTY to verify, and then try the NFS mount again; the problem should be solved.

Check the syntax on the mount command
Try to use SMIT menus while mounting a NFS share on AIX instead of long and complex command line entries, this can help you avoid a lot of errors.


Important: Always remember that only root can issue any mount command, and system group members can issue mounts, provided they have write access to the mount point.
[/color]
分析造成以上错误的原因:
1、服务端dqsbbak版本为6100,出现错误的客户端版本为5300。而客户端6100挂载nfs则完全正常。莫非是版本不兼容造成?但据以往实施经验,nfs可以在unix,linux平台上自由挂载,没理由在AIX 5L和6L中不能互相挂载。
2、由于客户端dqora,dqapp做了HA互备,莫非是HA影响了NFS挂载?为了印证上述猜想。修改服务端hosts文件,添加如下条目:
引用
10.90.144.7     dqora_pre
10.90.144.9     dqapp_pre

修改/etc/exports,即将各客户端的服务ip替换为永久ip
引用
/Tbackup/dqjy -rw,access=dqjynew
/Tbackup/dqsb -rw,access=
引用
dqora_pre:dqapp_pre

3、将修改生效
引用
#exportfs -a

4、在客户端再次挂载nfs,挂在成功。
dqora:/# mount /Tbackup/dqsb



0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics