AIX挂载NFS nfsmnthelp: 1831-019 mount: 1831-008

发布时间:2020-05-11 14:16:35 作者:Mr_sheng
来源:网络 阅读:5198

这是一则经典的错误:


[pt1rac1@root]# mount cs3:/sharedirs /sharedir

nfsmnthelp: 1831-019 cs3: System call errornumber -1.

 

mount: 1831-008 giving up on:

cs3:/sharedirs

System call error number -1.


需要在NFS服务器和客户端/etc/hosts添加,各自双方的解析

使用Google可以查到很多信息,并且这些信息都是如出一辙,全部都说是需要在host表中彼此互加主机名,这倒没有错,但是都忽略了一点,那就是这些host项所对应的IP的“性质”。如上所示,我在cs3服务器中添加客户端pt1rac1的host项是pt1rac1服务器的VIP(这是一台rac集群服务器),结果就死活无法挂载,后来把cs3的host表中pt1rac1的IP写成它的真实IP(即配置到网卡中的IP,而不是被“alias”上来的IP),问题就搞定了!!

结论:在AIX上挂载NFS时不能使用虚拟IP!!!!!!!原因不详!


# mount -o nolock,hard,bg,proto=tcp,suid,rsize=32768,wsize=32768,noac 80.12.73.33:/oa /oa

nfsmnthelp: invalid option nolock ignored

mount: 1831-008 giving up on:

80.12.73.33:/oa

vmount: A file or directory in the path name does not exist.

错误原因是本地不存在/oa目录



检查步骤如下:

1.检查两台机子上的NFS进程是否都启动
NFS服务器所需要的守候进程:

  portmap:将远程过程调用程序(RPC)映射为传送层的TCP/IP端口编号.

  rpc.mountd:响应客户端发来的文件系统安装请求.

  nfsd:执行客户机的I/O请求.

NFS客户机所需要的守候进程:

  portmap:将远程过程调用程序(RPC)映射为传送层的TCP/IP端口编号.

  biod:从客户机的高速缓冲区中提前读入或延迟写出数据块.

服务器上,所需的进程均已启动!

2.检查导出列表

#showmount -e

#exportfs -v

能检查出,导出已成功

3.与其它能正常NFS的机子,进行比较,查出原因:必须在客户机和服务器的/etc/hosts文件中,互相添加对方IP与主机名的映射,修改完之后,问题解决

4.在客户机上,使用如下命令导入文件系统

#mount 192.168.54.68:/tmp/test /test




Troubleshooting For AIX NFS:1831-019


When i mount nfs on client,i got following errors,but all of nfs service are ready on server and client:

# mount server:/mksysb /mnt nfsmnthelp: 1831-019 server: System call error number -1.  mount: 1831-008 giving up on: server:/mksysb System call error number -1.

NFS Server Services:

[server@root:/]showmount -e export list for server: /mksysb (everyone) [server@root:/]l***c -g nfs Subsystem         Group            PID          Status   biod             nfs              8519734      active  nfsd             nfs              15859920     active  rpc.mountd       nfs              15269990     active  rpc.lockd        nfs              16842782     active  rpc.statd        nfs              10485826     active  nfsrgyd          nfs                           inoperative  gssd             nfs                           inoperative [server@root:/]l***c -s portmap Subsystem         Group            PID          Status   portmap          portmap          4718748      active

NFS Client Services:

# l***c -g nfs Subsystem         Group            PID          Status   biod             nfs              4980920      active  rpc.statd        nfs              4718750      active  rpc.lockd        nfs              4915372      active  nfsd             nfs                           inoperative  rpc.mountd       nfs                           inoperative  nfsrgyd          nfs                           inoperative  gssd             nfs                           inoperative # l***c -s portmap Subsystem         Group            PID          Status   portmap          portmap          5177512      active

So,why mounted unsuccessful???

I checked the /etc/hosts file on server that couldn't find the client list in /etc/hosts.So,i added the client list to /etc/hosts file on and mounted again then success.

应该在NFS服务器的/etc/hosts下添加nfs客户端的主机名解析


# mount server:/mksysb /mnt # mount |grep nfs server /mksysb          /mnt             nfs3   Jun 15 15:17





推荐阅读:
  1. 安装c, c++编译器 on AIX
  2. AIX中PV,VG,LV及FS常用相关命令

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

aix nfs 经典错误

上一篇:配置java基础环境——安装jdk和tomcat

下一篇:k8s storageclass代码实例展示

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》