How to check if mounted trough nfs server is down

Jyce jyce at free.fr
Sun Jun 20 16:56:02 UTC 2004


ping -c 2 IP
[$? -ne 0] && exit 1
do what you want....


> Hello Everybody!
> 
>  
> 
> How to check if mounted through NFS server is freezes or down.
> 
> Server mounted to backup directory
> 
> When I'm trying to list files on the mounted server process dives me an
> error after few minutes.
> 
> These few minutes are not acceptable for me. Is there any way to check
> quickly if server is down?
> 
> ls /mnt/backup
> 
> ls: /mnt/backup/: Input/output error
> 
>  
> 
> Best Regards,
> 
> Sergei Giritch
> 
> Web System Administrator
> 
> Fleetchek.com
> 
>  
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> 





More information about the redhat-list mailing list