Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
El 2013-10-11 a las 09:45 +0100, Dave Howorth escribió:
If you restart a machine exporting directories via NFS, clients may crash. It has happened to me.
Only if you have the systems set up wrong.
Please explain that, I'm interested.
I can't really tell what setting on your machine is wrong. But see below...
One of the big advantages of NFS is that the server can go away and then come back and running processes on clients will simply carry on, without having to have any awareness of it at all. (i.e. the code is not aware of the NFS mount or any errors etc). I do it/it happens to me regularly.
If the server remains off (because it is intended to be off, day end), the client had to be rebooted to continue.
No, the client will sit there until the server comes back next day. That is how it is designed. And certainly the client hasn't crashed at that point. So have you had a crash or not? I'm not sure what behaviour you want your particular client to have. But the most obvious change would be to configure the mount with the soft option. Then your client would have to be aware of possible errors (as it should be in any case of course). When the server goes down, the client will receive an error and it's up to the client to deal with that. NFS is very like TCP. It assumes that breaks in the network, or servers going away, are temporary phenomena and just waits until conditions return to normal when it carries on. And NFS, like TCP, can be told to return errors instead, if that's what you want. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org