Mailinglist Archive: opensuse (1264 mails)

< Previous Next >
Re: [opensuse] file system usage?
Istvan Gabor composed on 2017-06-14 19:12 (UTC+0200):
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdc7 28G 6.1G 21G 24% /mnt1
/dev/sdc8 28G 6.7G 20G 26% /mnt2
# rsync -aHAX /mnt1/ /mnt2/
After it I get:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 50G 44G 3.5G 93% /mnt1
/dev/sdb1 50G 43G 3.7G 93% /mnt2
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 51475068 45240120 3613508 93% /mnt1
/dev/sdb1 51475068 45034476 3819152 93% /mnt2
tune2fs gives:
# tune2fs -l /dev/sda1
Free blocks: 1558737
Free inodes: 3260644
Lifetime writes: 25 GB
# tune2fs -l /dev/sdb1
Free blocks: 12855468
Free inodes: 3276789
[Lifetime writes absent]
So, after changing rsync options, the "clone" has more freespace, rather than
less, and massively more free blocks. This suggests to me sparse files are now
the primary difference, whereas before it was not preserving of hardlinks.
Secondarily it looks like access time overhead is not preserved by the selected
rsync options.

When I want a clone, I clone (raw sector copy), immediately followed by 'tune2fs
-U random -L <newlabel>' to unique the clone's UUID and volume label, and
reconfiguring bootloader and fstab(s) if applicable.
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata ***

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >