Verifying NFS Mounts
Considering NFS Mount Points (Mounted Mount Points I mean) the following file
Code:
cat /proc/mounts Code:
df Purpose / Problem: I want to check (by stating each mount point (NFS only) to verify if it is working/available or not). Since I have N number of servers where N number of mount points are found on "/" and I see them in the output of: Code:
cat /proc/mounts Code:
df A excerpt from the output of df follows here: Code:
whatever-nfs:/pcs/mrt/000 71153664 6063136 64582016 9% /pcs/mrt/000 Code:
df | grep ":" | more Code:
whatever-nfs:/pcs/mrt/000 71153664 6063136 64582016 9% /pcs/mrt/000 Code:
[lsdev@push02.sun3 Devarishi]$ cat /proc/mounts | grep ":" Code:
cat /proc/mounts | grep ":" | awk '{print $2}' |
Uhh, is there a question in there somewhere?
--- rod. |
Quote:
How to check / verify each NFS Mount Point on each specific client box whether it (the NFS Mount Point) is available or not? Or how to prepare a list of NFS Mount Points that may or may not be working / accessible? Will /proc/mounts or the output of "df" give you the answer? |
From my experience, only attempting to access an apparently mounted file or directory will reveal whether the mount is alive. This will usually result in a long delay while the connection times out, if the mount is not alive. I'm not aware of any other mechanism to determine the 'aliveness'.
--- rod. |
Quote:
Code:
$ mountpoint /opt |
Quote:
Code:
[demo@localhost ~]$ mountpoint /opt Thanks for the command! |
So, I guess I misunderstood what you mean by 'available'. I took it to mean that the NFS connection is alive and communicating; ie the server is serving (since you specifially mention NFS mounts). I don't think the mountpoint command tells you anything about the health of the connection.
--- rod. |
All times are GMT -5. The time now is 01:24 PM. |