Hello,
I have a computer running Windows 2008 Server connected to a linux box.
We have NFS connections on these systems for data transfer.
Occasionally we lose the NFS mount and we run a locally made remount script which works most of the time.
But we have had numerous issues where the NFS connection either disappears, halts or just won't work. I then get semaphore timeouts.
THe fix to date was to power cycle the computer the unmount/ remount NFS. I suspect that stopping and starting NFS services MAY be a solution.
nfsadmin server [ComputerName] stop
nfsadmin server [ComputerName] start
This is a production atmosphere so this connection is imperative for operation.
I need a script (bat file) that:
1 polls for this connection (perhaps with task scheduler running script every 10 minutes. We have other systems doing something like this but with older OS's)
2 If not connected stops and starts NFS services:
nfsadmin server [ComputerName] stop
nfsadmin server [ComputerName] start
3 remounts the connections.
4 if connected does nothing.
Any advice/ tips are appreciated.
Cheers
Tom Lefco
I have a computer running Windows 2008 Server connected to a linux box.
We have NFS connections on these systems for data transfer.
Occasionally we lose the NFS mount and we run a locally made remount script which works most of the time.
But we have had numerous issues where the NFS connection either disappears, halts or just won't work. I then get semaphore timeouts.
THe fix to date was to power cycle the computer the unmount/ remount NFS. I suspect that stopping and starting NFS services MAY be a solution.
nfsadmin server [ComputerName] stop
nfsadmin server [ComputerName] start
This is a production atmosphere so this connection is imperative for operation.
I need a script (bat file) that:
1 polls for this connection (perhaps with task scheduler running script every 10 minutes. We have other systems doing something like this but with older OS's)
2 If not connected stops and starts NFS services:
nfsadmin server [ComputerName] stop
nfsadmin server [ComputerName] start
3 remounts the connections.
4 if connected does nothing.
Any advice/ tips are appreciated.
Cheers
Tom Lefco