Hi,
OS: wheezy / squeeze
Could somebody explain what wrong?
Why mount refuses to mount through loopback interface?
The issue can be reproduced in your system with next set of commands
root# mkdir -p /exports/home
root# cat >> /etc/exports
/export/home 192.168.0.0/24(rw,sync,no_subtree_check)
^C
root# exportfs -ra
root# mount -t nfs 127.0.0.1:/export/home /mnt
Is there a cure for this issue? Or am I missing something?
Regards,
Andy
**********************************************************
*** Problem Diagnostic ***
*** Tested on Debian Squeezy and Wheezy ***
*** apt-get update && apt-get upgrade run before tests ***
**********************************************************
root@vega:~# cat /etc/issue
Debian GNU/Linux 6.0 \n \l
root@vega:~# hostname
vega
root@vega:~# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 vega.myclub.com vega
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
root@vega# mkdir -p /export/home
root@vega# cat /etc/exports
/export/home 192.168.0.0/24(rw,sync,no_subtree_check)
root@vega# exportfs
/export/home 192.168.0.0/24
root@vega:~# showmount -e
Export list for vega:
/export/home 192.168.0.0/24
root@vega:~# egrep -v '^$|^#' /etc/default/portmap
OPTIONS=""
root@vega:~# egrep -v '^#|^$' /etc/hosts.deny
root@vega:~# egrep -v '^#|^$' /etc/hosts.allow
root@vega:~# ifconfig eth0 | grep inet
inet addr:192.168.0.72 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::215:f2ff:fe9e:2e0d/64 Scope:Link
root@vega:~# dpkg -l mount
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-===============-===============-==============================================
ii mount 2.17.2-9 Tools for mounting and manipulating
filesystem
root@vega:~# mount -t nfs -v 192.168.0.72:/export/home /mnt
mount.nfs: timeout set for Thu Apr 24 10:22:10 2014
mount.nfs: trying text-based options
'vers=4,addr=192.168.0.72,clientaddr=192.168.0.72'
mount.nfs: mount(2): No such file or directory
mount.nfs: trying text-based options 'addr=192.168.0.72'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.0.72 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.0.72 prog 100005 vers 3 prot UDP port 33667
192.168.0.72:/export/home on /mnt type nfs (rw)
root@vega:~# mount -t nfs -v 127.0.0.1:/export/home /mnt
mount.nfs: timeout set for Thu Apr 24 10:22:58 2014
mount.nfs: trying text-based options
'vers=4,addr=127.0.0.1,clientaddr=127.0.0.1'
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 127.0.0.1:/export/home
root@vega:~# mount -t nfs -v localhost:/export/home /mnt
mount.nfs: timeout set for Thu Apr 24 10:24:25 2014
mount.nfs: trying text-based options
'vers=4,addr=127.0.0.1,clientaddr=127.0.0.1'
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting localhost:/export/home
root@vega:~# mount -t nfs -v vega:/export/home /mnt
mount.nfs: timeout set for Thu Apr 24 10:28:09 2014
mount.nfs: trying text-based options
'vers=4,addr=127.0.1.1,clientaddr=127.0.1.1'
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting vega:/export/home
root@vega:~# mount -t nfs -v -o v3 127.0.0.1:/export/home /mnt
mount.nfs: timeout set for Thu Apr 24 10:30:31 2014
mount.nfs: trying text-based options 'v3,addr=127.0.0.1'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 127.0.0.1 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 127.0.0.1 prog 100005 vers 3 prot UDP port 33667
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting 127.0.0.1:/export/home
root@vega:~# mount -t nfs -v -o v3 localhost:/export/home /mnt
mount.nfs: timeout set for Thu Apr 24 10:30:58 2014
mount.nfs: trying text-based options 'v3,addr=127.0.0.1'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 127.0.0.1 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 127.0.0.1 prog 100005 vers 3 prot UDP port 33667
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting localhost:/export/home
root@vega:~# mount -t nfs -v -o v3 vega:/export/home /mnt
mount.nfs: timeout set for Thu Apr 24 10:31:19 2014
mount.nfs: trying text-based options 'v3,addr=127.0.1.1'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 127.0.1.1 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 127.0.1.1 prog 100005 vers 3 prot UDP port 33667
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting vega:/export/home
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/53594f2c.2010...@gmail.com