[Gluster-devel] Statedumps as non-root can not be saved (under /var/run/gluster/...)
Niels de Vos
ndevos at redhat.com
Tue Apr 25 17:53:06 UTC 2017
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.gluster.org/pipermail/gluster-devel/attachments/20170425/f61cefb8/attachment.sig>
More information about the Gluster-devel
mailing list