[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Q: nfs server fails to mount own exported resource, but other client able to mount



Escaped from list (:

On 24/04/2014 09:49, Snow Leopard wrote:
Hi,

I came across strange "mount" problem on nfs server -- it refuses to
mount it's own directory while other nfs clients able mount nfs server
exported directoryjust fine

1. nfs server
name: install.myclub.com
OS: wheeze (Debian)
ip: 192.168.0.62
/etc/exports: /export/home 192.163.0.0/24(rw,subtree_check)
drxwrxwrxw /export/home

2. client1
name: meteor.myclub.com
OS: Valhalla (Red Hat 7.3)
ip: 192.168.0.1
mount -t nfs install:myclub.com:/export/home /mnt
mounts directory without any error

3. client2
name: moon.myclub.com
OS: squeeze (Debian)
ip: 192.168.0.64
mount -t nfs install:myclub.com:/export/home /mnt
mounts directory without any error

4. client3 (nfs server itself)
name: install.myclub.com
OS: wheeze (Debian)
ip: 192.168.0.62
mount -t nfs 192.168.0.62:/export/home /mnt
mounts directory without any error

5. client4 (nfs server itself)
name: install.myclub.com
OS: wheeze (Debian)
ip: 192.168.0.62
mount -t nfs install:/export/home /mnt
mounts fails with an error

mount -v -t nfs install:/export/home /mnt
mount.nfs: timeout set for Thu Apr 24 01:21:36 2014
mount.nfs: trying text-based options
'vers=4,addr=127.0.1.1,clientaddr=127.0.0.1'
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting install:/export/home

mount -v -t nfs install.myclub.com:/export/home /mnt
mount.nfs: timeout set for Thu Apr 24 01:22:50 2014
mount.nfs: trying text-based options
'vers=4,addr=127.0.1.1,clientaddr=127.0.0.1'
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting
install.myclub.com:/export/home

The error indicates that when I attempt to mount by using FQDN of nfs
server -- the name resolves to 127.0.1.1 and client resolves to
127.0.0.1 .



I wonder if it is letting you mount as 'nfs' when you supply the IP
address, but is not letting you mount as 'nfs' when you try to address
the device locally (which doesn't surprise me).

While I don't use mount, I do use fstab to mount the device containing
our nfs export, locally

/dev/md5 /mnt/point ext4 rw,auto,users,exec

(and a mount command can be similarly constructed).

Isn't the 'right' way to mount local filesystems directly as 'ext4' or
whatever, and only mount as 'nfs' if the filesystem has to be accessed
at another IP address?

regards, Ron


Reply to: