summaryrefslogtreecommitdiffstats
path: root/extras/Ubuntu/README.Ubuntu
blob: 0c5b7828d12edd2288421850f30a555f068c2a23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Bug 765014 - Mounting from localhost in fstab fails at boot on ubuntu
(https://bugzilla.redhat.com/show_bug.cgi?id=765014)
(https://bugs.launchpad.net/ubuntu/+source/glusterfs/+bug/876648)

Ubuntu uses upstart instead of init to bootstrap the system and it has a unique
way of handling fstab, using a program called mountall(8).  As a result of using
a debian initscript to start glusterd, 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.  To
correct this we need to launch glusterd using upstart and block the glusterfs
mounting event until glusterd is started.

The glusterd.conf file contains the necessary configuration for upstart to
manage the glusterd service.  It should be placed in /etc/init/glusterd.conf
on Ubuntu systems, and then the old initscript /etc/init.d/glusterd can be
removed.  An additional upstart job, mounting-glusterfs.conf, is also required
to block mounting glusterfs volumes until the glusterd service is available.
Both of these upstart jobs need to be placed in /etc/init to resolve the issue.

Starting with Ubuntu 12.04, Precise Pangolin, these upstart jobs will be
included with the glusterfs-server package in the Ubuntu repository. 

This affects all versions of glusterfs on the Ubuntu platform since at least
10.04, Lucid Lynx.