NFS problem between Centos6 and HPUX 11.31

Issues related to applications and software problems
Post Reply
hsnel
Posts: 3
Joined: 2011/08/17 18:25:59
Location: Netherlands

NFS problem between Centos6 and HPUX 11.31

Post by hsnel » 2011/08/17 19:00:01

Hi,

I am trying to setup a NFS share in Centos6 (32 bits) from an HP-UX machine via TCPv4.

The problem is that the HPUX server fails to respond. The client (CentOs 6) tries to talk to the rpc.mountd via NFSv3 but timed out after 60 secs or so.

Both machines are located on the same network segment. The firewall is not causing the problem because I can access all the required TCP ports.
Mountng the NFS share in Centos5 from the HPUX server (again both located on the same network) works fine.

iptables, selinux and tcpwrappers are disabled on the client. NFS between CentOS5 and the CentOS6 works also fine.

Does anybody seen this sort of behavior? and if so, how was it resolved?

Regards,

Henk.

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

NFS problem between Centos6 and HPUX 11.31

Post by toracat » 2011/08/17 19:11:44

Do you see any hint/sign on the HPUX server that your CentOS-6 client attempted to access? Also, try mounting with the -v option to see what is happening. Maybe compare the output with the one from a successful mount on the CentOS-5 box?

hsnel
Posts: 3
Joined: 2011/08/17 18:25:59
Location: Netherlands

Re: NFS problem between Centos6 and HPUX 11.31

Post by hsnel » 2011/08/22 10:04:16

Unfortunately I do not see any clues on the HPUX machine.

Here is an example from the CentOs 6 client:

root@rhl-pipo-0 ~]# mount -t nfs -v aap.noot.nl:/usr/data/usm_nfs /usr/data/usm_nfs
mount.nfs: timeout set for Mon Aug 22 11:55:44 2011
mount.nfs: trying text-based options 'vers=4,addr=10.91.1.97,clientaddr=10.95.120.36'
mount.nfs: mount(2): Protocol not supported
mount.nfs: trying text-based options 'addr=10.91.1.97'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 10.91.1.97 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 10.91.1.97 prog 100005 vers 3 prot UDP port 49307


Here is an example of mounting the NFS share which succeeded from a CentOs5 client

[root@rhl-hofmaa-0 ~]# mount -v /usr/data/usm_nfs
mount: trying 10.91.1.97 prog 100003 vers 3 prot tcp port 2049
mount: trying 10.91.1.97 prog 100005 vers 3 prot tcp port 50229
[root@rhl-hofmaa-0 ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
/dev/sdb1 on /home type ext3 (rw,usrquota,acl)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
//fileserver/snelh$ on /media/H type cifs (rw,mand)
/media/H/CentOS-6.0-i386-bin-DVD.iso on /mnt/dvd type iso9660 (rw,loop=/dev/loop0)
nfsd on /proc/fs/nfsd type nfsd (rw)
aap.noot..nl:/usr/data/usm_nfs on /usr/data/usm_nfs type nfs (rw,bg,tcp,soft,intr,addr=10.91.1.97)



Any suggestions are welcome.

Regards,
henk

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: NFS problem between Centos6 and HPUX 11.31

Post by TrevorH » 2011/08/22 10:10:31

The one that works connects on a TCP port, the one that fails attempts to connect over UDP. Does the firewall allow this? Can you add -o tcp to the mount to override the selection of UDP?

hsnel
Posts: 3
Joined: 2011/08/17 18:25:59
Location: Netherlands

Re: NFS problem between Centos6 and HPUX 11.31

Post by hsnel » 2011/08/22 10:27:39

Unfortunately, mounting the share over TCP does not work either:

[root@rhl-pipo-0 ~]# mount -t nfs -v -otcp,mountvers=3,rw,vers=3 aap.noot.nl:/usr/data/usm_nfs /usr/data/usm_nfs
mount.nfs: timeout set for Mon Aug 22 12:20:27 2011
mount.nfs: trying text-based options 'tcp,mountvers=3,vers=3,addr=10.91.1.97'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 10.91.1.97 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=6
mount.nfs: trying 10.91.1.97 prog 100005 vers 3 prot TCP port 50229



For clarity, I have disabled the firewall.


Regards,
henk

Post Reply