LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 11-10-2009, 04:37 PM   #1
TheEvilHammer
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
Error while trying to mount NFS share: "Invalid argument"


Hi all,

I am trying to mount an NFS (version 3) share exported by a NetApp filer on a Linux client running CentOS 5. The only thing "odd" I'm trying to do is use Kerberos as authentication for the connection.

Here's what happens when I try the mount:

Code:
[root@gen-cs41 ~]# mount -o sec=krb5 -t nfs 10.11.25.52:/vol/vol21_data share/
mount.nfs: Invalid argument
[root@gen-cs41 ~]#
With no real insight from the error message, I tried some standard debugging approaches. A network trace doesn't reveal much at all, there is nothing in /var/log/messages, strace doesn't reveal anything, and the verbose option for mount is quite unhelpful here:

Code:
[root@gen-cs41 ~]# mount -v -o sec=krb5 -t nfs 10.11.25.52:/vol/vol21_data share/
mount: trying 10.11.25.52 prog 100003 vers 3 prot tcp port 2049
mount: trying 10.11.25.52 prog 100005 vers 3 prot udp port 4046
mount.nfs: Invalid argument
[root@gen-cs41 ~]#
I tried updating nfs-utils, nfs-utils-lib, and krb5-libs to the latest versions and that didn't help either. Does anyone have any tips on what could be wrong or how to debug this further?
 
Old 11-12-2009, 01:20 AM   #2
bartonski
Member
 
Registered: Jul 2006
Location: Louisville, KY
Distribution: Fedora 12, Slackware, Debian, Ubuntu Karmic, FreeBSD 7.1
Posts: 443
Blog Entries: 1

Rep: Reputation: 47
Quote:
Originally Posted by TheEvilHammer View Post
Code:
[root@gen-cs41 ~]# mount -o sec=krb5 -t nfs 10.11.25.52:/vol/vol21_data share/
mount.nfs: Invalid argument
[root@gen-cs41 ~]#
With no real insight from the error message, I tried some standard debugging approaches. A network trace doesn't reveal much at all, there is nothing in /var/log/messages, strace doesn't reveal anything, and the verbose option for mount is quite unhelpful here:

Code:
[root@gen-cs41 ~]# mount -v -o sec=krb5 -t nfs 10.11.25.52:/vol/vol21_data share/
mount: trying 10.11.25.52 prog 100003 vers 3 prot tcp port 2049
mount: trying 10.11.25.52 prog 100005 vers 3 prot udp port 4046
mount.nfs: Invalid argument
[root@gen-cs41 ~]#
I tried updating nfs-utils, nfs-utils-lib, and krb5-libs to the latest versions and that didn't help either. Does anyone have any tips on what could be wrong or how to debug this further?
My initial reaction was to have you check the version of nfs, but you just updated this. Do check version of mount.nfs.

I would try leaving off arguments on the command line, and see what changes. Also, just on the assumption that the diagnostic might be bogus, check firewall, directory permissions and make sure that the directory is correctly exported on 10.11.25.52.

What happens when you try mount -s (sloppy mount)?
 
Old 11-12-2009, 01:35 AM   #3
TheEvilHammer
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Original Poster
Rep: Reputation: 0
I ended up giving up on this because it was a waste of my time, but I'll respond to your questions anyway.

Quote:
Originally Posted by bartonski View Post
My initial reaction was to have you check the version of nfs, but you just updated this. Do check version of mount.nfs.
CentOS 5 (the distro I was using on the client) has a very old version of nfs-utils (1.0.9, compared to the current version, 1.2.1), so I thought I might have been hitting this (or something similar to it):

http://cve.mitre.org/cgi-bin/cvename...=CVE-2008-4552

I ended up trying Fedora Core 11 on the client and I got a bit further (no more "Invalid argument" message), but I was still unable to mount the NFS export.

Quote:
Originally Posted by bartonski View Post
I would try leaving off arguments on the command line, and see what changes.
I couldn't do this as Kerberos was the only security flavor supported by the server.

Quote:
Originally Posted by bartonski View Post
Also, just on the assumption that the diagnostic might be bogus, check firewall, directory permissions and make sure that the directory is correctly exported on 10.11.25.52.
It's not a networking/routing issue; it's a Kerberos issue. If I changed the options of the NFS export to use standard Unix authentication, I could mount the share without any problems.

In the end, I just took the advice from the fine folks at the Linux NFS FAQ (http://nfs.sourceforge.net/):

"Because of bugs and missing features, for now support for Linux NFS with Kerberos is appropriate only for early adopters, and not for production use."
 
  


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
[SOLVED] "WARNING: Re-reading the partition table failed with error 22: Invalid argument." ytd Linux - Newbie 6 01-26-2010 10:06 AM
"Invalid argument" error while mounting NFS partition montylee Programming 12 07-23-2009 12:36 PM
error: Error for wireless request "Set Mode" (8B06) : invalid argument "roaming" penguin chick Linux - Wireless Networking 5 08-22-2008 01:16 PM
Sound Blaster Audigy LS Problem - "Mixer attach default error: Invalid argument" corporal79 Linux - Hardware 3 03-27-2007 01:09 AM
Getting a "KDSETKEYCODE: Invalid argument" error. sk545 Ubuntu 1 11-12-2005 05:42 AM


All times are GMT -5. The time now is 04:06 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration