<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr">On Tue, Apr 25, 2017 at 11:23 PM, Niels de Vos <span dir="ltr"><<a href="mailto:ndevos@redhat.com" target="_blank">ndevos@redhat.com</a>></span> wrote:<br></div></div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Recently a new ability to trigger statedumps through the Gluster-CLI [0]<br>
has been added. This makes it possible to get statedump from<br>
applications that use gfapi. By default, statedumps are saved under<br>
/var/run/gluster/... and this directory is only writable by root.<br>
Applications that use gfapi do not require root permissions (like QEMU),<br>
and therefore fail to write the statedump :-/<br>
<br>
One approach would be to create a "gluster" group and give the group<br>
permissions to write to /var/run/gluster/... Other 'fixes' include<br>
setting ACLs on the directory so that specified users can write there.<br>
because many daemons have a "home directory" that does not exist, it<br>
probably is not a good idea to use $HOME to store statedumps.<br>
<br>
What suggestions do others have?<br>
<br>
Thanks,<br>
Niels<br>
<br>
<br>
0. <a href="https://github.com/gluster/glusterfs/blob/master/doc/debugging/statedump.md" rel="noreferrer" target="_blank">https://github.com/gluster/<wbr>glusterfs/blob/master/doc/<wbr>debugging/statedump.md</a><br>
<br>______________________________<wbr>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-devel</a><br></blockquote></div><br></div><div class="gmail_extra"><div class="gmail_default" style="font-family:monospace,monospace">This bug[1] is filed for this problem</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">[1] - <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1445569">https://bugzilla.redhat.com/show_bug.cgi?id=1445569</a></div><br></div><div class="gmail_extra"><div class="gmail_default" style="font-family:monospace,monospace">Thanks,</div><div class="gmail_default" style="font-family:monospace,monospace">Satheesaran S </div><br></div></div>