I have configured glusterfs between two ubuntu servers and mounting the gluster volume under /var/www directory. Since I am using only two servers, I had to install glusterfs-client in the same machine itself(http://gopukrish.wordpress.com/high-availability-load-balanced-wordpress-site/). My primary objective was to get the two servers replicated. Currently I am mounting the volume as below : mount -t glusterfs server1:/datavol /var/www When I add the same entry in /etc/fstab, server wont come online since it cant detect such a volume at bootup. Otherwise I should add the fstab entry with the server2. But in worst case(both servers down), no server will come online after the restart as both the servers are using one another server's volume.
Is there anyway to automatically mount the volume automatically only after the server came up online ?