Sto provando a copiare tutto da una partizione del disco a un'altra, quindi ho usato:
> time sudo rsync -aE --progress /Volumes/Files/ /Volumes/xxxx\ archive
La copia impiega quasi 10 ore per circa 557 GB. Alla fine vedo:
sent 555851786605 bytes received 17096882 bytes 15585618.69 bytes/sec
total size is 553799473828 speedup is 1.00
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
Dopo aver provato diverse ricerche per trovare gli errori in un milione e mezzo di linee, trovo questo:
Apple development/ethernal Folder/__MACOSX/
Apple development/ethernal Folder/__MACOSX/Ethernal 1.2/
send_files failed to open "/tmp/.._.DS_Store.QTDkX5": No such file or directory
send_files failed to open "/tmp/.._Read-me.rtf.TFnOeF": No such file or directory
Apple development/ethernal Folder/__MACOSX/Ethernal 1.2/Source/
send_files failed to open "/tmp/.._.DS_Store.j5YUu5": No such file or directory
send_files failed to open "/tmp/.._EthernalIcon.icns.JBXisF": No such file or directory
send_files failed to open "/tmp/.._Read-me.rtf.GFp1z0": No such file or directory
Apple development/ethernal Folder/__MACOSX/Ethernal 1.2/Source/Doc/
send_files failed to open "/tmp/.._.DS_Store.WbalMH": No such file or directory
send_files failed to open "/tmp/.._Ethernet Type Codes.webloc.G2KRaL": No such file or directory
send_files failed to open "/tmp/.._Ethernet- IEEE 802.3 Local Area Network (LAN) protocols Overview.webloc.Yerfpk": No such file or directory
send_files failed to open "/tmp/.._IP Protocol. Description and Packet Format.webloc.xscjxl": No such file or directory
send_files failed to open "/tmp/.._Internet Protocol (IP).webloc.KecBNl": No such file or directory
send_files failed to open "/tmp/.._gethostbyaddr - Linux Command - Unix Command-1.webloc.Kh5hkS": No such file or directory
Apple development/ethernal Folder/__MACOSX/Ethernal 1.2/Source/Library/
send_files failed to open "/tmp/.._.DS_Store.O7hunu": No such file or directory
Apple development/ethernal Folder/__MACOSX/Ethernal 1.2/Source/Library/MoreAuthSample/
send_files failed to open "/tmp/.._.DS_Store.Sg5lY7": No such file or directory
send_files failed to open "/tmp/.._MoreSetup.h.wQB79W": No such file or directory
Apple development/ethernal Folder/__MACOSX/Ethernal 1.2/Source/Library/MoreAuthSample/MoreCFQ/
send_files failed to open "/tmp/.._MoreCFQ.c.ftZTAb": No such file or directory
send_files failed to open "/tmp/.._MoreCFQ.h.kA3Dvb": No such file or directory
Apple development/ethernal Folder/__MACOSX/Ethernal 1.2/Source/Library/MoreAuthSample/MoreSecurity/
send_files failed to open "/tmp/.._.DS_Store.79V4Rd": No such file or directory
send_files failed to open "/tmp/.._MoreSecurity.c.rjTB8I": No such file or directory
send_files failed to open "/tmp/.._MoreSecurity.h.6qJ5qq": No such file or directory
send_files failed to open "/tmp/.._ReadMeAboutMoreAuthSample.html.zgJcn5": No such file or directory
Apple development/ethernal Folder/__MACOSX/Ethernal 1.2/Source/Library/MoreAuthSample/MoreSecurity/MoreSecurityTest/
send_files failed to open "/tmp/.._.DS_Store.WvdnjK": No such file or directory
Apple development/ethernal Folder/__MACOSX/Ethernal 1.2/Source/Library/MoreAuthSample/MoreUNIX/
send_files failed to open "/tmp/.._MoreUNIX.c.668o9B": No such file or directory
send_files failed to open "/tmp/.._MoreUNIX.h.iRddoe": No such file or directory
Apple development/ethernal Folder/__MACOSX/Ethernal 1.2/Source/Library/Utils/
send_files failed to open "/tmp/.._.DS_Store.Q28weF": No such file or directory
send_files failed to open "/tmp/.._BPFLib.c.E9bRiY": No such file or directory
send_files failed to open "/tmp/.._BPFLib.h.a8mV9m": No such file or directory
send_files failed to open "/tmp/.._GetEthernetAddrSample.c.Jm1Zsk": No such file or directory
send_files failed to open "/tmp/.._GetEthernetAddrSample.h.vRsMMZ": No such file or directory
Apple development/ethernal Folder/__MACOSX/Ethernal 1.2/Source/Source/
send_files failed to open "/tmp/.._.DS_Store.Xhfs5P": No such file or directory
Applications (Mac OS 9)/.DS_Store
15364 100% 100.70kB/s 0:00:00 (xfer#3929, to-check=840194/844693)
e questo:
Archive/xxx/Downloads/Applications/File tools/FileSalvage.dmg Folder/__MACOSX/
send_files failed to open "/tmp/.._FileSalvage.dmg.mRiI07": No such file or directory
e questo:
other files/Users-old/xxx/Downloads/Applications/File tools/FileSalvage.dmg Folder/__MACOSX/
send_files failed to open "/tmp/.._FileSalvage.dmg.b68sLq": No such file or directory
Quindi, la mia domanda è: perché questi file non sono riusciti a copiare, e in secondo luogo, perché usa / tmp /? (Sto usando rsync 2.6.9 su Mac OS X 10.7.5)
Non ci sono problemi con i permessi, perché ho eseguito la copia con 'sudo', e in realtà ho provato anche con e senza autorizzazioni sulla partizione montata. All'inizio ho pensato che potesse essere l'interferenza di un cron job che stava pulendo le directory mentre stavo facendo girare la copia durante la notte. Ho provato di nuovo la copia:
> time sudo rsync -aE --inplace /Volumes/Files/ /Volumes/xxxx\ archive
e la copia non è riuscita esattamente sugli stessi 31 file (con o senza "--inplace").
Ho provato a guardare un paio di file nella partizione di origine, e sebbene "più" dicessero che potrebbero essere binari, non ha avuto difficoltà a trasmetterli allo schermo. La copia di destinazione è un po 'più grande della sorgente; Non penso che ciò sia dovuto alla compressione nella sorgente, perché i file nella sorgente sono stati tutti scritti in Mac OS X 10.5.8 o precedenti, che penso sia prima della compressione perché disponibile. Penso che la differenza di dimensioni potrebbe essere dovuta alla scrittura di spotlight sul disco?
L'errore non viene riportato nella lettura del file originale, ma durante la lettura di un file / tmp, ma l'impostazione predefinita è di mettere la copia nella destinazione, non su / tmp, quindi non dovrebbe usare / tmp.
L'errore è completamente riproducibile, quindi qualsiasi idea su cosa è sbagliato o su come diagnosticare il problema?