Author: Marc Pean
Date: 28-10-01 19:07
(posted by Dan Langille)
Mounting NFS file systemsNFS Portmap: RPC: Program not registered
This is a generic message.
NFS client can do D.O.S on your server
I get this problem and have a new solution
The serveur was busy: a top show nfsd: CPU 90-46%
390 root 20 0 0 0 0 RW 0 46.0 0.0 7549m nfsd
many clients use the server as same time
for example on a mandrake by default crontab use /etc/cron.daily/slocate.cron which don't exclude nfs mount point.
#!/bin/sh
[ -e /usr/bin/updatedb ] && { sh /usr/bin/updatedb; } || {
/usr/bin/slocate -u -e /tmp -e "/var/tmp,/usr/tmp,/afs,/net,/proc,/add-your-nfs-mount-point";
}
a new top after this correction:
390 root 0 0 0 0 0 SW 0 0.0 0.0 7554m nfsd
But i think the best is to add this line to to exclude all NFS mount point.
#!/bin/sh
[ -e /usr/bin/updatedb ] && { sh /usr/bin/updatedb; } || {
/usr/bin/slocate -u -e /tmp
-e "/var/tmp,/usr/tmp,/afs,/net,/proc,/add-your-nfs-mount-point"
}
[ -e /usr/bin/updatedb ] && { sh /usr/bin/updatedb; } || {
/usr/bin/slocate -u -e /tmp
-e "/var/tmp,/usr/tmp,/afs,/net,/proc,"
-e mount | grep nfs | awk '{ print $3 "," }';
}
|
|