Skip to contentSkip to conversation

NFS behaviour on server crash

DISCUSSION Venelin Mihaylov 1 participant 2 messages Feb 11, 2005 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hello list :),
I have the following question:
What will happen when an NFS server crashes while a client has mount a
NFS directory from that server ?

Signature · 3 lines
Venelin Mihaylov, CCNA
System Administrator
HostColor LLC

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Thank you very much for the provided information.
I am asking because I want to implement an centralized clamav mail
scanner, which AFAIK would work, only if I mount the directories in which the mail is scanned on the server. First I mounted the directories on the server so the clamav client is actually NFS server.
Then I realized that I do not know what will happen if the clamav
client / NFS server will crash.
The behavior which you described (for hard mounted directories) will
work just fine.

Thanks for your time.

Quoted 49 lines · Jamie Border

s/kill killed/is killed/g

Quoted 44 lines · Jamie Border

Venelin

It Depends :-)

Assuming hard mounting (see link below),

The client machine will behave normally until a process on the client tries to open a file on the nfs server. It will then block (hang) until either:

1) The nfs server is up and running again
2) The client process kill killed (kill -KILL <processid>)

You could get round this by soft-mounting the nfs share, but this will probably break software using files over it.

For more info, see:

http://nfs.sourceforge.net/nfs-howto/client.html#SOFT-VS-HARD

Or try searching for "nfs server crash" on google.

Hope this helps

Jamie

Quoted 15 lines · Venelin Mihaylov

Hello list :),
I have the following question:
What will happen when an NFS server crashes while a client has mount a
NFS directory from that server ?

--
Venelin Mihaylov, CCNA
System Administrator
HostColor LLC

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 3 lines
Venelin Mihaylov, CCNA
System Administrator
HostColor LLC