Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-22-2014, 10:01 AM
|
#1
|
LQ Newbie
Registered: May 2012
Location: Melbourne, Australia
Distribution: CentOS 6.2, Fedora Lovelock
Posts: 9
Rep:
|
Another nfs nobody question
Sorry guys, I know this question has been asked and answered 1000 times, but I have been trawling through this forum and others and still haven't managed to solve the problem
I have two servers and a bunch of cluster nodes all using nfs to access files. Both of the servers have multiple nfs exports with the options: (rw,no_root_squash,no_subtree_check). The directories are mounting with version 4 on the cluster nodes.
Both servers have similar hostnames; server1.myschool.edu.au and server2.myschool.edu.au. In the idmapd.conf, I have tried with the domain commented out and with it specified as myschool.edu.au
One of the most bizarre things is that mounts from one server display the correct owners and groups, while mounts from the other server all display nobody:nobody. AFAIK, the configurations are the same, but there must be something causing the difference. The servers are not EXACTLY the same (ie. one is forwarding NAT using iptables), but I do not think this is causing the issue.
Both servers are running stock CentOS 6.5. NFS services, NFS mountd, NFS daemon & RPC idmapd are all running on both machines (and have been restarted)
I am at odds on how to proceed from here, this has been bugging me for a while. Most of the posts I have seen point towards idmapd.conf, but I do not think that is the problem.
Any advice would be greatly appreciated! Happy to provide more info if I have missed anything out.
Stu
|
|
|
04-22-2014, 03:24 PM
|
#2
|
Senior Member
Registered: Apr 2009
Posts: 1,890
Rep:
|
On the client, do you set NEED_IDMAPD=yes in /etc/default/nfs-common?
|
|
|
04-22-2014, 10:23 PM
|
#3
|
LQ Newbie
Registered: May 2012
Location: Melbourne, Australia
Distribution: CentOS 6.2, Fedora Lovelock
Posts: 9
Original Poster
Rep:
|
Quote:
Originally Posted by nini09
On the client, do you set NEED_IDMAPD=yes in /etc/default/nfs-common?
|
Hi nini, thanks for your reply. The machines do not have /etc/default/nfs-common. In fact, /etc/default only has useradd and nss. Should I create this file in there?
Initially, I thought the issue must be server-side because the same clients can connect to the other server and show the correct UID/GIDs; therefore I thought the clients were fine.
Thanks,
Stu
|
|
|
04-23-2014, 03:31 PM
|
#4
|
Senior Member
Registered: Apr 2009
Posts: 1,890
Rep:
|
Yes, create the file. Try following things on client.
Edited /etc/idmapd.conf and set domain on server and client to be the same.
Created an /etc/default/nfs-common file and added "NEED_IDMAPD= yes" to that file.
Note: Different server could return different thing.
|
|
|
All times are GMT -5. The time now is 06:38 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|