<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://kerneltrap.org"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>KernelTrap - RAID</title>
 <link>http://kerneltrap.org/taxonomy/term/572/0</link>
 <description></description>
 <language>en-local</language>
<item>
 <title>Block Data Integrity</title>
 <link>http://kerneltrap.org/Linux/Block_Data_Integrity</link>
 <description>&lt;div class=&quot;taxonomy-images&quot;&gt;&lt;a href=&quot;/news/linux&quot; class=&quot;taxonomy-image-links&quot;&gt;&lt;img src=&quot;http://kerneltrap.org/files/category_pictures/K-Linux.gif&quot; alt=&quot;Linux news&quot; title=&quot;Linux news&quot;  width=&quot;75&quot; height=&quot;75&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;!-- google_ad_section_start --&gt;&lt;p&gt;&quot;&lt;i&gt;These patches allow data integrity information (checksum and more) to be attached to I/Os at the block/filesystem layers and transferred through the entire I/O stack all the way to the physical storage device,&lt;/i&gt;&quot; &lt;a href=&quot;http://kerneltrap.org/mailarchive/linux-kernel/2008/6/7/2056354&quot;&gt;began Martin Petersen&lt;/a&gt;.  He went on to explain, &quot;&lt;i&gt;the integrity metadata can be generated in close proximity to the original data.  Capable host adapters, RAID arrays and physical disks can verify the data integrity and abort I/Os in case of a mismatch.&lt;/i&gt;&quot;  He noted that support currently only exists for SCSI disks, but that work is underway to also add support for SATA drives and SCSI tapes, &quot;&lt;i&gt;with a few minor nits due to protocol limitations the proposed SATA format is identical to the SCSI&lt;/i&gt;&quot;.  Explaining how this works, Martin continued:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&quot;SCSI drives can usually be reformatted to 520-byte sectors, yielding 8 extra bytes per sector.  These 8 bytes have traditionally been used by RAID controllers to store internal protection information.  DIF (Data Integrity Field) is an extension to the SCSI Block Commands that standardizes the format of the 8 extra bytes and defines ways to interact with the contents at the protocol level. [...]  When writing, the HBA (Host Bus Adapter) will DMA 512-byte sectors from host memory, generate the matching integrity metadata and send out 520-byte sectors on the wire.  The disk will verify the integrity of the data before committing it to stable storage.  When reading, the drive will send 520-byte sectors to the HBA.  The HBA will verify the data integrity and DMA 512-byte sectors to host memory.&quot;&lt;/p&gt;&lt;/blockquote&gt;
&lt;!-- google_ad_section_end --&gt;&lt;p&gt;&lt;a href=&quot;http://kerneltrap.org/Linux/Block_Data_Integrity&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://kerneltrap.org/Linux/Block_Data_Integrity#comments</comments>
 <category domain="http://kerneltrap.org/taxonomy/term/1279">data integrity</category>
 <category domain="http://kerneltrap.org/Linux">Linux</category>
 <category domain="http://kerneltrap.org/taxonomy/term/1278">Martin Petersen</category>
 <category domain="http://kerneltrap.org/RAID">RAID</category>
 <category domain="http://kerneltrap.org/SCSI">SCSI</category>
 <category domain="http://kerneltrap.org/news/linux">Linux news</category>
 <pubDate>Wed, 11 Jun 2008 16:46:38 +0000</pubDate>
 <dc:creator>Jeremy</dc:creator>
 <guid isPermaLink="false">16267 at http://kerneltrap.org</guid>
