I am running ubuntu 11.4 live CD on a generic 2.5GHz Core 2 Duo with 4GB ram.
I am having some interesting issues with rsync on which I'd love some advice.
basically I am trying to clone a 2TB hard drive (that is completely full but for 10GB). The source drive is formatted with HFS+. the files are typically films and shows. between 500MB and 2GB in size. both drives are SMART verified.
I originally tried this via rsync on a windows machine (where the target drive will eventually live). the source and target drives are connected to the mobo via SATA 300 connections. they are identical drives spinning at 7200.
the target drive is formatted with NTFS (some files are too big for FAT32 and I need junction points so NTFS became necessary anyway).
I gave up with windows as only 500GB had been transferred after 24 hours.
I then moved to the linux solution I am currently using. first test was using dd to do a full disk clone using dd. this was fast - I completed the clone in about 6 hours and averaged 86MBs. This would have resulted in an HFS+ disk which would have been ok to use in windows but suboptimal. Both source and target were, of course, unmounted at the time.
However the target was not mountable in the end (missing superblock); and it also reported itself to be full afterwards. So something was going wrong with dd.
I then tried to use rsync from the mounted partitions. In the past, rsync'ing these drives on a mac (HFS+ -> HFS+) was fast. about seven hours. and subsequent rsyncs were a few minutes.
This time (HFS+ -> NTFS) the sync took about 24 hours. I then launched the process again more than two hours ago and it has not yet even finished the file comparison.
This is of concern as I intend to use these two drives in a wan sync environment where I expect about 1GB of change per week. Across ADSL this will be slow but if the file comparison takes more than an hour over directly connected drives, I don't stand a hope across the WAN.
So ... my questions are:
1. is this kind of behaviour expected?
2. is there an issue with ntfs whereby an rsync would take such a long time (I know that 8.3 filenames are created but surely that should not more than triple the transfer time)?
3. is there a better way of keeping these two drives in sync across a WAN (in fact it is iTunes libraries that reside on these drives, but iTunes API only works on entire files, no delta copy nor restart etc)
some info is pasted below, just in case it is helpful
I am having some interesting issues with rsync on which I'd love some advice.
basically I am trying to clone a 2TB hard drive (that is completely full but for 10GB). The source drive is formatted with HFS+. the files are typically films and shows. between 500MB and 2GB in size. both drives are SMART verified.
I originally tried this via rsync on a windows machine (where the target drive will eventually live). the source and target drives are connected to the mobo via SATA 300 connections. they are identical drives spinning at 7200.
the target drive is formatted with NTFS (some files are too big for FAT32 and I need junction points so NTFS became necessary anyway).
I gave up with windows as only 500GB had been transferred after 24 hours.
I then moved to the linux solution I am currently using. first test was using dd to do a full disk clone using dd. this was fast - I completed the clone in about 6 hours and averaged 86MBs. This would have resulted in an HFS+ disk which would have been ok to use in windows but suboptimal. Both source and target were, of course, unmounted at the time.
However the target was not mountable in the end (missing superblock); and it also reported itself to be full afterwards. So something was going wrong with dd.
I then tried to use rsync from the mounted partitions. In the past, rsync'ing these drives on a mac (HFS+ -> HFS+) was fast. about seven hours. and subsequent rsyncs were a few minutes.
This time (HFS+ -> NTFS) the sync took about 24 hours. I then launched the process again more than two hours ago and it has not yet even finished the file comparison.
This is of concern as I intend to use these two drives in a wan sync environment where I expect about 1GB of change per week. Across ADSL this will be slow but if the file comparison takes more than an hour over directly connected drives, I don't stand a hope across the WAN.
So ... my questions are:
1. is this kind of behaviour expected?
2. is there an issue with ntfs whereby an rsync would take such a long time (I know that 8.3 filenames are created but surely that should not more than triple the transfer time)?
3. is there a better way of keeping these two drives in sync across a WAN (in fact it is iTunes libraries that reside on these drives, but iTunes API only works on entire files, no delta copy nor restart etc)
some info is pasted below, just in case it is helpful
Code:
top - 12:57:12 up 1 day, 3:50, 10 users, load average: 0.17, 0.21, 0.22
Tasks: 153 total, 2 running, 149 sleeping, 1 stopped, 1 zombie
Cpu(s): 28.1%us, 33.1%sy, 0.0%ni, 35.9%id, 1.8%wa, 0.0%hi, 1.2%si, 0.0%st
Mem: 3085340k total, 3072040k used, 13300k free, 760568k buffers
Swap: 0k total, 0k used, 0k free, 1962848k cached
Code:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5882 root 20 0 5244 1548 796 R 53 0.1 787:02.93 mount.ntfs
6904 root 20 0 48644 2660 416 S 33 0.1 32:34.33 rsync
6902 root 20 0 48696 6468 784 S 30 0.2 29:10.06 rsync