xfs
[Top] [All Lists]

Usage bigger after copy?

To: xfs@xxxxxxxxxxx
Subject: Usage bigger after copy?
From: Michael Monnerie <michael.monnerie@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 15 Oct 2012 20:07:34 +0200
Organization: it-management http://it-management.at
User-agent: KMail/4.8.5 (Linux/3.5.1-zmi; KDE/4.8.5; x86_64; ; )
I know that the speculative prealloc of xfs can make files bigger on a
destination, but I thought an "echo 3 >/proc/sys/vm/drop_caches" would
help. I even umounted both filesystems, but the destination is bigger:

sys1 Blocks 8378368 Used 2631368 Avail 5747000
sys2 Blocks 8378368 Used 2966566 Avail 5411812

Both are VMs, have a 16G disk, partitioned same size, both on LVM,
copied with rsync. xfs_info show the same for both:

meta-data=/dev/mapper/dns1--system-root isize%6    agcount=4,
agsizeR4288 blks
         =                       sectszQ2   attr=2
data     =                       bsize@96   blocks 97152, imaxpct%
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize@96   ascii-ci=0
log      =internal               bsize@96   blocks%60, version=2
         =                       sectszQ2   sunit=0 blks, lazy-count=1
realtime =none                   extsz@96   blocks=0, rtextents=0

So why is there such a huge diff in size? 300M, 2.6G:2.9G, is a big
number. I found these dirs to be very different:

( I rebooted here compared to results before, but same strangeness )
# du -s /1/usr/lib/locale/* /usr/lib/locale/*|sort -n|grep YU
20      /usr/lib/locale/sh_YU.utf8
1760    /1/usr/lib/locale/sh_YU.utf8

But comparing them directly, they are the same:

# du -s /1/usr/lib/locale/sh_YU.utf8 /usr/lib/locale/sh_YU.utf8
1760    /1/usr/lib/locale/sh_YU.utf8
1760    /usr/lib/locale/sh_YU.utf8

So what makes "du" show a huge different when the dir above gets
scanned, versus when you compare dirs directly?

--
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc

it-management Internet Services: Protéger
http://proteger.at [gesprochen: Prot-e-schee]
Tel: +43 660 / 415 6531

Attachment: signature.asc
Description: This is a digitally signed message part.

<Prev in Thread] Current Thread [Next in Thread>