Thread (3 messages) 3 messages, 2 authors, 2010-09-27

Re: RAID 5 with bad blocks

From: Carl-Johan Wägner <hidden>
Date: 2010-09-27 15:43:23

A follow up on my suggestion:
Would it be possible to copy (with 'dd') the device (/dev/sdb) with sector
errors to a fourth disk (/dev/sde) and then remove the faulty sdb-
drive and reposition the newly copied sde to sdb's position to have 
this act as the first sdb-drive, now working without any physical 
faults, even if the data is incomplete in sectors; and now being 
possible to recover the third drive (/dev/sdd1)?
'dd' is NOT the program one would want to use for this task.
"ddrescue" is the one!
NB: dd_rescue is not the same program, and may or may not work. Just note that
"apt-get install ddrescue" installs dd_rescue, not ddrescue...
ddrescue is downloaded (with e g curl) from:
# curl ftp.gnu.org/gnu/ddrescue/ddrescue-1.13.tar.gz >ddrescue-1.13.tar.gz

Having installed, copied disk to disk and swapped disks the RAID started ti
rebuild /dev/sdd1 and I have now a clean array again!

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help