The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 suggestions
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 "," }';
}

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 suggestions   new
Marc Pean 28-10-01 19:07 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org