[Gluster-users] bash exit code when mount command failed

Marco Agostini comunelevico at gmail.com
Mon Jul 11 12:04:20 UTC 2011


Hy, when a mount command fail (for some reason, server unavailable,
volume not exists....) the system don't show any error message.

I know that I can find the error on client-side in /var/log/glusterfs/*.log

I'm using glusterfs 3.2.1 and glusterd 3.2.1

These is the command that I'm using on client-side:

# mount -t glusterfs serveroff:/notexistvolume /mnt (the server not
exist and the volume not exist !)
# echo $?

when I digit "echo $?" I'm expect that the command return NOT 0 (zero).
I want using mount command in an external script bash and test if the
mount command are executed correctly.

I't possiple without "parse" the content of /var/log/glusterfs ?

thanks.



More information about the Gluster-users mailing list