NetBSD-Users archive

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

Re: NetBSD disk got bad sectors. What is the best course of action?




On Wed, Jul 3, 2013 at 5:31 PM, Stephen Borrill <netbsd%precedence.co.uk@localhost> wrote:
I may be wrong, but I think the swap to a reserved sector only happens on a write operation. So reads will fail until you attempt to write back at which point future reads will succeed. With RAIDframe, the initial read failure fails the whole component and no writeback is automatically attempted (too bad as it could just copy from the rest of the array).

So if you know failed sector numbers, you could reallocate them by using dd if=/dev/zero seek=N count=1 (where N is the sector number) and then re-fsck.

The last time I did this, I first had to disable the disk's write cache for it to work.
 
dieter



If using RAIDframe, usually just the rebuild of the RAID array with -R is sufficient.

--
Stephen




Home | Main Index | Thread Index | Old Index