</item>
<item>
 <title>Btrfs 0.14, Managing Multiple Devices</title>
 <link>http://kerneltrap.org/Linux/Btrfs_0.14_Managing_Multiple_Devices</link>
 <description>&lt;div class=&quot;taxonomy-images&quot;&gt;&lt;a href=&quot;/news/linux&quot; class=&quot;taxonomy-image-links&quot;&gt;&lt;img src=&quot;http://kerneltrap.org/files/category_pictures/K-Linux.gif&quot; alt=&quot;Linux news&quot; title=&quot;Linux news&quot;  width=&quot;75&quot; height=&quot;75&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;!-- google_ad_section_start --&gt;&lt;p&gt;&quot;&lt;i&gt;Btrfs v0.14 is now available for download,&lt;/i&gt;&quot; &lt;a href=&quot;http://kerneltrap.org/mailarchive/linux-kernel/2008/4/29/1659964&quot;&gt;Chris Mason announced&lt;/a&gt;, adding, &quot;&lt;i&gt;please note the disk format has changed, and it is not compatible with older versions of Btrfs.&lt;/i&gt;&quot;  The project has gained a new &lt;a href=&quot;http://btrfs.wiki.kernel.org/index.php/Main_Page&quot;&gt;wiki home page&lt;/a&gt; on the kernel.org domain, where it is explained, &quot;&lt;i&gt;Btrfs is a new copy on write filesystem for Linux aimed at implementing advanced features while focusing on fault tolerance, repair and easy administration. Initially developed by Oracle, Btrfs is licensed under the GPL and open for contribution from anyone.&lt;/i&gt;&quot;  Regarding the latest release, Chris explained:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&quot;v0.14 has a few performance fixes and closes some races that could have allowed corrupted metadata in v0.13.  The major new feature is the ability to manage multiple devices under a single Btrfs mount.  Raid0, raid1 and raid10 are supported.  Even for single device filesystems, metadata is now duplicated by default.   Checksums are verified after reads finish and duplicate copies are used if the checksums don&#039;t match.&quot;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Chris offered links to &lt;a href=&quot;http://btrfs.wiki.kernel.org/index.php/Multi-device_Benchmarks&quot;&gt;multi-device benchmarks&lt;/a&gt; summarizing, &quot;&lt;i&gt;in general these numbers show that Btrfs does a good job at scaling to this storage configuration, and that is it on par with both HW raid and MD.&lt;/i&gt;&quot;  Looking forward, he concluded, &quot;&lt;i&gt;next up on the Btrfs todo list is finishing off the device removal and IO error handling code.  After that I&#039;ll add more fine grained locking to the btrees.&lt;/i&gt;&quot;&lt;/p&gt;
&lt;!-- google_ad_section_end --&gt;&lt;p&gt;&lt;a href=&quot;http://kerneltrap.org/Linux/Btrfs_0.14_Managing_Multiple_Devices&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://kerneltrap.org/Linux/Btrfs_0.14_Managing_Multiple_Devices#comments</comments>
 <category domain="http://kerneltrap.org/Btrfs">Btrfs</category>
 <category domain="http://kerneltrap.org/Chris_Mason">Chris Mason</category>
 <category domain="http://kerneltrap.org/filesystem">filesystem</category>
 <category domain="http://kerneltrap.org/Linux">Linux</category>
 <category domain="http://kerneltrap.org/taxonomy/term/414">Oracle</category>
 <category domain="http://kerneltrap.org/RAID">RAID</category>
 <category domain="http://kerneltrap.org/news/linux">Linux news</category>
 <pubDate>Wed, 30 Apr 2008 15:36:53 +0000</pubDate>
 <dc:creator>Jeremy</dc:creator>
 <guid isPermaLink="false">16090 at http://kerneltrap.org</guid>
