LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-29-2007, 06:23 PM   #1
GregSims
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Rep: Reputation: 0
NFSv4 Mount Problems on RHEL 5.1


Hi There,

I am working to export a directory on dom0 that can be used by the virtual machines that run on this machine. I would like to use NFSv4 so only one port needs to be open on the firewall (and allows for a SSH client to encrypt the data in the future).

Server side (10.43.11.20) we have:

[root@dom0 ~]# cat /etc/exports
/home/greg/dom0share 10.43.11.1/24(rw,fsid=0,sync,insecure,no_subtree_check)
[root@dom0 ~]# exportfs -rv
exporting 10.43.11.1/24:/home/greg/dom0share
[root@dom0 ~]# exportfs -v
/home/greg/dom0share
10.43.11.1/24(rw,wdelay,insecure,root_squash,no_subtree_check,fsid=0,anonuid=65534,anongid=65534)
[root@dom0 ~]#

Client side (10.43.11.21) we have:

[root@orr01 ~]# mount -t nfs4 10.43.11.20:/home/greg/dom0share /home/greg/dom0share
mount.nfs4: 10.43.11.20:/home/greg/dom0share failed, reason given by server: No such file or directory
[root@orr01 ~]# mount -t nfs 10.43.11.20:/home/greg/dom0share /home/greg/dom0share
[root@orr01 ~]#

It seems that the mount works if we don't use file system type nfs4. When we try to use nfs4, we see this "No such file or directory" error message from the server. This error is very strange as we know the mount works using nfs. By the way, the firewall on both systems are disabled for this test.

Are we seeing a defect in nfs4 or is there a simpler answer to this problem?

Thanks, Greg
 
Old 01-05-2008, 09:42 AM   #2
longfried
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
Hi Greg,
I believe you need at least 2 lines in /etc/exports with NFSv4, one for the "Virtual Base Dir" or what it's called (with fsid=0) and then the actual folder exports beneath that (without the fsid).
 
  


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
mount ntfs partition in RHEL 4 karthik2fun Linux - Distributions 1 12-20-2007 06:07 AM
uable to mount cdrom in rhel-5 jagadeesh.nagireddy Linux - Enterprise 9 12-19-2007 04:36 PM
Login problems with XDMCP from a pre-RHEL-4 client to a RHEL-4 server running KDE cspao Red Hat 0 07-21-2006 07:30 AM
How to make 4 RHEL CDs into ISO and Mount? guest Linux - Newbie 3 03-18-2005 09:35 PM
how to mount usb flash memory on RHEL 3.0 Owen_Townsend Red Hat 2 12-19-2004 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:15 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