[Dirvish] examining disk space usage per image...need script or rsync parameter
Richard Geoffrion
dirvish at rain4us.net
Thu Dec 29 20:11:44 UTC 2005
but I'm trying to make it easy to see what is was that got backed up and
how much disk space it is eating up. When there are so many
'brazilian'(sic) files in an image, it's hard to find out what changed.
Now... I originally composed the message below..and I'm still curious
about why DU works that way..but in finishing the last message I had the
inspiration to look at the dirvish logs. I see now that $image/log.gz
contains the files that were RSYNC'ed for each image. Does anyone have
a script that reports file sizes of the files rsync'ed in a given image
or is there a way to have dirvish add that to the log?
---originally composed message---
Subject: 'du' disk space reporting weirdness
This may be off topic..as it is probably more a general admin question
than a dirvish specific one.
I know what I'm seeing, but I don't know what it's called...so I don't
know what to GOOGLE for.... I don't even know what I'm asking so I'll
just have to explain what I see.
Here goes:
'du' calculates disk space correctly if I check the size of all of the
vaults
----
root at gwibkp:/banks/bugsbunny# du --max-depth=1 -h
1.1M ./gwifs-boot
84G ./gwifs-home
18G ./gwifm
3.5G ./gwifs-root
<snip>
6.0G ./gwiadp-d
167G .
----
'du' even calculates correctly when I check the size of each image
----
root at gwibkp:/banks/bugsbunny/gwifs-home# du --max-depth=1 -h
20K ./dirvish
43G ./2005-04-07
6.6G ./2005-06-01
3.1G ./2005-07-01
3.8G ./2005-08-01
<snip>
----
But if I go into the image directory.. 'du' calculates ALL of the disk
space of every hardlink and sums it together!
----
root at gwibkp:/banks/bugsbunny/gwifs-home/2005-06-01# du --max-depth=1 -h
41G ./tree
41G .
----
why do the first two examples calculate the size of the files that
represent the hard links and the last example calculates the actual
disk space used BY the hard links?
What am I asking?
More information about the Dirvish
mailing list