[Gluster-users] Failed to start gluster daemon from systemd with debug option

Justin Clift justin at gluster.org
Wed Aug 6 13:05:42 UTC 2014


Btw, GlusterFS 3.4.5 was released a while ago too.  It's probably worth
considering that over 3.4.2, depending on what you are wanting to do. :)

Regards and best wishes,

Justin Clift


----- Original Message -----
> On Wed, Aug 06, 2014 at 11:00:25AM +0300, Suvendu Mitra wrote:
> > Hi,
> > When used  --debug option glusterd failed to start from systemd. with
> > following error
> > 
> > *Failed to create logfile "/dev/stderr" (No such device or address)*
> 
> I guess this is expected. Instead of --debug, you can use
> --log-level=DEBUG (or TRACE if you really want all messages).
> 
> --debug causes GlusterD to not fork, instead it continues to run in the
> foreground and writes its logs to stderr. --debug is useful for running
> glusterd on a console, not so much when starting glusterd as a service.
> 
> HTH,
> Niels
> 
> > 
> > 
> > #systemctl status glusterd.service
> > 
> > glusterd.service - GlusterFS an clustered file-system server
> >    Loaded: loaded (/usr/lib/systemd/system/glusterd.service; disabled)
> >    Active: failed (Result: exit-code) since Wed 2014-08-06 13:53:47 EEST;
> > 2min 24s ago
> >   Process: 372 ExecStart=/usr/sbin/glusterd -p /run/glusterd.pid --debug
> > (code=exited, status=255)
> > 
> > Aug 06 13:53:47 SN-0 glusterd[372]: ERROR: failed to create logfile
> > "/dev/stderr" (No such device or address)
> > Aug 06 13:53:47 SN-0 glusterd[372]: ERROR: failed to open logfile
> > /dev/stderr
> > Aug 06 13:53:47 SN-0 systemd[1]: glusterd.service: control process exited,
> > code=exited status=255
> > Aug 06 13:53:47 SN-0 systemd[1]: Failed to start GlusterFS an clustered
> > file-system server.
> > Aug 06 13:53:47 SN-0 systemd[1]: Unit glusterd.service entered failed
> > state.
> > [root at SN-0(vNE-01) /usr/lib/systemd/system]
> > 
> > -----------------------------
> > 
> > 
> > # gluster --version
> > *glusterfs 3.4.2 built on Jul 31 2014 17:06:40*
> > Repository revision: git://git.gluster.com/glusterfs.git
> > Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
> > GlusterFS comes with ABSOLUTELY NO WARRANTY.
> > You may redistribute copies of GlusterFS under the terms of the GNU General
> > Public License.
> > 
> > --------------
> > 
> > # cat glusterd.service
> > [Unit]
> > Description=GlusterFS an clustered file-system server
> > After=network.target rpcbind.service
> > Before=network-online.target
> > 
> > [Service]
> > Type=forking
> > PIDFile=/run/glusterd.pid
> > LimitNOFILE=65536
> > ExecStart=/usr/sbin/glusterd -p /run/glusterd.pid --debug
> > KillMode=process
> > 
> > [Install]
> > WantedBy=multi-user.target
> > [root at SN-0(vNE-01) /usr/lib/systemd/system]
> > #
> > 
> > 
> > 
> > 
> > -
> > Suvendu Mitra
> 
> > _______________________________________________
> > Gluster-users mailing list
> > Gluster-users at gluster.org
> > http://supercolony.gluster.org/mailman/listinfo/gluster-users
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://supercolony.gluster.org/mailman/listinfo/gluster-users
> 

-- 
GlusterFS - http://www.gluster.org

An open source, distributed file system scaling to several
petabytes, and handling thousands of clients.

My personal twitter: twitter.com/realjustinclift


More information about the Gluster-users mailing list