Solved: nfsmnthelp: 1831-019 host2: System call error number -1.

Recently i have faced an interesting issue when i was trying to mount a NFS partition.

The NFS partition was failed to mount with some strange error message “System call error number -1”.

Lets see exact error message.

Issue Details
We are getting below issue while mounting the partition.

ngelinux1:/ >mount ngelinux2:/home/oracle /home/oracle
nfsmnthelp: 1831-019 ngelinux2: System call error number -1.
mount: 1831-008 giving up on:
ngelinux2:/home/oracle
System call error number -1.

Solution
The solution is pretty strange.

Here the NFS server was not able to resolve to correct hostname against IP address i.e. reverse lookup was not working correctly.

The solution is to add the IP address of the NFS client in /etc/hosts file on NFS server.

a. Get IP address and login to NFS server

ngelinux1:/ >ping ngelinux2
PING ngelinux2.blah.blah.com: (ngelinux2IP): 56 data bytes
64 bytes from ngelinux2IP: icmp_seq=0 ttl=255 time=0 ms
----ngelinux2.blah.blah.com PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms

ngelinux1:/ >showmount -e ngelinux2
export list for ngelinux2:
/home/oracle (everyone)


ngelinux1:/ >rlogin ngelinux2
*******************************************************************************
*                                                                             *
*                                                                             *
*  Welcome to AIX Version 5.3!                                                *
*                                                                             *
*                                                                             *
*  Please see the README file in /home/lpp/bos for information pertinent to    *
*  this release of the AIX Operating System.                                  *
*                                                                             *
*                                                                             *
*******************************************************************************
...
ngelinux2:/ # lssrc -g nfs
Subsystem         Group            PID          Status
 biod             nfs              942184       active
 nfsd             nfs              544778       active
 rpc.mountd       nfs              1159398      active
 rpc.statd        nfs              659486       active
 rpc.lockd        nfs              1572982      active
 nfsrgyd          nfs                           inoperative
 gssd             nfs                           inoperative

ngelinux2:/ # ls -l /home | grep oracle
drwxrwxrwx   18 root     system         4096 05 Mar 12:47 oracle

 

b. Make entry in hosts file and check it.

ngelinux2:/ # grep ngelinux1 /etc/hosts
ngelinux1IP     ngelinux1.blah.blah.com ngelinux1

 

c. Run share command again.

ngelinux2:/ # share
/home/oracle -vers=2:3:4,sec=sys:krb5p:krb5i:krb5:dh,rw

 

d. Try to ping NFS client again.

ngelinux2:/ >ping ngelinux1
PING ngelinux1.blah.blah.com: (ngelinux2IP): 56 data bytes
64 bytes from ngelinux2IP: icmp_seq=0 ttl=255 time=0 ms
----ngelinux2.blah.blah.com PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms

ngelinux2:/ # exit

 

e. Now try to mount the partition.

ngelinux1:/ >mount ngelinux2:/home/oracle /home/oracle
ngelinux1:/ >

Now the partition is mounted on server and issue is resolved.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments