delete-during and I/O errors

Kevin Korb kmk at
Sat Nov 24 12:13:59 MST 2012

Hash: SHA1

Rsync should stop deleting as soon as it hits an error unless you are
using --force or --ignore-errors.

Also, set these in /etc/lvm/lvm.conf:
    snapshot_autoextend_threshold = 80
    snapshot_autoextend_percent = 20

That will auto-extend your snapshots so they don't fill up (unless of
course you run out of space).

On 11/24/12 05:56, Gareth Babb wrote:
> I've implemented a backups system and have come across a problem
> with delete-during and I/O errors.
> Currently I use a wrapper round rsync to create a LVM snapshot and
> rsync the snapshot, this works except that when the snapshot
> threshhold is exceeded LVM removes the snapshop, the mount fails
> and I/O errors happen.
> This is ok, except with delete-during I'm getting instances of
> rsync thinking the files are deleted (though it does know I/O
> errors are happening and reports them), and thus deleting them on
> the receiver side. This is not good.
> I've resorted to delete-after (which happily refuses to delete as
> I/O errors have taken place), but does anyone have any clues for
> fixing this with delete-during ?
> I'm using 3.0.8, but I can't see anything relevant in the changes
> for 3.0.9.

- -- 
	Kevin Korb			Phone:    (407) 252-6853
	Systems Administrator		Internet:
	FutureQuest, Inc.		Kevin at  (work)
	Orlando, Florida		kmk at (personal)
	Web page:
	PGP public key available on web site.
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


More information about the rsync mailing list