Hi Grigory,
When a report is titled "space used", it is "512* blocks"
When it is "size" or "volume", it is based on file sizes as displayed by
stat or ls.
> rbh-report -i
type , count, volume, avg_size
dir , 25143, 5.41 GB, 225.71 KB
file , 25144, 5.42 GB, 226.09 KB
volume is based on size
> rbh-report -u root
user , type, count, spc_used, avg_size
root , file, 1, 10.00 MB, 10.00 MB
spc_used is based on blocks
> rbh-report --top-user
rank, user , spc_used, count, avg_size
1, root , 10.00 MB, 1, 10.00 MB
2, user118 , 736.00 KB, 184, 226.13 KB
3, user132 , 736.00 KB, 184, 226.82 KB
4, user24 , 736.00 KB, 184, 224.61 KB
5, user68 , 736.00 KB, 184, 224.69 KB
spc_used is based on blocks
On 01/12/15 19:48, Grigory Shamov wrote:
Dear Robinhood users and developers,
I've encountered another thing: sparse files. When scanning a NFS
filesystem I've found a file reported to have 2TB size by rbh-report.
It was a sparse file though, not a real 2TB one:
[root@myhost]# stat
myfilename
File:
`myfilename'
Size: 2196003979264Blocks: 337664 IO Block: 1048576 regular file
Device: 16h/22dInode: 3735378 Links: 1
Access: (0664/-rw-rw-r--) Uid: (100101/myuser) Gid: (100101/myuser)
Access: 2014-02-19 22:06:37.128304863 -0600
Modify: 2012-10-04 16:29:00.000000000 -0500
Change: 2014-01-03 16:36:32.369687879 -0600
[root@myhost]# du -s –m myfile
myfile
165myfile
How does Robinhood report/collect the file usage data? Does it go by
"Size:" in stat, or by 512*"Blocks"? Results can be vastly different
for the individual files as this example shows. Is the overall
filesystem usage counted by the nominal sizes or used blocks? Is there
any scan/report options to chose one way over another?
Thanks!
--
Grigory Shamov
Westgrid/ComputeCanada Site Lead
University of Manitoba
E2-588 EITC Building,
(204) 474-9625
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
www.gigenet.com
_______________________________________________
robinhood-support mailing list
robinhood-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/robinhood-support
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
robinhood-support mailing list
robinhood-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/robinhood-support