I have lots of data on /mnt/data1. I want to copy it all to a partition on an external hard disk. Both partitions are the same size and I am almost sure they were formatted with the exact same parameters (ext4). But I am using rsync and running out of space on the target file system before the copy is done.
Some info on the issue:
Code:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/data1 230G 226G 1.5G 100% /mnt/data1
/dev/mapper/backup 230G 230G 0 100% /media/backup
Code:
# rsync -aHxvz --delete-before /mnt/data1/* /media/backup/
rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync: write failed on "/media/backup/vms/Lin-Mint.vmdk": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(322) [receiver=3.0.8]
rsync: connection unexpectedly closed (33 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [sender=3.0.8]
Note the target partition is completely full, but there was more than 10 GB free before I ran the operation. Also, the --delete option in rsync should delete from the target FS everything that is no longer present in the source FS. The idea obviously is to update the target partition so it is a perfect clone of the source partition.
Now some info on the file systems themselves:
Code:
Filesystem volume name: data1
Last mounted on: /mnt/data1
Filesystem UUID: b7b86639-whatever
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags: signed_directory_hash
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 15267328
Block count: 244275296
Reserved block count: 2442752
Free blocks: 9545177
Free inodes: 14404676
First block: 1
Block size: 1024
Fragment size: 1024
Reserved GDT blocks: 256
Blocks per group: 8192
Fragments per group: 8192
Inodes per group: 512
Inode blocks per group: 128
Flex block group size: 16
Filesystem created: Mon Oct 15 01:18:34 2012
Last mount time: Mon Dec 3 06:48:09 2012
Last write time: Mon Dec 3 06:48:09 2012
Mount count: 14
Maximum mount count: 21
Last checked: Wed Nov 21 07:03:13 2012
Check interval: 15552000 (6 months)
Next check after: Mon May 20 06:03:13 2013
Lifetime writes: 237 GB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory hash: half_md4
Journal backup: inode blocks
Journal features: journal_incompat_revoke
Journal size: 32M
Journal length: 32768
Journal sequence: 0x000054f9
Journal start: 15732
Code:
Filesystem volume name: backup
Last mounted on: /media/backup
Filesystem UUID: acf7d8b8-8457-whatever
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recover
y extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags: signed_directory_hash
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 15267328
Block count: 244275296
Reserved block count: 2442752
Free blocks: 244401
Free inodes: 14393940
First block: 1
Block size: 1024
Fragment size: 1024
Reserved GDT blocks: 256
Blocks per group: 8192
Fragments per group: 8192
Inodes per group: 512
Inode blocks per group: 128
Flex block group size: 16
Filesystem created: Fri Oct 12 11:19:06 2012
Last mount time: Wed Dec 12 02:39:35 2012
Last write time: Wed Dec 12 02:39:35 2012
Mount count: 7
Maximum mount count: 25
Last checked: Fri Oct 12 11:19:06 2012
Check interval: 15552000 (6 months)
Next check after: Wed Apr 10 11:19:06 2013
Lifetime writes: 278 GB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory hash: half_md4
Journal backup: inode blocks
Journal features: journal_incompat_revoke
Journal size: 32M
Journal length: 32768
Journal sequence: 0x0000372c
Journal start: 9767
Any ideas?