On Sun, Jan 27, 2008 at 10:10:31PM +0100, Stefan Knoll wrote:
> Hi,
> 
> yes server and client are runnning on the same machine. The files which 
> get backed up are on an ext3 filesystem and the disk where the snapshots 
> get written to is a reiserfs filesystem.
> You're right, if I check the size for each snapshot it shows me around 
> 3.6GB, if I check the size via du for the bank incl. all the daily 
> snapshots it also shows me 3.6GB.
> What I find a bit strange, and that's why I initially noticed it is, 
> that df shows the space as occupied, e.g. after each run, 3,6GB are gone.
> 
> Regards
> Stefan

If df is showing the space used as 3.6GB day one, 7.2GB day two,
etc., then no hard-linking is going on.  Useful tools to figure out
what is going on include "ls -l", which shows how many hard links 
are made to each file.  Here is a fragment from .../tree/etc/ :

-rw-r--r--  2 root root      45 Jan  2 09:07 adjtime
-rw-r--r--  2 root root    6523 Jan  2 09:07 asound.state
-rw-------  5 root root    2479 Dec 21 11:49 autofs_ldap_auth.conf
            ^ this is the number of hard links

Note that adjtime and asound.state are linked 2 times in the backup
set, while autofs_ldap_auth.conf is linked 5 times.  Many files are
linked more than 100 times.  I rotate backup drives, or the numbers
would be a lot larger for those change dates.

If you show a lot of linked once or linked twice files of the same
name in different backup trees, then use diff to see if the files are
the same, and check the dates.  If there is some other process changing
the dates on all your files, then rsync will make new copies of the data
even if the data is the same.  It will copy the data on the local disk,
probably, because there are no change bytes to send over the network.

You should also look at the log and summary files for each image.
Sometimes there are clues there.   Here is the tail end of one of
my summary files:

------------------------------------------
...
ACTION: rsync -vrltH --delete -pgo --stats -D --numeric-ids -x --exclude-from=/b
ackup/dirvish//root/ohm-2008-0127-0443/exclude --link-dest=/backup/dirvish//root
/ohm-2008-0118-0540/tree ohm:// /backup/dirvish//root/ohm-2008-0127-0443/tree
Backup-begin: 2008-01-27 04:43:12
Backup-complete: 2008-01-27 04:48:14
Status: success
------------------------------------------

Here is a fragment from the associated log file:

------------------------------------------
...
Number of files: 164248
Number of files transferred: 380
Total file size: 7733811291 bytes
Total transferred file size: 143702665 bytes
Literal data: 43404326 bytes
Matched data: 100298339 bytes
File list size: 4098935
File list generation time: 21.829 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 451054
Total bytes received: 47769979

sent 451054 bytes  received 47769979 bytes  167725.33 bytes/sec
total size is 7733811291  speedup is 160.38
...
------------------------------------------

If you don't see behavior approximately like that, perhaps you can
share some fragments of your log and summary files with us.  Don't 
send the complete files -- too much to read!

Keith

-- 
Keith Lofstrom          [EMAIL PROTECTED]         Voice (503)-520-1993
KLIC --- Keith Lofstrom Integrated Circuits --- "Your Ideas in Silicon"
Design Contracting in Bipolar and CMOS - Analog, Digital, and Scan ICs
_______________________________________________
Dirvish mailing list
[email protected]
http://www.dirvish.org/mailman/listinfo/dirvish

Reply via email to