Kaushal M
2015-Feb-11 09:30 UTC
[Gluster-users] [Gluster-devel] glusterd fails to start as service on Fedora 19
Hi, First a polite request. In the future, when you have any questions, please ask them on the mailing list. This way, other users also have a chance of helping you and your problem will be archived and be available for others to search. Now, looking at the list of files you've given, it seems to me that you are using a custom build of GlusterFS, not the rpm packages from the Fedora repository. IIRC, with Fedora 19 and GlusterFS 3.4, the systemd unit files were added by the Fedora packagers. The GlusterFS source didn't ship any systemd unit files. This is why you don't see any unit file for glusterd on your system. Instead you have `/etc/rc.d/init.d/glusterd` (this is a weird path BTW), as GlusterFS source contained init scripts at that point in time. I suggest you use official packages for a better experience, preferrably of the latest version. Also, as Fedora 19 is no longer supported, it will not be recieving any further updates (GlusterFS or otherwise). So please move to a newer version of Fedora and use newer packages. ~kaushal On Wed, Feb 11, 2015 at 2:44 PM, maokx at sina.com <maokx at sina.com> wrote:> hello, > i don't find /usr/lib/systemd/system/glusterd.service file > [root at server yum.repos.d]# glusterfsd --version > glusterfs 3.4.2 built on Jan 3 2014 12:38:05 > Repository revision: git://git.gluster.com/glusterfs.git > Copyright (c) 2006-2013 Red Hat, Inc. <http://www.redhat.com/> > GlusterFS comes with ABSOLUTELY NO WARRANTY. > It is licensed to you under your choice of the GNU Lesser > General Public License, version 3 or any later version (LGPLv3 > or later), or the GNU General Public License, version 2 (GPLv2), > in all cases as published by the Free Software Foundation. > [root at server yum.repos.d]# > > [root at www ~]# find / -name gluster* -print > > /etc/glusterfs > > /etc/glusterfs/glusterfs-logrotate > > /etc/logrotate.d/glusterfsd > > /etc/logrotate.d/glusterfs-fuse > > /etc/logrotate.d/glusterd > > /etc/selinux/targeted/modules/tmp/modules/glusterd.pp > > /etc/selinux/targeted/modules/active/modules/glusterd.pp > > /etc/rc.d/init.d/glusterfsd > > /etc/rc.d/init.d/glusterd > > /etc/sysconfig/glusterfsd > > /etc/sysconfig/glusterd > > /var/log/glusterfs > > /var/log/glusterfs/glustershd.log > > /var/lib/stateless/writable/etc/glusterfs > > /var/lib/stateless/writable/etc/glusterfs/glusterfs-logrotate > > /var/lib/stateless/writable/etc/logrotate.d/glusterfsd > > /var/lib/stateless/writable/etc/logrotate.d/glusterfs-fuse > > /var/lib/stateless/writable/etc/logrotate.d/glusterd > > > /var/lib/stateless/writable/etc/selinux/targeted/modules/tmp/modules/glusterd.pp > > > /var/lib/stateless/writable/etc/selinux/targeted/modules/active/modules/glusterd.pp > > /var/lib/stateless/writable/etc/rc.d/init.d/glusterfsd > > /var/lib/stateless/writable/etc/rc.d/init.d/glusterd > > /var/lib/stateless/writable/etc/sysconfig/glusterfsd > > /var/lib/stateless/writable/etc/sysconfig/glusterd > > /var/lib/stateless/writable/var/lib/glusterd > > /var/lib/stateless/writable/var/lib/glusterd/glustershd > > /var/lib/stateless/writable/var/run/gluster > > /var/lib/stateless/writable/var/log/glusterfs > > /var/lib/glusterd > > /var/lib/glusterd/glustershd > > /var/lib/glusterd/glustershd/run/glustershd.pid > > /var/lib/glusterd/glusterd.info > > /var/run/gluster > > /selinux/booleans/gluster_export_all_ro > > /selinux/booleans/gluster_anon_write > > /selinux/booleans/gluster_export_all_rw > > /usr/lib/python2.6/site-packages/gluster > > /usr/lib/python2.6/site-packages/glusterfs_api-3.4.2-py2.6.egg-info > > /usr/lib/python2.6/site-packages/sos/plugins/gluster.pyc > > /usr/lib64/glusterfs > > /usr/lib64/glusterfs/3.4.2/xlator/mgmt/glusterd.so > > /usr/sbin/glusterd > > /usr/sbin/gluster > > /usr/sbin/glusterfs > > /usr/sbin/glusterfsd > > /usr/share/mcvda/gluster > > /usr/share/mcvda/glusterThread.py > > /usr/share/mcvda/glusterThread.pyc > > /usr/share/mcvda/glusterThread.pyo > > /usr/share/mcvda/storage/glusterSD.py > > /usr/share/mcvda/storage/glusterSD.pyc > > /usr/share/mcvda/storage/glusterSD.pyo > > /usr/share/mcvda/storage/glusterVolume.py > > /usr/share/mcvda/storage/glusterVolume.pyc > > /usr/share/mcvda/storage/glusterVolume.pyo > > /data/glusterd > > /data/glusterd/glustershd > > /data/glusterd/glustershd/run/glustershd.pid > > /data/glusterd/glusterd.info > Re: [Gluster-devel] glusterd fails to start as service on Fedora 19 > ------------------------------ > *From*: Kaushal M *Subject*: Re: [Gluster-devel] glusterd fails to > start as service on Fedora 19 *Date*: Wed, 24 Jul 2013 20:38:53 +0530 > ------------------------------ > > The problem is with the glusterfsd.service systemd unit, it does > nothing and will always fail to start because it isn't given a > volfile. glusterd.service depends on glusterfsd.service, and thus > fails to start as glusterfsd fails to start. The fedora packages need > to be rebuilt without glusterfsd.service. > For the time being, if you absolutely want to use systemd to start > glusterd, edit the /usr/lib/systemd/system/glusterd.service file and > remove the 'Wants=glusterfsd.service' line. Or you could just start > glusterd directly. > -Kaushal > > ------------------------------ > maokx at sina.com >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150211/326f18e9/attachment.html>