Hi
i found following problem:
/dev/sda4 5.3G 2.9G 2.1G 58% /mnt/data
this disk is mounted and shared to the local network... this share is also
mounted on a pc in the local network.
now alltough the share is still mounted i do this:
server /root # /etc/init.d/nfsd stop
server /root # umount /mnt/data
umount: can't umount /mnt/data: Device or resource busy
server /root # lsof |grep data
server /root #
the device is not umount able - nfsd has to be killed this way, then it works
server /root # rpc.nfsd 0
server /root # umount /mnt/data
server /root #
after "rpc.nfsd 0" is called this message is in dmesg:
nfsd: last server has exited, flushing export cache
patch attached please apply
i dont know if this is also needed for nfs-server
greets
diff --git a/net/nfs-kernel-server/files/nfsd.init b/net/nfs-kernel-server/files/nfsd.init
index 11db03d..6130bec 100644
--- a/net/nfs-kernel-server/files/nfsd.init
+++ b/net/nfs-kernel-server/files/nfsd.init
@@ -20,7 +20,7 @@ start() {
stop() {
killall rpc.mountd 2> /dev/null
- killall -9 rpc.nfsd 2> /dev/null
+ rpc.nfsd 0 2> /dev/null
/usr/sbin/exportfs -au
killall rpc.statd 2> /dev/null
}
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel