[Gluster-devel] Statedumps as non-root can not be saved (under /var/run/gluster/...)

Satheesaran Sundaramoorthi sasundar at redhat.com
Wed Apr 26 01:36:46 UTC 2017


On Tue, Apr 25, 2017 at 11:23 PM, Niels de Vos <ndevos at redhat.com> wrote:

> Hi,
>
> Recently a new ability to trigger statedumps through the Gluster-CLI [0]
> has been added. This makes it possible to get statedump from
> applications that use gfapi. By default, statedumps are saved under
> /var/run/gluster/... and this directory is only writable by root.
> Applications that use gfapi do not require root permissions (like QEMU),
> and therefore fail to write the statedump :-/
>
> One approach would be to create a "gluster" group and give the group
> permissions to write to /var/run/gluster/... Other 'fixes' include
> setting ACLs on the directory so that specified users can write there.
> because many daemons have a "home directory" that does not exist, it
> probably is not a good idea to use $HOME to store statedumps.
>
> What suggestions do others have?
>
> Thanks,
> Niels
>
>
> 0. https://github.com/gluster/glusterfs/blob/master/doc/
> debugging/statedump.md
>
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at gluster.org
> http://lists.gluster.org/mailman/listinfo/gluster-devel
>

​This bug[1] is filed for this problem

[1] - https://bugzilla.redhat.com/show_bug.cgi?id=1445569​

​Thanks,
Satheesaran S ​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-devel/attachments/20170426/f5128673/attachment.html>


More information about the Gluster-devel mailing list