0

I have two instances of RHEL 7 Linux, machine 1 and machine 2. Machine 2 has a folder that is mounted to a remote folder from machine 1. It is done with command: mount -t cifs -o user=aaa,pass=password //machine 1's ip/SrcFolder/. This works fine but however when I pause machine 1 then if I issue a command such as ls it would hang in machine 2. If I unpause machine 1 then everything is back to normal. I am suspecting that whatever the daemon running mount is hold on to the file system resource which prevent other i/o operation to complete? Is there a way so the client can detect right away?

  • 1
    What do you mean by "pause machine 1"? – Michael Hampton Jan 17 at 19:01
  • @MichaelHampton the two machines are virtual instances sitting in a same physical box. I can pause the vm with vm manager tool. – MidTierDeveloper Jan 17 at 19:02
  • 1
    How do you expect to be able to access files on the machine when it is paused, then? – Michael Hampton Jan 17 at 19:04
  • @MichaelHampton I am not trying to access file on the machine that is paused rather I am interested in how I can ensure commands like ls still function properly when the mounted drive is not available. Is there something I can pass on to the mount command to achieve the desired behavior? – MidTierDeveloper Jan 17 at 19:08
1

I am not trying to access file on the machine that is paused

Actually, you are... Any command that accesses the file system, i.e. 'ls' will give you trouble if the remote system is no longer available. When Machine1 is paused, can you still ping it successfully?

I hope this helps

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.