Thanks, anyone has the script or a example script and I can change it
for my requirement.
> Hi!
>
> To be honest there is no optimal method to measure it. There is "mfsdirinfo"
> which returns occupied space but it gives wrong results in case of snapshots
> (and hard links to be precise). So if one i-node in a subtree occurs twice
> (as in hard link) it would be also counted twice. Similarly if a chunk (in
> case of snapshot) occurs twice it would be also counted twice.
>
> One could probably try to write a special script which would calculate it
> precisely using information in metadata.
>
>
> Kind regards
> Michał Borychowski
> MooseFS Support Manager
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> Gemius S.A.
> ul. Wołoska 7, 02-672 Warszawa
> Budynek MARS, klatka D
> Tel.: +4822 874-41-00
> Fax : +4822 874-41-01
>
>
>
> -----Original Message-----
> From: youngcow [mailto:you...@gm...]
> Sent: Tuesday, February 08, 2011 7:43 AM
> To: moosefs-users
> Subject: [Moosefs-users] how to calculate the space used by snapshot
>
> Hello!
>
> I'm testing MooseFs. I have a question about snapshot.
> When I make a snapshot for a directory such as dir1, the snapshot don't
> use disk space.But when I change the source dir1's content(such as
> change the content of a file), the snapshot will use the disk space.
> Now I want to calcuate the disk space usage for snapshot, I can't find
> the method.
>
> Thanks.
>
> ----------------------------------------------------------------------------
> --
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> moosefs-users mailing list
> moo...@li...
> https://lists.sourceforge.net/lists/listinfo/moosefs-users
>
|