[Gluster-users] What is it with trusted.io-stats-dump?
g1patnaik at gmail.com
Mon Nov 13 07:14:56 UTC 2017
>From strace, I can see the system calls setxattr and getxattr.
Two things I don't understand is:
1. how does the file got created so quickly, from where it read the stats.
2.why is the added attribute missing if I check with getfattr?
On Nov 13, 2017 12:40 PM, "Amar Tumballi" <atumball at redhat.com> wrote:
On Mon, Nov 13, 2017 at 12:14 PM, Jeevan Patnaik <g1patnaik at gmail.com>
> I am trying to understand how the extended attribute trusted.io-stats-dump
> setfattr -n trusted.io-stats-dump -v /tmp/gluster_perf_stats/io-stats-pre.txt
> I can see that the io-stats-pre.txt is created. But how and what happened
> in the background?
> And why I can't I see the attribute with getfattr again?
That is because 'trusted.io-stats-dump' is one of the many Virtual key
As GlusterFS is a filesystem, the way to interact with it is through system
calls. GlusterFS has some options for debugging in-built using 'setxattr()'
and 'getxattr()' syscall interface, and they are called 'virtual keys'.
> getfattr -dm- /mnt/gluster/gv0_glusterfs
> # file: mnt/gluster/gv0_glusterfs
> trusted.glusterfs.dht.commithash="3480667945 <03480%20667%20945>"
> Gluster-users mailing list
> Gluster-users at gluster.org
Amar Tumballi (amarts)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gluster-users