C Board  

Go Back   C Board > Community Boards > Tech Board

Reply
 
LinkBack Thread Tools Display Modes
Old 09-04-2008, 12:15 PM   #1
Something Clever
 
ginoitalo's Avatar
 
Join Date: Dec 2001
Posts: 187
NFS and Non-Responsiveness

I have 4 webservers serving content from an NFS mount on a RAID5 box. All FreeBSD.

NFS Server:
----------------------------
nfs_server_enable="YES"
nfs_server_flags="-u -t -n 8"
rpc_lockd_enable="YES" # Run NFS rpc.lockd needed for client/server.
rpc_statd_enable="YES" # Run NFS rpc.statd needed for client/server.
nfs_client_enable="YES" # This host is an NFS client (or NO).
nfs_reserved_port_only="NO"
mountd_flags="-r"


Webserver mounts using the fstab file


Issue I recently had:
------------------------

The NFS server went down.
I expect the webservers to not be able to serve content, but they all became non-usable as soon as i typed one of the following:

df -h
umount
umount -f
reboot

...couldn't even reboot for crying out loud, network services turned off, but it wouldn't go all the way, so i had to drive to the datacenter and hard reboot.


anyways, I can't imagine that a 'bad share' could take down such a great OS.


Is there anything I can do to prevent this hangup in the future ?
ginoitalo is offline   Reply With Quote
Old 09-04-2008, 03:20 PM   #2
&TH of undefined behavior
 
Fordy's Avatar
 
Join Date: Aug 2001
Posts: 5,218
How about holding a local cache on each server. How you did this could be up to you. It could be something simple like a web directory that gets rsync'ed at a regular interval. Then if the main server goes down the sync fails but the webservers keep going with the cached content.

I doubt a failed share serving only web content should kill the system though
__________________
"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut."
Albert Einstein (1879 - 1955)


Board Rules
Fordy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump


All times are GMT -6. The time now is 01:56 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22