LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-22-2014, 10:01 AM   #1
stuart23
LQ Newbie
 
Registered: May 2012
Location: Melbourne, Australia
Distribution: CentOS 6.2, Fedora Lovelock
Posts: 9

Rep: Reputation: Disabled
Question 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
 
Old 04-22-2014, 03:24 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,890

Rep: Reputation: 163Reputation: 163
On the client, do you set NEED_IDMAPD=yes in /etc/default/nfs-common?
 
Old 04-22-2014, 10:23 PM   #3
stuart23
LQ Newbie
 
Registered: May 2012
Location: Melbourne, Australia
Distribution: CentOS 6.2, Fedora Lovelock
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nini09 View Post
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
 
Old 04-23-2014, 03:31 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,890

Rep: Reputation: 163Reputation: 163
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.
 
  


Reply

Tags
centos, nfs, nfsv4


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] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 11:22 AM
NFS question spivy66 Linux - Networking 1 10-15-2007 04:47 PM
NFS question mokku Linux - Networking 3 08-16-2007 01:39 PM
nfs question phonecian Linux - Security 3 10-02-2005 10:34 PM
nfs question jaysan Linux - Networking 1 05-04-2001 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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