Bug 765014 (GLUSTER-3282) - Mounting from localhost in fstab fails at boot on ubuntu (upstart)
Summary: Mounting from localhost in fstab fails at boot on ubuntu (upstart)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-3282
Product: GlusterFS
Classification: Community
Component: scripts
Version: mainline
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Vijay Bellur
QA Contact: Sachidananda Urs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-29 20:48 UTC by Louis Zuckerman
Modified: 2013-07-24 17:25 UTC (History)
3 users (show)

Fixed In Version: glusterfs-3.4.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-24 17:25:11 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


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

Description Louis Zuckerman 2011-07-29 17:52:02 UTC
Created attachment 592

Comment 1 Louis Zuckerman 2011-07-29 18:58:40 UTC
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 19:24:25 UTC
see also http://review.gluster.com/126

Comment 3 Louis Zuckerman 2011-07-29 20:48:16 UTC
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-04 03:10:50 UTC
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)

Comment 5 Louis Zuckerman 2012-02-07 15:36:45 UTC
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 16:31:31 UTC
http://review.gluster.com/#change,2727

Comment 7 Anand Avati 2012-03-18 07:35:04 UTC
CHANGE: http://review.gluster.com/2727 (Updated the Ubuntu upstart jobs for glusterd in extras/Ubuntu.) merged in master by Anand Avati (avati)

Comment 8 Sachidananda Urs 2012-06-06 06:14:25 UTC
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.