hard drive failure - How to make rsync wait less time for corrupted files to download -


i'm trying rsync ten thousand files 1 machine failing disk machine in condition. file transfer speed great when files aren't corrupted, disk failing, there number of cases rsync hanging waiting disk think whether or not can send file.

is there way tell rsync --dont-wait-for-slow-files or that? alternatively, there way remount disk partition not try long , hard retrieve data? mean, if i'm not going file anyway, i'd rather skip next file.

an example of disk errors spewing out source machine's log:

buffer i/o error on dev sda4, logical block <some number>, async page read

there not (to knowledge), because rsync operating @ filesystem level, , filesystem drivers (by default, circumstances) designed try , recover when error reached, not fail , move on.

dd has noerror option can use image failing drive location (e.g. .img file on known-good spare local disk) locally on remote machine, , mount filesystem off copy rsync instead.

i have notes on subject (including references dd handling failing drives) on old blog post.


updated note: if drive failing, i'd advise performing low-level (and low-stress) copy (e.g. dd) asap. tools rsync labour disk unnecessarily, , possibly speed complete failure.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -