LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-27-2005, 08:40 AM   #1
mpqcman
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
nfs mount using nfsv3 with HPUX fails


I'm having a peculiar problem with nfs on linux. I am trying to mount and use an nfs-shared directory, shared from an HPUX machine, mounting it on a linux box. I can mount it in all instances, but I can only "ls" the directory if I mount it using nfs version 2 or 1. If I mount it using nfs version 3, I get an Input/Output error if I try to list the directory ("ls"):

mount -o soft,intr hphost:/directory /mnt/cdrom
ls
<long wait, 30 secs.>
ls: reading directory /mnt/cdrom: Input/output error

If I use nfs version 1 or 2, all is well:
mount -o soft,intr,nfsvers=2 hphost:/directory /mnt/cdrom
ls
whatever files
are there


"soft,intr" are just there so I can bail out of a broken command. Otherwise, I wait forever, and have to reboot the machine to get rid of the shell session.
 
Old 10-27-2005, 08:57 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
From "man nfs" on my Debian:

"nfsvers=n
Use an alternate RPC version number to con_tact the NFS daemon on the remote host. This option is useful for hosts that can run multiple NFS servers. The default value is version 2."

Haven't tried it but seems if you add "nfsver=3" to your options it might help.
 
Old 10-27-2005, 09:32 AM   #3
mpqcman
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0
I guess I wasn't clear enough. Default is nfsvers=3, but that is the version that chokes. if I use:
mount -o soft,intr,nfsver=3..., it fails, and that is default. Other boxes with similar loads (same set of CD's, e.g.) take nfsvers=3 just fine. This ONE install won't, and I don't understand what I am doing wrong with the install to hose nfs.
 
Old 10-27-2005, 09:39 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
My bad - missed the nfsver in your options.

Since you say it works on systems that are apparently the same build it suggests to me slightly different libraries or binaries. You might want to cksum the mount command on this server and another server where it works to see if they are in fact the same.
 
Old 10-27-2005, 10:40 AM   #5
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
This is probably a server side problem, I'd guess that your setup of HPUX doesnt support V3 NFS. On a linux nfs server the command "rpcinfo -p | grep nfs" would list the versions supported, this command also works on AIX, I dont have access to HPUX to test.

For a server that supports V2 and V3 the output should look something like this...

Code:
# rpcinfo -p | grep nfs
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
HTH

Mad.
 
Old 10-27-2005, 11:14 AM   #6
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
FYI: HP-UX 10.20 does NOT support version 3 but 11i DOES.

However he is saying that the export from HP to other servers using NFS 3 is working so I assumed he was on an 11 version.

There was actually a patch once for 10.20 that added NFS Version 3 to it that caused me some real issues when I installed it because /net would hang and I had a binary that had /net in the library path and even though it was set to use SHLIB_PATH for shared libraries it would first try to hit /net so therefore hang. Our fix then was to back out the patch.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
rhel4 2.6.9-5.0.5.ELsmp nfs mount fails, server is down timvand Linux - Enterprise 1 04-24-2005 07:24 PM
Encrypted Reiserfs Fails to Mount -- Reiserfsck Fails as Well antic Linux - Hardware 0 07-30-2004 04:32 PM
NFS client on LFS4.1: "NFSv3 not supported" SparceMatrix Linux From Scratch 4 06-17-2003 05:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration