Check that a glusterfs partition is mounted
When using glusterfs in a production system, it is mandatory to properly monitor that the partition is mounted and performing well, specially in heavy loaded environments.
I have created a nagios plugin in bash that monitors a glusterfs mounted partition and detects whether the partition gets unmounted, responds slowly or gets disconnected from the server (causing reading processes to die in an uninterruptible sleep state, which will force you to restart the system in order to get rid of them).
When a glusterfs partition gets lost, you may still have processes trying to access data found in it. The only way you will have to properly unmount and remount the partition in order to fix the problem is to run umount with the lazy flag, and then mount it over again.
-l Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore. (Requires kernel 2.4.11 or later.)
Download the file: check_glusterfs_mount