Suvendu Mitra
2014-Aug-06 08:00 UTC
[Gluster-users] Failed to start gluster daemon from systemd with debug option
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)* #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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20140806/2e7b11fc/attachment.html>
Niels de Vos
2014-Aug-06 12:59 UTC
[Gluster-users] Failed to start gluster daemon from systemd with debug option
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