Package: nfs-kernel-server
Version: 1:1.0.7-3
Severity: normal
Seem related: 81428, 292521
ERROR.
Cannot nfs-mount shared directories. I never could. I have got two boxes,
scandic and andromeda. On andromeda this happens:
# mount /mnt/scandic/
mount: scandic:/home/tore failed, reason given by server: Permission denied
CONDITIONS.
The mount is prepared by
-- scandic:/etc/exports --
/home/tore *(rw,no_root_squash)
/tmp *(rw,no_root_squash)
and
-- andromeda:/etc/fstab --
scandic:/home/tore /mnt/scandic nfs rw,users,timeo=14,intr 0 0
INVESTIGATIONS.
The scandic:syslog says nothing (thus no reason given by server)
The andromeda:syslog says:
Oct 20 21:12:16 localhost mountd[5538]: refused mount request from scandic for
/home/tore (/): not exported
ADDITIONAL INFORMATION.
Both boxes are fairly equal configured except that scandic is running 2.6
stable as a samba server (see blow). Samba functions OK, still if automounting
details have to be worked on. I can mount shares mutually between scandic and
andromeda using samba. I have not autofs since I think it is obsolete now.
Virtually all needed daemons are running on scandic and andromeda.
PECULIAR NOTE.
Initially, I set up scandic:/etc/exports and andromeda:/etc/exports equal,
since their directory strutures are equal. Then, virtually, the mounts seemed
to function. However, the mounts were not across computers but within! That is,
andromeda muonted on andromeda another copy of /home/tore, and scandic also
mounted its own directory! Though after removing that fstab line from
andromeda, one can se from the syslog (above) that it was carried out via the
other computer, in some way...? Shouldn't it be quite unusual that one box
invites the other box to come and mount a copy of an own directory on myself?
Anyway, if it isn't exported, the end is this error.
ANOTHER NOTE.
At the first place, since it appeared a mutual mix-up between directory
belongings, I removed completely all exports from andromeda. Then the 'error'
happened. But after reboot, the daemons had vanished, and such a mount coldn't
even be initiated (thus the error couldn't happen). That is because the daemon
start script requires a non-empty /etc/exports to start them (needs a '/' in
some col.1). Then I put back a /temp line in andromeda:/etc/exports (but no
/home/tore line) to get the daemons started.
NETWORK CONDITIONS.
Computer Version Main function Connection
scandic Linux 2.6.8-386 Samba server Router, LAN, fixed IP 192.168.0.11
andromeda Linux 2.6.12-1-686 Workstation Router, LAN, fixed IP 192.168.0.12
njtore Windows XP Workstation Router, WLAN, fixed IP 192.168.0.51
FURTHER NOTE.
The njtore box is not involved i this nfs mounting malfunction (hopefully). On
the contrary, both
scandic and andromeda may share directories, both on and with the Windows box.
And samba also perfectly connects scandic and andromeda. But I refuse not to be
able to connect them using their native file system's tools -- else they
communicate normally from one to the other through pinging etc.
RECENT FINDINGS, PROBABLY NOT IMORTANT.
Whether 192.168.0.11 or scandic is used in /etc/fstab makes no difference.
Whether * is used or omitted in /etc/exports makes no difference (except that
exportfs recommends its use). Better to specify *(rw,no_root_spash) as options
for testing.
RECENT FINDINGS, PERHAPS IMPORTANT.
In order to single out details, I exported scandic:/home/tore ONLY and
andromeda:/tmp ONLY, respectively. Both boxes now (after subsequent exportfs
-ra) should have one DISTINCT exported directory each, /home/tore on scandic
and /tmp on andromeda, respectively. These commands were executed on andromeda:
[EMAIL PROTECTED]:/# exportfs -ra
exportfs: /etc/exports [3]: No 'sync' or 'async' option specified for export
"*:/tmp".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions
[EMAIL PROTECTED]:/# mount /mnt/scandic/
mount: scandic:/home/tore failed, reason given by server: Permission denied
[inserted note: syslog like before on both boxes, i.e. logged on andromeda]
[EMAIL PROTECTED]:/# showmount -a scandic
All mount points on scandic:
*:/home/tore
127.168.0.11:*
[inserted note: OK?]
[EMAIL PROTECTED]:/# showmount -d scandic
Directories on scandic:
*
/home/tore
[inserted note: OK?]
[EMAIL PROTECTED]:/# showmount -e scandic
Export list for scandic:
/tmp *
[inserted note: ??? Is not exported on scandic!]
[EMAIL PROTECTED]:/# showmount -a andromeda
All mount points on andromeda:
*:/home/tore
127.168.0.11:*
[inserted note: ??? is not exported!]
[EMAIL PROTECTED]:/# showmount -d andromeda
Directories on andromeda:
*
/home/tore
[inserted note: is not exported!]
[EMAIL PROTECTED]:/# showmount -e andromeda
Export list for andromeda:
/tmp *
[inserted note: OK, is exported on andromeda]
nfs file contents on andromeda:
-- andromeda:/var/lib/nfs/xtab --
[empty]
-- andromeda:/var/lib/nfs/etab --
/tmp
*(rw,sync,wdelay,hide,nocrossmnt,secure,no_root_squash,no_all_squash,subtree_check,secure_locks,acl,mapping=identity,anonuid=-2,anongid=-2)
-- andromeda:/var/lib/nfs/rmtab --
127.168.0.11:*:0x00000013
*:/home/tore:0x00000023
ADDENDUM.
The scandic box shows, using corresponding commands, for example,
Export list for andromeda:
/home/tore *
and
Export list for scandic:
/home/tore *
nfs file contents on scandic:
-- scandic:/var/lib/nfs/xtab --
/home/tore
andromeda(rw,sync,wdelay,hide,nocrossmnt,secure,no_root_squash,no_all_squash,subtree_check,secure_locks,acl,mapping=identity,anonuid=-2,anongid=-2)
-- scandic:/var/lib/nfs/etab --
/home/tore
*(rw,sync,wdelay,hide,nocrossmnt,secure,no_root_squash,no_all_squash,subtree_check,secure_locks,acl,mapping=identity,anonuid=-2,anongid=-2)
-- scandic:/var/lib/nfs/rmtab --
andromeda:/home/tore:0x00000003
Does this make sense?
OTHER BUG REPORTS.
Debian Bug report logs: package nfs-kernel-server in unstable (version
1:1.0.7-3) contain much that resembles this error, but nobody has virtually
been totally unable to mount nfs. Maybe my total lock-up is because two
2.6-kernel boxes are involved - most earlier reports (since almost five years!)
concern 2.4 installations. See bug reports 81428 and 292521.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=sv_SE, LC_CTYPE=sv_SE (charmap=ISO-8859-1)
Versions of packages nfs-kernel-server depends on:
ii debconf 1.4.58 Debian configuration management sy
ii libc6 2.3.5-6 GNU C Library: Shared libraries an
ii libcomerr2 1.38-2 common error description library
ii libkrb53 1.3.6-5 MIT Kerberos runtime libraries
ii libnfsidmap1 0.8-1 An nfs idmapping library
ii libwrap0 7.6.dbs-8 Wietse Venema's TCP wrappers libra
ii nfs-common 1:1.0.7-3 NFS support files common to client
ii sysvinit 2.86.ds1-2 System-V like init
nfs-kernel-server recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]