sync prob with big files

Kevin Korb kmk at sanitarium.net
Sat Dec 10 15:38:22 MST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It is saying that it can't chown the files because the filesystem
doesn't support ownerships.  This is a drawback of using -a when not
all of the features of -a will work.  I suggest swapping -a
(--archive) with -rt (--recursive and --times).

Also, did you run out of disk space?  Is there enough available space
to store a temporary copy of the file being copied?  If not then look
into --inplace.

On 12/10/11 09:48, fuzzy_4711 wrote:
> Hi list.
> 
>> I gave it another try and started it after ssh to the box using
>> this command: nohup
>> ./ic_scripts/executedByCron/sync_NAS_devices.sh >> 
>> /var/log/rsync.log 2>&1 &
>> 
>> This is what I got now: -rwxrwxrwx 1 bacula pulse    157810688
>> Dec  9  2011 .bkp-nas-0002.Ysteoo
>> 
>> This must be what you expect as a regular rsync temp file name, I
>> guess.
>> 
>> The file is growing. Let's wait and see, I'll report later.
> 
> I still get an exit code 1 for my rsync call in the shell script. 
> Nevertheless I got some output from redirecting to
> /var/log/rsync.log. Here it is:
> 
> rsync: failed to set times on 
> "/mnt/NAS_192.168.1.8_FOR_SYNC/backup_sync_from_1.9_to_1.8/bkp-nas-0003":
> Invalid argument (22) rsync: failed to set times on 
> "/mnt/NAS_192.168.1.8_FOR_SYNC/backup_sync_from_1.9_to_1.8/bkp-nas-0004":
> Invalid argument (22) rsync: writefd_unbuffered failed to write 4
> bytes to socket [sender]: Broken pipe (32) rsync: close failed on 
> "/mnt/NAS_192.168.1.8_FOR_SYNC/backup_sync_from_1.9_to_1.8/.bkp-nas-0002.Ysteoo":
>
> 
Input/output error (5)
> rsync error: error in file IO (code 11) at receiver.c(731)
> [receiver=3.0.7] rsync: connection unexpectedly closed (53 bytes
> received so far) [sender] rsync error: error in rsync protocol data
> stream (code 12) at io.c(601) [sender=3.0.7]
> 
> FYI: The files bkp-nas-003/4 are there already (at the target). The
> tmp file (*0002*), written by rsync is gone. On my last manual
> check, the file size of the tmp file almost reached the size of the
> source file.
> 
> I decided to run a test on a much smaller file set. Exit code is 1 
> again. BUT, the files are all synced to the target. The whole dir
> and scripts are 188K only. Here is my log for that:
> 
> rsync: chown 
> "/mnt/NAS_192.168.1.8_FOR_SYNC/backup_sync_from_1.9_to_1.8/sl-test/."
>
> 
failed: Invalid argument (22)
> rsync: chown 
> "/mnt/NAS_192.168.1.8_FOR_SYNC/backup_sync_from_1.9_to_1.8/sl-test/executedByCron"
>
> 
failed: Invalid argument (22)
> rsync: failed to set times on 
> "/mnt/NAS_192.168.1.8_FOR_SYNC/backup_sync_from_1.9_to_1.8/sl-test/.tuning_primer.sh.Eca4xb":
>
> 
Invalid argument (22)
> rsync: failed to set times on 
> "/mnt/NAS_192.168.1.8_FOR_SYNC/backup_sync_from_1.9_to_1.8/sl-test/executedByCron/.crontab_dump.sh.Iz8MrN":
>
> 
Invalid argument (22)
> rsync: failed to set times on 
> "/mnt/NAS_192.168.1.8_FOR_SYNC/backup_sync_from_1.9_to_1.8/sl-test/executedByCron/.mysql_backup_databases.sh.cUq3mp":
>
> 
Invalid argument (22)
> rsync: failed to set times on 
> "/mnt/NAS_192.168.1.8_FOR_SYNC/backup_sync_from_1.9_to_1.8/sl-test/executedByCron/.mysql_flush_and_move.sh.aepRj1":
>
> 
Invalid argument (22)
> rsync: failed to set times on 
> "/mnt/NAS_192.168.1.8_FOR_SYNC/backup_sync_from_1.9_to_1.8/sl-test/executedByCron/.remove_files_older_than_keep_days.sh.QMwciD":
>
> 
Invalid argument (22)
> rsync: failed to set times on 
> "/mnt/NAS_192.168.1.8_FOR_SYNC/backup_sync_from_1.9_to_1.8/sl-test/executedByCron/.sync_NAS_devices.sh.w7I7hf":
>
> 
Invalid argument (22)
> rsync: failed to set times on 
> "/mnt/NAS_192.168.1.8_FOR_SYNC/backup_sync_from_1.9_to_1.8/sl-test/executedByCron/.sync_NAS_devices.sh.old.yvSEjR":
>
> 
Invalid argument (22)
> rsync error: some files/attrs were not transferred (see previous
> errors) (code 23) at main.c(1042) [sender=3.0.7]
> 
> Does anybody know what Invalid argument (22) would like to tell? 
> Thank you.
> 
> 
> -fuz
> 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
	Kevin Korb			Phone:    (407) 252-6853
	Systems Administrator		Internet:
	FutureQuest, Inc.		Kevin at FutureQuest.net  (work)
	Orlando, Florida		kmk at sanitarium.net (personal)
	Web page:			http://www.sanitarium.net/
	PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7j314ACgkQVKC1jlbQAQcxYwCgm2jKSUN7kFKVM+FfLWuH/ELe
YT8AoJlsjgZ8nvRS0QhjSPQLLldfVAuo
=wvQ7
-----END PGP SIGNATURE-----


More information about the rsync mailing list