</item>
<item>
 <title>Data Errors During Drive Communication</title>
 <link>http://kerneltrap.org/Linux/Data_Errors_During_Drive_Communication</link>
 <description>&lt;div class=&quot;taxonomy-images&quot;&gt;&lt;a href=&quot;/news/linux&quot; class=&quot;taxonomy-image-links&quot;&gt;&lt;img src=&quot;http://kerneltrap.org/files/category_pictures/K-Linux.gif&quot; alt=&quot;Linux news&quot; title=&quot;Linux news&quot;  width=&quot;75&quot; height=&quot;75&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;!-- google_ad_section_start --&gt;&lt;p&gt;&quot;&lt;i&gt;An ongoing study on datasets of several Petabytes have shown that there can be &#039;silent data corruption&#039; at rates much larger than one might naively expect from the expected error rates in RAID arrays and the expected probability of single bit uncorrected errors in hard disks,&lt;/i&gt;&quot; &lt;a href=&quot;http://kerneltrap.org/mailarchive/linux-kernel/2007/9/10/191697&quot;&gt;began a recent query&lt;/a&gt; on the Linux kernel mailing list asking where the errors might be introduced.  Alan Cox replied, &quot;&lt;i&gt;its almost entirely device specific at every level.&lt;/i&gt;&quot;   He then continued on with some general information, tracing the path of the data from the drive, through the cable and bus, into main memory and the CPU cache, as well as over the network, &quot;&lt;i&gt;once its crossing the PCI bus and main memory and CPU cache its entirely down to the system you are running what is protected and how much. Note that a lot of systems won&#039;t report ECC errors unless you ask.&lt;/i&gt;&quot;  Alan continued:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&quot;The next usual mess is network transfers. The TCP checksum strength is questionable for such workloads but the ethernet one is pretty good. Unfortunately lots of high performance people use checksum offload which removes much of the end to end protection and leads to problems with iffy cards and the like. This is well studied and known to be very problematic but in the market speed sells not correctness.&quot;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Regarding the specific study in question, Alan noted, &quot;&lt;i&gt;for drivers/ide there are *lots* of problems with error handling so that might be implicated (would want to do old [versus] new ide tests on the same h/w which would be very intriguing).&lt;/i&gt;&quot;&lt;/p&gt;
&lt;!-- google_ad_section_end --&gt;&lt;p&gt;&lt;a href=&quot;http://kerneltrap.org/Linux/Data_Errors_During_Drive_Communication&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://kerneltrap.org/Linux/Data_Errors_During_Drive_Communication#comments</comments>
 <category domain="http://kerneltrap.org/Alan_Cox">Alan Cox</category>
 <category domain="http://kerneltrap.org/data_corruption">data corruption</category>
 <category domain="http://kerneltrap.org/ECC">ECC</category>
 <category domain="http://kerneltrap.org/taxonomy/term/238">IDE</category>
 <category domain="http://kerneltrap.org/Linux">Linux</category>
 <category domain="http://kerneltrap.org/RAID">RAID</category>
 <category domain="http://kerneltrap.org/news/linux">Linux news</category>
 <pubDate>Wed, 12 Sep 2007 20:39:05 +0000</pubDate>
 <dc:creator>Jeremy</dc:creator>
 <guid isPermaLink="false">14363 at http://kerneltrap.org</guid>
</item>
<item>
 <title>Linux: DRBD, The Distributed Replicated Block Device</title>
 <link>http://kerneltrap.org/node/13983</link>
 <description>&lt;div class=&quot;taxonomy-images&quot;&gt;&lt;a href=&quot;/news/linux&quot; class=&quot;taxonomy-image-links&quot;&gt;&lt;img src=&quot;http://kerneltrap.org/files/category_pictures/K-Linux.gif&quot; alt=&quot;Linux news&quot; title=&quot;Linux news&quot;  width=&quot;75&quot; height=&quot;75&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;!-- google_ad_section_start --&gt;&lt;p&gt;Lars Ellenberg started an effort to get &lt;a href=&quot;http://www.drbd.org/&quot;&gt;DRBD&lt;/a&gt;, the Distributed Replicated Block Device merged into the Linux kernel.  When asked for clarification as to what it was, Lars explained, &quot;&lt;i&gt;think of it as RAID1 over TCP.  Typically you have one Node in Primary, the other as Secondary, replication target only. But you can also have both Active, for use with a cluster file system.&lt;/i&gt;&quot;  Earlier in the thread he described it as &quot;&lt;i&gt;a stacked block device driver&lt;/i&gt;&quot;.&lt;/p&gt;
