Re: How to check if mounted trough nfs server is down

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> 


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux