Re: Drive failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In message <200305150917.21504.bjzolp@wisc.edu>, "B. J. Zolp" writes:
>On Thursday 15 May 2003 03:14, Ewen McNeill wrote:
>> - make sure you do the dd with an option to replace unreadable sectors
>>   with blank sectors (otherwise nothing will be written out for the
>>   unreadable sectors, causing everything to be "out of alignment" after
>>   the first bad block)
>
>I plan on using the noerror switch for dd, what else would I need to use to 
>make sure it replaces with blank sectors.  I could not find anything in info 
>dd or man dd.

The option I was thinking of is conv=noerror,sync

The "noerror" is "continue reading after read errors", and the "sync"
is "pad each input block with zero bytes to block size".  Possibly GNU
dd is better behaved, but my recollection is that at least some "dd"s
will happily skip over blocks they can't read given "conv=noerror" (by
assuming they just read 0 bytes that time), but result in effectively
fewer blocks written out than read in, effectively shuffling everything
after the blocks with errors down a bit.  This is, suffice to say,
a bad thing to have happen to your file system.

You might want to practice a little with copying from the disk into some
temporary location (eg outputting to /dev/null will do for this
purpose), and watch the "input blocks" and "output blocks" counts that
are reported -- if they're not the same, you're going to have a problem.

Ewen

_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux