Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23rd October 2005, 05:26 PM
Wishartz Offline
Registered User
 
Join Date: Nov 2004
Posts: 85
NFS problem driving me insane

I have an extreme problem with NFS which is driving me insane.

Please help

I have checked on google numerous times and cannot find out the solutions to the problem.

I have one machine using FC3 and the other using FC4 64 bit version. Sometimes NFS works sometimes it doesnt. The only problem is I cannot see the pattern, what is the cause of the fix.

When I boot my machines up, I can see the share but it only dipslays one direcotry deep in the share.

For example /home/admin but does not show me the contents of admin.

I am as close as I can be at knowing this is a one hundered percent right config as how could it work sometimes and sometimes not. Note: it never works when I first boot up the machines, I usually have to try to unmount and then mount and all sorts of craziness.

Has anybody come acorss this problem before. It is seeing the share, by using mount -l on the clinet machine I can see that it has mounted, but only gives me /admin/home.....where is the contents.

Please help me.

I am using the instructions as per http://brennan.id.au and I know they work because I have copied across files at some point. It's just what am i doing to make it work? Is this a bug with nfs?
Reply With Quote
  #2  
Old 23rd October 2005, 05:34 PM
urzasrage's Avatar
urzasrage Offline
Registered User
 
Join Date: Aug 2005
Location: California
Posts: 188
What is the exact command your use to mount the NFS share?
__________________
"I have not failed 700 times. I have not failed once. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work."
- Edison

It's Gnu/Linux not Linux.

Reply With Quote
  #3  
Old 23rd October 2005, 05:47 PM
amessina's Avatar
amessina Offline
Registered User
 
Join Date: Apr 2005
Location: Chicago, IL, US
Age: 35
Posts: 100
are you using nfsv3 or nfsv4? what are the contents of the /etc/exports file on the server? are you using selinux? are you unsing a firewall at all between server/client? are you using automount?

knowing these things will help us figure out where the trouble is.

i can also help you in my own support forum at http://messinet.com
__________________
Visit my website: http://messinet.com
Visit my online gallery: http://messinet.com/modules.php?name...op=visit&lid=3

Registered Linux User #389089
Get counted!: http://counter.li.org
Reply With Quote
  #4  
Old 23rd October 2005, 06:07 PM
Wishartz Offline
Registered User
 
Join Date: Nov 2004
Posts: 85
I'm using nfs4

selinux is disabled from installation

exports is as follows:


/NFS4exports 82.152.102.80/28(rw,insecure,sync,wdelay,no_subtree_check,no_roo t_squash,fsid=0)
/NFS4exports/home 82.152.102.80/28(rw,insecure,nohide,sync,wdelay,no_subtree_check ,no_root_squash)
/NFS4exports/usr 82.152.102.80/28(rw,insecure,nohide,sync,wdelay,no_subtree_check ,no_root_squash)

Yea Im using a cisco router which is a firewall as well. It doesnt indicate a problem in the access control list because soetimes it works, not from when the computer boots up , but when I stop the service and restart and do whatever it that I do that makes it work. I cannot pin down what im doing that makes it work. ASt the moment everything i do doesnt make it work. Doesnt display furhter the /home/admin but no contents
Reply With Quote
  #5  
Old 23rd October 2005, 06:28 PM
amessina's Avatar
amessina Offline
Registered User
 
Join Date: Apr 2005
Location: Chicago, IL, US
Age: 35
Posts: 100
i wish i could say wonderful things about nfsv4, but i can't. i find specifically that the rpcidmapd (rpc.idmapd) service does not function well as it often maps real user named to the nobody user. i tried working with nfsv4 for about two months to try to get things to work. often, what i found was that a username was mapped to the nobody user, so, specifically in the home directory, the nobody user has no access to the files, so they become inaccessible. i also had the same problem as you: sometimes it worked; sometimes it didn't. are you using kerberos at all? how are you mapping users? are you using /etc/passwd files or are you using ldap for centralized user management? another thing to consider for nfsv4 is that the permissions of the directories you create for the exports (on the server) are very important.

try this tutorial:

http://www.vanemery.com/Linux/NFSv4/...no-rpcsec.html

i found that page helpful, but i was still not able to get reliability with nfsv4. note: nfsv3 worked no problem!
i did find that nfsv4 was subjectively faster, i.e. i noticed a speed difference.

another question: are you only having problems with the /home directories, or are you having similar problems with all of your nfsv4 mounts?

something to try: after you load up and mount the nfsv4 mounts, go to a mounted directory and do:

Code:
ls -al
at the command prompt (thats "ell" "s" "space" "-" "a" "ell" phonetically). if you see that the user/groups are nobody, then your idmapping is not working properly.
__________________
Visit my website: http://messinet.com
Visit my online gallery: http://messinet.com/modules.php?name...op=visit&lid=3

Registered Linux User #389089
Get counted!: http://counter.li.org
Reply With Quote
  #6  
Old 24th October 2005, 06:14 PM
Wishartz Offline
Registered User
 
Join Date: Nov 2004
Posts: 85
I am exporting two directories:

/home
/usr

With both directories, when I try to list the contents there is nothing contained in there, so I asume to be having problem with both shares.

If I do ls -la

I get the following

ls -la home
total 8
drwxr-xr-x 2 nfsnobody nfsnobody 4096 Sep 14 20:43 .
drwxr-xr-x 4 nfsnobody nfsnobody 4096 Sep 20 19:45 ..

If I do the following command grep nfs /etc/passwd

This is the output

rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
nfsnobody:x:4294967294:4294967294:Anonymous NFS User:/var/lib/nfs:/sbin/nologin

This command

vi /etc/idmapd.conf

gives me on both machines, so they are both matching nfsnobody

[General]
Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = example.com

[Mapping]
Nobody-User = nfsnobody
Nobody-Group = nfsnobody

[Translation]
Method = nsswitch

It looks like I might have to change to NFS3 because it looks like a bug. Any ideas?
Reply With Quote
  #7  
Old 24th October 2005, 06:25 PM
Wishartz Offline
Registered User
 
Join Date: Nov 2004
Posts: 85
I think you may have solved it amessina. I followed your link to the howto and there was a section that told me to change the permissions

chmod 1777 /home

I did that to the rest of the directories and used exportfs -v , export -rv on the server and it seems to work on the client machine.

Thanks a lot mate. I really appreciate the help.
Reply With Quote
  #8  
Old 24th October 2005, 06:32 PM
Wishartz Offline
Registered User
 
Join Date: Nov 2004
Posts: 85
I spoke to soon the problem is back.
Reply With Quote
  #9  
Old 24th October 2005, 10:33 PM
amessina's Avatar
amessina Offline
Registered User
 
Join Date: Apr 2005
Location: Chicago, IL, US
Age: 35
Posts: 100
you see, it will work sometimes and not others. i have a feeling that the problem is with the rpcidmapd daemon which is unreliably mapping names to user ids. when you get the real name, it wrks. when you get the nfsnobody name it doesn't. the results of the mapping should be in syslog. after you reboot, try (as a regular user) to load one of these directories and the do a :

tail /var/log/messages -n 30

that should be enough to contain the most recent name to id mappings. if you see that any user maps to the nfsnobody uid (may be the number), then you know it did not work that time.

believe me, i googled this to death and looked for answers. i found none at this point. nfsv4 is still considered "experimental" so it is changing frequently.

you can take a gander at another page i found helpful:

http://www.citi.umich.edu/projects/nfsv4/

this my give you some more insight or a place to post your bugs.

keep a note to let me know if you ever get it working reliably. i'm dying to know myself. good luck.
__________________
Visit my website: http://messinet.com
Visit my online gallery: http://messinet.com/modules.php?name...op=visit&lid=3

Registered Linux User #389089
Get counted!: http://counter.li.org
Reply With Quote
Reply

Tags
driving, insane, nfs, problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
io.h > DRIVING ME INSANE! zacharysturgeon Using Fedora 10 5th November 2009 09:22 PM
SSH driving me insane! Vector Servers & Networking 33 25th August 2009 11:07 AM
ebay slow down is driving me insane! Dr.Diesel Using Fedora 3 2nd January 2006 11:06 PM
Gnome Theme Manager is driving me insane Bloodbat Using Fedora 3 29th December 2004 06:56 PM
Nautilus CD/DVD Creator is driving me insane!! DRLski Using Fedora 1 19th November 2004 11:44 PM


Current GMT-time: 12:24 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat