I have a .bat script that runs from a Windows 7 machine. Part of the script is to use plink to ssh into a Red Hat machine and run a couple commands. I have about 4 or 5 plink commands within the script. For example:
plink -pw password -ssh username@host "tar -czplf /archive/mounted_folder/test.tar /archive/folder_to_tar"
where mounted_folder
is a mounted NFS share, which is located on a server running Windows Server 2008 R2.
I noticed that if the system hasn't been touched in over a day and then the script is run, the mounted folders on the Red Hat machine dropout and become unusable. If you reset the Red Hat machine, the folders are properly mounted again, and if you run the script again, it works as expected -- nothing is dropped.
What exactly could be causing this problem?
Edit:
If I try to remount the folder directly after it drops out using
mount -a
the mounts still are unusable, even though no error is produced. I've found that a reboot is the only way to get them remounted