public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RFC: detection of silent corruption via ATA long sector reads
@ 2008-12-26 21:44 Greg Freemyer
  2008-12-26 22:15 ` Robert Hancock
  2008-12-28 22:26 ` Mark Lord
  0 siblings, 2 replies; 6+ messages in thread
From: Greg Freemyer @ 2008-12-26 21:44 UTC (permalink / raw)
  To: Redeeman; +Cc: piergiorgio.sartor, neilb, linux-raid, LKML, Mark Lord

All,

On the mdraid list, there was a recent thread about using raid
functionality to detect / repair silent corruption.

The issues brought up were that a lot of silent data corruption occurs
when cables, controllers, power supplies, ram, cache, etc. goes bad.

It made me think about another option for detecting silent corruption
I have not seen discussed, but maybe I missed it.

Aiui, the ATA spec allows for the reading of a long sector as well as
the normal 512 byte sector.  When you get a long sector you also get
the CRC (or whatever checksum data there is on the disk that allows
the drive itself to detect media errors).

I don't have any idea how easy or hard it would be to do, but I would
like to see the entire block subsystem enhanced to optionally allow
long sector reads to be used in a "paranoid" fashion.

Effectively it would be:

1) Read long sector from drive:  verify CRC in kernel.  This tests
most everything on the i/o path.

2) maintain CRC type information in block subsystem.  Verify no
corruption just before handing off to userspace.  This would
potentially identify CPU/cache/RAM failures.

Mark Lord has implemented long sector reads via hdparm.  Mark can you
comment on the feasibility of this idea?

Thanks
Greg
-- 
Greg Freemyer
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
First 99 Days Litigation White Paper -
http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf

The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com

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

* Re: RFC: detection of silent corruption via ATA long sector reads
  2008-12-26 21:44 RFC: detection of silent corruption via ATA long sector reads Greg Freemyer
@ 2008-12-26 22:15 ` Robert Hancock
  2008-12-27  0:32   ` David Lethe
  2008-12-28 22:26 ` Mark Lord
  1 sibling, 1 reply; 6+ messages in thread
From: Robert Hancock @ 2008-12-26 22:15 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-raid, linux-kernel

Greg Freemyer wrote:
> All,
> 
> On the mdraid list, there was a recent thread about using raid
> functionality to detect / repair silent corruption.
> 
> The issues brought up were that a lot of silent data corruption occurs
> when cables, controllers, power supplies, ram, cache, etc. goes bad.
> 
> It made me think about another option for detecting silent corruption
> I have not seen discussed, but maybe I missed it.
> 
> Aiui, the ATA spec allows for the reading of a long sector as well as
> the normal 512 byte sector.  When you get a long sector you also get
> the CRC (or whatever checksum data there is on the disk that allows
> the drive itself to detect media errors).
> 
> I don't have any idea how easy or hard it would be to do, but I would
> like to see the entire block subsystem enhanced to optionally allow
> long sector reads to be used in a "paranoid" fashion.
> 
> Effectively it would be:
> 
> 1) Read long sector from drive:  verify CRC in kernel.  This tests
> most everything on the i/o path.
> 
> 2) maintain CRC type information in block subsystem.  Verify no
> corruption just before handing off to userspace.  This would
> potentially identify CPU/cache/RAM failures.

Even if the drive supports those commands the problem is the CRC/ECC 
data is in a vendor-specific format, so it couldn't be processed 
generically.


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

* RE:  Re: RFC: detection of silent corruption via ATA long sector reads
  2008-12-26 22:15 ` Robert Hancock
@ 2008-12-27  0:32   ` David Lethe
  0 siblings, 0 replies; 6+ messages in thread
From: David Lethe @ 2008-12-27  0:32 UTC (permalink / raw)
  To: Robert Hancock, linux-raid; +Cc: linux-kernel

> -----Original Message-----
> From: linux-raid-owner@vger.kernel.org [mailto:linux-raid-
> owner@vger.kernel.org] On Behalf Of Robert Hancock
> Sent: Friday, December 26, 2008 4:16 PM
> To: linux-raid@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> Subject: Re: RFC: detection of silent corruption via ATA long sector
> reads
> 
> Greg Freemyer wrote:
> > All,
> >
> > On the mdraid list, there was a recent thread about using raid
> > functionality to detect / repair silent corruption.
> >
> > The issues brought up were that a lot of silent data corruption
> occurs
> > when cables, controllers, power supplies, ram, cache, etc. goes bad.
> >
> > It made me think about another option for detecting silent
corruption
> > I have not seen discussed, but maybe I missed it.
> >
> > Aiui, the ATA spec allows for the reading of a long sector as well
as
> > the normal 512 byte sector.  When you get a long sector you also get
> > the CRC (or whatever checksum data there is on the disk that allows
> > the drive itself to detect media errors).
> >
> > I don't have any idea how easy or hard it would be to do, but I
would
> > like to see the entire block subsystem enhanced to optionally allow
> > long sector reads to be used in a "paranoid" fashion.
> >
> > Effectively it would be:
> >
> > 1) Read long sector from drive:  verify CRC in kernel.  This tests
> > most everything on the i/o path.
> >
> > 2) maintain CRC type information in block subsystem.  Verify no
> > corruption just before handing off to userspace.  This would
> > potentially identify CPU/cache/RAM failures.
> 
> Even if the drive supports those commands the problem is the CRC/ECC
> data is in a vendor-specific format, so it couldn't be processed
> generically.
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid"
> in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Many of the RAID appliance/subsystem vendors format the disks to 520 or
528
Bytes/sector, but expose 512-byte blocks to the user.  The ECC logic is
done
by the firmware ... or if this ever gets implemented, would be done by
the
LINUX kernel.  True there are some issues with many of the cheap
consumer
class drives not supporting anything but 512-byte blocks, but we
shouldn't
code to lowest common denominator.

With 1TB SATA disks selling for $99, then it isn't as if the extra 8-16
bytes
for ECC on the disk drive is going to be a problem.

David




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

* Re: RFC: detection of silent corruption via ATA long sector reads
  2008-12-26 21:44 RFC: detection of silent corruption via ATA long sector reads Greg Freemyer
  2008-12-26 22:15 ` Robert Hancock
@ 2008-12-28 22:26 ` Mark Lord
  1 sibling, 0 replies; 6+ messages in thread
From: Mark Lord @ 2008-12-28 22:26 UTC (permalink / raw)
  To: Greg Freemyer; +Cc: Redeeman, piergiorgio.sartor, neilb, linux-raid, LKML

Greg Freemyer wrote:
> All,
> 
> On the mdraid list, there was a recent thread about using raid
> functionality to detect / repair silent corruption.
> 
> The issues brought up were that a lot of silent data corruption occurs
> when cables, controllers, power supplies, ram, cache, etc. goes bad.
> 
> It made me think about another option for detecting silent corruption
> I have not seen discussed, but maybe I missed it.
> 
> Aiui, the ATA spec allows for the reading of a long sector as well as
> the normal 512 byte sector.  When you get a long sector you also get
> the CRC (or whatever checksum data there is on the disk that allows
> the drive itself to detect media errors).
> 
> I don't have any idea how easy or hard it would be to do, but I would
> like to see the entire block subsystem enhanced to optionally allow
> long sector reads to be used in a "paranoid" fashion.
> 
> Effectively it would be:
> 
> 1) Read long sector from drive:  verify CRC in kernel.  This tests
> most everything on the i/o path.
> 
> 2) maintain CRC type information in block subsystem.  Verify no
> corruption just before handing off to userspace.  This would
> potentially identify CPU/cache/RAM failures.
> 
> Mark Lord has implemented long sector reads via hdparm.  Mark can you
> comment on the feasibility of this idea?
..

The ATA READ/WRITE LONG commands have been obsoleted in the past few ATA specs,
even though most drives continue to implement them.

But not a good avenue.

There's a separate effort, involving drive vendors and kernel hackers,
to provide end-to-end CRC protection of data.  I forget what it was called,
but that's the future of this stuff for high-reliability requirements.

Cheers

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

* Re: RFC: detection of silent corruption via ATA long sector reads
       [not found]     ` <87f94c370901021226j40176872h9e5723c6da4afcbe@mail.gmail.com>
@ 2009-01-02 20:43       ` Sitsofe Wheeler
  2009-01-02 21:05         ` Greg Freemyer
  0 siblings, 1 reply; 6+ messages in thread
From: Sitsofe Wheeler @ 2009-01-02 20:43 UTC (permalink / raw)
  To: Greg Freemyer
  Cc: Mark Lord, Redeeman, piergiorgio.sartor, neilb, linux-raid,
	IDE/ATA development list, linux-kernel

> Is there a more comprehensive write-up / resource that describes the
> current status of the overall INTEGRITY support is, especially as it
> relates to ATA devices?


Did you check the kernel notes on kernelnewbies when the feature went in - 
http://kernelnewbies.org/Linux_2_6_27 ?


      

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

* Re: RFC: detection of silent corruption via ATA long sector reads
  2009-01-02 20:43       ` Sitsofe Wheeler
@ 2009-01-02 21:05         ` Greg Freemyer
  0 siblings, 0 replies; 6+ messages in thread
From: Greg Freemyer @ 2009-01-02 21:05 UTC (permalink / raw)
  To: Sitsofe Wheeler
  Cc: Mark Lord, Redeeman, piergiorgio.sartor, neilb, linux-raid,
	IDE/ATA development list, linux-kernel

On Fri, Jan 2, 2009 at 3:43 PM, Sitsofe Wheeler <sitsofe@yahoo.com> wrote:
>> Is there a more comprehensive write-up / resource that describes the
>> current status of the overall INTEGRITY support is, especially as it
>> relates to ATA devices?
>
>
> Did you check the kernel notes on kernelnewbies when the feature went in -
> http://kernelnewbies.org/Linux_2_6_27 ?

Interesting read, but it does not really answer the questions I posed.

I did look through the 2.6.27 source I have handy and the only call to
blk_integrity_register() is in./drivers/scsi/sd_dif.c.

That leaves me with the impression that there are not any ATA devices
claiming support yet.

Greg
-- 
Greg Freemyer
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
First 99 Days Litigation White Paper -
http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pdf

The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com

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

end of thread, other threads:[~2009-01-02 21:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-26 21:44 RFC: detection of silent corruption via ATA long sector reads Greg Freemyer
2008-12-26 22:15 ` Robert Hancock
2008-12-27  0:32   ` David Lethe
2008-12-28 22:26 ` Mark Lord
     [not found] <fa.8mwKV7y4hm+Q6mvIKtp9QGoJYUU@ifi.uio.no>
     [not found] ` <fa.4QcsYZC0gJJwJ0eUOht3hDYaVWs@ifi.uio.no>
     [not found]   ` <49580061.9060506@yahoo.com>
     [not found]     ` <87f94c370901021226j40176872h9e5723c6da4afcbe@mail.gmail.com>
2009-01-02 20:43       ` Sitsofe Wheeler
2009-01-02 21:05         ` Greg Freemyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox