FOS and NFS

Kenneth Graham kgraham at cmtek.com
Fri Nov 4 17:33:20 UTC 2005


hi guys

I have a big problem to do FOS for 2 nfs server

actually the problem is that i dont know hot to check if the nfs service 
is running well in the master!!!

i know that pirahna does not support NFS checking, but i thing that must 
be a way around to ckeck it , any idea?

i have 2 nfs server and 1 http client that mounts files from the nfs server.

my lvs.cf  is:

service = fos
backup_active = 1
heartbeat = 1
heartbeat_port = 1050
keepalive = 5
deadtime = 30
rsh_command = rsh


network = nat
nat_nmask = 255.255.255.0

reservation_conflict_action = preempt
debug_level = 3

failover nfs {
     active = 1
     address = 192.168.1.118 eth1:1
     port = 2049       ***********   normally is not supported by piranha
     timeout = 10
     send_program = "/home/nfs/./check_nfs.sh"      **** see below
     expect = "OK"
     start_cmd = "/etc/init.d/nfs restart"
     stop_cmd = "/etc/init.d/nfs stop"

for the send_program i tried :

lynx 192.168.1.30:80    ----> this will check a file using a http in a 
client machine that have the file mounted from the nfs server, if i dont 
have the file back , it will mean that the nfs is not reponding or is 
down...but the problem is that the request hangs if the nfs is down and 
pirahna can NOT kill the request using the timeout, it just hangs 
forever with out response back  (i tried changing config for mounting 
the file in the client using "hard,intr or soft or timeo etc.. but not 
working)

any idea how to do a good ckecking of the status of the NFS ?

thanks in advance




More information about the Piranha-list mailing list