Bug 765014 - (GLUSTER-3282) Mounting from localhost in fstab fails at boot on ubuntu (upstart)
Mounting from localhost in fstab fails at boot on ubuntu (upstart)
Product: GlusterFS
Classification: Community
Component: scripts (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Vijay Bellur
Sachidananda Urs
Depends On:
  Show dependency treegraph
Reported: 2011-07-29 16:48 EDT by Louis Zuckerman
Modified: 2013-07-24 13:25 EDT (History)
3 users (show)

See Also:
Fixed In Version: glusterfs-3.4.0
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-07-24 13:25:11 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
glusterd upstart job (/etc/init/glusterd.conf) (373 bytes, text/plain)
2011-07-29 13:52 EDT, Louis Zuckerman
no flags Details

  None (edit)
Description Louis Zuckerman 2011-07-29 13:52:02 EDT
Created attachment 592
Comment 1 Louis Zuckerman 2011-07-29 14:58:40 EDT
I asked about this issue on Fedora/CentOS platforms in IRC and it seems to only affect Ubuntu, and not the other distributions that use upstart.  This is most likely due to the fact that Ubuntu uses the mountall program to handle fstab mounts while other distributions do it some other way.
Comment 2 Louis Zuckerman 2011-07-29 15:24:25 EDT
see also http://review.gluster.com/126
Comment 3 Louis Zuckerman 2011-07-29 16:48:16 EDT
Ubuntu uses upstart instead of init to bootstrap the system.  As a result, glusterfs mounts in fstab are tried before the glusterd service is running.  In the case where the client is also a server and the volume is mounted from localhost, the mount fails at boot time.  An upstart job for glusterd is needed to correct this.

I have attached my upstart job which I have tested on Ubuntu 10.10 Maverick.  The file should be placed in /etc/init/glusterd.conf, and replaces the old initscript in /etc/init.d/glusterd which can be removed.

This affects all versions of glusterfs on the ubuntu platform.  It may also affect other platforms that use upstart like Fedora (9+) and RHEL/CentOS (6+), though I have not tried them.
Comment 4 Anand Avati 2011-08-03 23:10:50 EDT
CHANGE: http://review.gluster.com/126 (Mounting from localhost in fstab fails at boot on ubuntu when glusterd is started by debian initscript.) merged in master by Anand Avati (avati@gluster.com)
Comment 5 Louis Zuckerman 2012-02-07 10:36:45 EST
I have been working with Ubuntu devs to get upstart jobs for glusterd in the Ubuntu package for glusterfs-server.  In the process they helped me fix up the upstart job configuration.  I'm committing the new upstart jobs now.
Comment 6 Louis Zuckerman 2012-02-07 11:31:31 EST
Comment 7 Anand Avati 2012-03-18 03:35:04 EDT
CHANGE: http://review.gluster.com/2727 (Updated the Ubuntu upstart jobs for glusterd in extras/Ubuntu.) merged in master by Anand Avati (avati@redhat.com)
Comment 8 Sachidananda Urs 2012-06-06 02:14:25 EDT
I do not see any of these changes as part 3.3.0, will be testing again in next release.

Note You need to log in before you can comment on or make changes to this bug.