linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Badblocks and degraded array.
@ 2015-03-25 23:14 Wakko Warner
  2015-03-25 23:50 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Wakko Warner @ 2015-03-25 23:14 UTC (permalink / raw)
  To: linux-raid

Firstly, I'm not in need of assistance, just looking for information.

I had a system with 4x 500gb disks in raid 5.  One drive (slot 2) was
kicked.  I removed and reseated the drive (which is OK).  During rebuild, it
hit a bad block on another drive (slot 1) which it kicked.  Is it possible
that if there's no redundancy to not kick a drive if it has a bad block?

In the end, my solution was to create a dm target using linear and zero as
needed (zero where the bad block was) then a snapshot target ontop of that
since there was no possibility to write to that section that was a zero
target.  I had LVM on top of the raid and my /usr was the one in the bad
block.  Fortunately, no files were in that bad block.  I dumped the usr
volume elsewhere, removed all the mappings (md, dm, and lvm), assembled the
array again and dumped the volume back which corrected the bad sector.  All
this was done using another installation.

This system will be retired anyway so the data isn't really useful.  But
having the experience is.

On a side note, it seems that everytime I encounter a bad sector on a drive,
it's always 8 sectors.  Does anyone know if hard drives have been 4k
sectored longer than AF drives?  This disk is 512 physical according to
fdisk.  I've even noticed this on IDE drives.

-- 
 Microsoft has beaten Volkswagen's world record.  Volkswagen only created 22
 million bugs.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Badblocks and degraded array.
  2015-03-25 23:14 Badblocks and degraded array Wakko Warner
@ 2015-03-25 23:50 ` NeilBrown
  0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2015-03-25 23:50 UTC (permalink / raw)
  To: Wakko Warner; +Cc: linux-raid

[-- Attachment #1: Type: text/plain, Size: 1694 bytes --]

On Wed, 25 Mar 2015 19:14:00 -0400 Wakko Warner <wakko@animx.eu.org> wrote:

> Firstly, I'm not in need of assistance, just looking for information.
> 
> I had a system with 4x 500gb disks in raid 5.  One drive (slot 2) was
> kicked.  I removed and reseated the drive (which is OK).  During rebuild, it
> hit a bad block on another drive (slot 1) which it kicked.  Is it possible
> that if there's no redundancy to not kick a drive if it has a bad block?

Only if you have bad-block-logs enabled.  This is a relatively new feature.

> 
> In the end, my solution was to create a dm target using linear and zero as
> needed (zero where the bad block was) then a snapshot target ontop of that
> since there was no possibility to write to that section that was a zero
> target.  I had LVM on top of the raid and my /usr was the one in the bad
> block.  Fortunately, no files were in that bad block.  I dumped the usr
> volume elsewhere, removed all the mappings (md, dm, and lvm), assembled the
> array again and dumped the volume back which corrected the bad sector.  All
> this was done using another installation.
> 
> This system will be retired anyway so the data isn't really useful.  But
> having the experience is.
> 
> On a side note, it seems that everytime I encounter a bad sector on a drive,
> it's always 8 sectors.  Does anyone know if hard drives have been 4k
> sectored longer than AF drives?  This disk is 512 physical according to
> fdisk.  I've even noticed this on IDE drives.
> 
Linux tends to do IO in multiples of 4k so it is unlikely to report a smaller
block.  That may or may not be relevant for your particular experiences.

NeilBrown


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 811 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-25 23:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-25 23:14 Badblocks and degraded array Wakko Warner
2015-03-25 23:50 ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).