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
Thank you for any tips
Try with the soft option.
----- Original Message ----- From: "Michael Casey" michaelcasey73@gmail.com To: centos@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
Thank you for any tips
Johan Swensson wrote:
Try with the soft option.
----- Original Message ----- From: "Michael Casey" michaelcasey73@gmail.com To: centos@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
I tried "ls --color=never" https://bugzilla.redhat.com/show_bug.cgi?id=468049 it still waits
I tried on the client side with other mount options: intr, soft it still waits
update :D : I turn the NFS server down Clients hang reboot client client cant see the NFS share, but at least it doesn't wait's for it I start the NFS server reboot client It can see the shares again
Client's are Lenny's
ps.: amm...the nfs server is really an unfs3 server in an openwrt kamikaze 8.09 router... :) :S
the fstab entry is this
vim /etc/fstab 192.168.1.1:/mnt/share/ /home/user/Desktop/Share/ nfs defaults,ro,nfsvers=3,nolock 0 0