Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #1589

Re: NFS Share Not Mounting On Debian Client From Centos NFS Server

From Nrth <nrth@invalid.example>
Newsgroups comp.os.linux.networking
Subject Re: NFS Share Not Mounting On Debian Client From Centos NFS Server
Date 2012-08-15 22:31 +0100
Organization A noiseless patient Spider
Message-ID <b2htf9-ds3.ln1@nrth.org> (permalink)
References <6jvsf9-5n7.ln1@nrth.org> <k0gsjv$144$2@dont-email.me>

Show all headers | View raw


On Wed, 15 Aug 2012 19:17:20 +0000, J G Miller <miller@yoyo.ORG> wrote:

> On Wednesday, August 15th, 2012, at 17:33:10h +0100, Nrth explained:
> 
>> I have a Centos 6.3 NFS server that happily hands out shares to other
>> Centos 6.3 NFS clients
> 
> You have failed to state which version of NFS you are running on the
> Centos systems and the Debian system.
> 
> Is it NFS v3 or v4?

Hello,

Thanks for the reply and sorry for various omissions. I believe the 
server is NFSv4. The (Debian) client I'm not so sure about as it appears 
to be able to talk all three versions. By the way, there are no firewalls 
active between these two machines.

After checking your supplied URL and digging a little deeper, I found 
with which I'm happy although it may not be to everyone's taste.

First of all, the /etc/exports line as it stands now.

/home/pete/     doggett.nrth.lab(rw)

I've removed 'no_root_squash' and indeed root on the client cannot access 
the mounted NFS share, neither can any other user which was as expected 
so that'll do for now.

Any other user that is, apart from myself. I found this very useful page 
and within was the solution which I found most suitable.

http://www.troubleshooters.com/linux/
nfs.htm#_Mounting_an_NFS_Share_on_a_Client


The solution (for me) was to change the UID and GID of my user account on 
the Debian box to match that of the server's record of the same username. 
So 'pete' on both boxes is now '500' in /etc/passwd and /etc/group. A 
quick chown -R pete:pete /home/pete and a (reflex) reboot and the 
following mount command worked as before but this time I was able to 
access the share.

mount -t nfs4 tooms.nrth.lab:/home/pete /home/pete/serverdocs

Thanks again for the reply and for the motivation.

Regards,

Pete.

Back to comp.os.linux.networking | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

NFS Share Not Mounting On Debian Client From Centos NFS Server Nrth <nrth@invalid.example> - 2012-08-15 17:33 +0100
  Re: NFS Share Not Mounting On Debian Client From Centos NFS Server J G Miller <miller@yoyo.ORG> - 2012-08-15 19:17 +0000
    Re: NFS Share Not Mounting On Debian Client From Centos NFS Server Nrth <nrth@invalid.example> - 2012-08-15 22:31 +0100

csiph-web