[CentOS] if no NFS server clients are waiting..

Thu May 14 13:11:02 UTC 2009
James Pearson <james-p at moving-picture.com>

Johan Swensson wrote:
> Try with the soft option.
> 
> ----- Original Message -----
> From: "Michael Casey" <michaelcasey73 at gmail.com>
> To: centos at centos.org
> Sent: Thursday, May 14, 2009 2:06:31 PM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
> Subject: [CentOS] if no NFS server clients are waiting..
> 
> 
> What can I do, If the NFS server is rebooting/offline? 
> I mean the clients just wait and wait and wait... 
> 
> I tried to set 
> 
> timeo=5,retrans=2 
> 
> mount options when mounting nfs in fstab on client side = 
> still no luck, clients are just waiting... 
> Can I set a timeout somewhere? :D 

If the server is just rebooting, then don't use the "soft" option. In 
fact, I would never use the soft option - see: 
<http://nfs.sourceforge.net/nfs-howto/ar01s04.html#mount_options>

You probably want to use "hard,intr"

If the server is really offline for a period, then you can clear the 
mount entry by using 'umount -l /mount/point' - see umount(1)

James Pearson