[Pkg-glusterfs-devel] Bug#555541: patch for glusterfs-client and insserv matter
Jan Villeminot
jan.villeminot at keyconsulting.fr
Mon Nov 16 14:28:55 UTC 2009
tag 555541 + patch
thanks
In order to make glusterfs work properly with fstab and insserv, two
scripts
have to be used : the first should mount the glusterfs partition, the
second
should wait for the partitions to be mounted in case of asynchronous
startup.
Moreover, insserv header should be properly configured in the scripts.
This mimics NFS client scripts behavior.
The following set of files manage to correctly mount the partitions at
startup:
* glusterfs-mount mounts the glusterfs partitions ; its insserv header is
configured to depend on fuse and on $network.
* mountglusterfs.sh wait for the gluster partition to be mounted ; its
insserv header is configured to only depend on the other init script
glusterfs-mount.
* The following line should be added to a dedicated file in the insserv
conf.d directory : $remote_fs $local_fs +mountglusterfs +sendsigs
so that application such as xen might start when their configuration is
on a
remote glusterfs file system.
The problem is that if you make use of nfs, it creates a loop in
insserv: fuse
also depends on $remote_fs in case (according to the documentation) the
/usr is
mounted via nfs...
Since we don't need that feature we simply remove the fuse dependency on
$remote_fs by overriding its configuration in the /etc/insserv/overrides/
directory (the joined fuse file). Perhaps, there is a need for splitting
$remote_fs and and new
insserv variable $remote_usr, but this is beyond the scope of this package.
Those files should be provided by the glusterfs-client package.
Thanks,
--Jan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: glusterfs-mount
URL: <http://lists.alioth.debian.org/pipermail/pkg-glusterfs-devel/attachments/20091116/ff531399/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mountglusterfs.sh
URL: <http://lists.alioth.debian.org/pipermail/pkg-glusterfs-devel/attachments/20091116/ff531399/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fuse
URL: <http://lists.alioth.debian.org/pipermail/pkg-glusterfs-devel/attachments/20091116/ff531399/attachment-0001.txt>
More information about the Pkg-glusterfs-devel
mailing list