Print

Print


On 30.01.2014 11:32, Adrian Sevcenco wrote:
> Hi! I try to find out space usage statistics (total/used/free -
> preferably in 4k blocks) with xrdfs but the help is not very clear.
> space          <space>  Logical space stats
> stats          <what>   Server stats
>
> [root@grid04 ~]# xrdfs rd.spacescience.ro query space /
> 5 3097 78 5 3097 78
>
> this does not give me space information .. given that the output is
> similar with statvfs i imagine that the meaning of numbers are the same:

The output of 'query space' is implementation dependent. In pure xrootd 
you get:

]==> xrdfs metaman query space /data
2 13 31 2 13 31

In EOS you get:

]==> xrdfs eosatlas query space /
oss.cgroup=default&oss.space=18747277867692032&oss.free=4341978005811200&oss.maxf=68719476736&oss.used=14405299861880832&oss.quota=18747277867692032

> [root@grid04 ~]# xrdfs rd.spacescience.ro statvfs /
> Path:                             /
> Nodes with RW space:              5
> Size of RW space (MB):            3097
> Utilization of RW space (%):      78
> Nodes with staging space:         5
> Size of staging space (MB):       3097
> Utilization of staging space (%): 78

    Isn't it what you need, except that in MB and %?

> for that stats part that <what> have no explanations...
> i tried to use ids from the xml output of :
> xrdfs rd.spacescience.ro query stats all
> So .. is there some documentation more informative about usage of xrdfs
> and retrieving the info from a redirector?

    Thanks for pointing this out. I will put the relevant info in the 
help message and the man page. In the mean time you can look here (the 
arg parameter):

http://xrootd.org/doc/dev4/XRdv300.htm#_Toc372751559

Cheers,
    Lukasz

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1