&lt;p&gt;Much of the initial review focused on the need to comply with kernel coding style guidelines.  Kyle Moffett offered a much lengthier review, noting at one point in the code, &quot;&lt;i&gt;how about fixing this to actually use proper workqueues or something instead of this open-coded mess?&lt;/i&gt;&quot;  Lars replied, &quot;&lt;i&gt;unlikely to happen &#039;right now&#039;.  But it is on our todo list...&lt;/i&gt;&quot;  Jens Axboe added, &quot;&lt;i&gt;but stuff like that is definitely a merge show stopper, jfyi&lt;/i&gt;&quot;.&lt;/p&gt;
&lt;!-- google_ad_section_end --&gt;&lt;p&gt;&lt;a href=&quot;http://kerneltrap.org/node/13983&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://kerneltrap.org/node/13983#comments</comments>
 <category domain="http://kerneltrap.org/taxonomy/term/759">DRBD</category>
 <category domain="http://kerneltrap.org/HA">HA</category>
 <category domain="http://kerneltrap.org/Jens_Axboe">Jens Axboe</category>
 <category domain="http://kerneltrap.org/taxonomy/term/758">Kyle Moffett</category>
 <category domain="http://kerneltrap.org/taxonomy/term/757">Lars Ellenberg</category>
 <category domain="http://kerneltrap.org/RAID">RAID</category>
 <category domain="http://kerneltrap.org/news/linux">Linux news</category>
 <pubDate>Mon, 23 Jul 2007 18:53:55 +0000</pubDate>
 <dc:creator>Jeremy</dc:creator>
 <guid isPermaLink="false">13983 at http://kerneltrap.org</guid>
</item>
<item>
 <title>Linux:  Improving The Promise SX4 Driver</title>
 <link>http://kerneltrap.org/node/7535</link>
 <description>&lt;div class=&quot;taxonomy-images&quot;&gt;&lt;a href=&quot;/news/linux&quot; class=&quot;taxonomy-image-links&quot;&gt;&lt;img src=&quot;http://kerneltrap.org/files/category_pictures/K-Linux.gif&quot; alt=&quot;Linux news&quot; title=&quot;Linux news&quot;  width=&quot;75&quot; height=&quot;75&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;!-- google_ad_section_start --&gt;&lt;p&gt;Jeff Garzik noted that the hardware documentation for the Promise SX4 chipset is being opened up and therefor the sata_sx4 driver is a good candidate for improvements, &quot;&lt;i&gt;I would like to take this opportunity to point hackers looking for a project at this hardware.  The Promise SX4 is pretty neat, and it needs more attention than I can give, to reach its full potential.&lt;/i&gt;&quot;  He notes that it is an older chipset that&#039;s probably not sold anymore, that the ATA programming interface is similar to that in the sata_promise driver, and that it contains a fully programmable on board DIMM and on board RAID5 XOR.  Jeff went on to explain:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&quot;A key problem is that, under Linux, sata_sx4 cannot fully exploit the RAID-centric power of this hardware by driving the hardware in &#039;dumb ATA mode&#039; as it does.  A better driver would notice when a RAID1 or RAID5 array contains multiple components attached to the SX4, and send only a single copy of the data to the card (saving PCI bus bandwidth tremendously). Similarly, a better driver would take advantage of the RAID5 XOR offload capabilities, to offload the entire RAID5 read or write transaction to the card.&lt;/p&gt;
&lt;p&gt;&quot;All this is difficult within either the MD or DM RAID frameworks, because optimizing each RAID transaction requires intimate knowledge of the hardware.  We have the knowledge...  but I don&#039;t have good ideas -- aside from an SX4-specific RAID 0/1/5/6 driver -- on how to exploit this knowledge.&quot;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;!-- google_ad_section_end --&gt;&lt;p&gt;&lt;a href=&quot;http://kerneltrap.org/node/7535&quot; target=&quot;_blank&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://kerneltrap.org/node/7535#comments</comments>
 <category domain="http://kerneltrap.org/taxonomy/term/237">ATA</category>
 <category domain="http://kerneltrap.org/driver">driver</category>
 <category domain="http://kerneltrap.org/taxonomy/term/570">Jeff Grazik</category>
 <category domain="http://kerneltrap.org/Linux">Linux</category>
 <category domain="http://kerne