View previous topic :: View next topic |
Author |
Message |
bertvv n00b


Joined: 15 Jun 2003 Posts: 46 Location: Pamel, Flanders
|
Posted: Tue Sep 13, 2005 10:18 am Post subject: Error exporting NFS directories |
|
|
During startup, I see the following:
Code: | * Starting portmap ... [ ok ]
* Mounting nfsd filesystem in /proc ... [ ok ]
* Starting NFS statd ... [ ok ]
* Exporting NFS directories ...
/etc/init.d/nfs: line 65: 7672 Killed $exportfs -r 1>&2
* Error exporting NFS directories [ !! ]
* Starting NFS daemon ... [ ok ]
* Starting NFS mountd ... [ ok ]
* Mounting NFS filesystems ... [ ok ] |
Line 65 in /etc/init.d/nfs is the "wait $1" statement in the following code snippet:
Code: | waitfor_exportfs() {
local pid=$1
( sleep ${EXPORTFSTIMEOUT:-30}; kill -9 $pid &>/dev/null ) &
wait $1
}
|
Nothing to be seen in dmesg output, the only relevant entry in the /var/log/everything/current logfile is
Code: | Sep 13 11:26:06 [rc-scripts] Error exporting NFS directories |
Not very helpful. As far as I can see, my exports file is legit:
Code: | # cat /etc/exports
/home/pub 192.168.1.0/255.255.255.0(rw,sync)
|
I tried to run "exportfs -r" by hand to see if it spawns any error messages, but it doesn't and the command's exit status is 0.
Any hints on what goes wrong here? _________________ If Bill Gates had a penny for each time Windows crashed...
Wait a minute! He does! |
|
Back to top |
|
 |
fangorn Veteran


Joined: 31 Jul 2004 Posts: 1886
|
Posted: Tue Sep 13, 2005 10:49 am Post subject: |
|
|
try doing a
Do you have write permissions to /var/lib/nfs/xtab?
Do you have the NFS Server support compiled in to the kernel? The standard NFS daemon is just the userland tool to utilize the inkernel nfs server. |
|
Back to top |
|
 |
bertvv n00b


Joined: 15 Jun 2003 Posts: 46 Location: Pamel, Flanders
|
Posted: Tue Sep 13, 2005 11:06 am Post subject: |
|
|
Meanwhile, I did some more research myself and tried
Code: | odin ~ 12:21:21 # exportfs -av
exporting 192.168.1.0/255.255.255.0:/home/pub
odin ~ 12:22:12 # |
This takes almost a minute. That seems quite long. But the exporting seems to work: I can mount the directory from another host in my home network. There, too, it takes quite long to finish the mount command: no less than 3 and a half minutes!
So apparently, it works, but sloooowly.
To answer your questions, fangorn:
Code: | odin ~ 12:28:12 # ls -l /var/lib/nfs/xtab
-rw-r--r-- 1 root root 0 Dec 11 2004 /var/lib/nfs/xtab
odin ~ 12:54:26 # zgrep "NFS" /proc/config.gz
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
# CONFIG_NFS_V4 is not set
# CONFIG_NFS_DIRECTIO is not set
CONFIG_NFSD=y
# CONFIG_NFSD_V3 is not set
CONFIG_NFSD_TCP=y
|
Root does have write acces. maybe CONFIG_NFSD_V3 should be set in the configuration?[/list] _________________ If Bill Gates had a penny for each time Windows crashed...
Wait a minute! He does! |
|
Back to top |
|
 |
fangorn Veteran


Joined: 31 Jul 2004 Posts: 1886
|
Posted: Wed Sep 14, 2005 1:43 pm Post subject: |
|
|
here is mine, it works perfectly in a heterogenous Linux/AIX/Win2k Network (have to put insecure as export option in /etc/exports to get it mounted by the rather old AIX machines)
Code: |
# CONFIG_NFS_V4 is not set
# CONFIG_NFS_DIRECTIO is not set
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V3_ACL is not set
# CONFIG_NFSD_V4 is not set
CONFIG_NFSD_TCP=y
CONFIG_ROOT_NFS=y
|
|
|
Back to top |
|
 |
richardash1981 Tux's lil' helper

Joined: 08 Apr 2005 Posts: 94 Location: England
|
Posted: Fri Nov 11, 2005 9:53 pm Post subject: |
|
|
The nfs server needs to be able to do a reverse DNS lookup on each client IP that tries to connect to it,(even with IP addresses or masks in /etc/exports). If it can't, mount will often time out on the clients, and exportfs will take much longer.
Either add the nfs clients to the DNS or the server's hosts file. |
|
Back to top |
|
 |
|