<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://www.stress-free.co.nz"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>stressfree - raid</title>
 <link>https://www.stress-free.co.nz/tech/raid</link>
 <description></description>
 <language>en</language>
<item>
 <title>Tuning Ubuntu&#039;s software RAID</title>
 <link>https://www.stress-free.co.nz/tuning_ubuntus_software_raid</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
    &lt;p&gt;Recently I encountered an issue where the read/write performance of Ubuntu&#039;s software RAID configuration was relatively poor. Fortunately, others have encountered this problem and have documented a potential cause and solution here:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://randomitblog.blogspot.com/2009/10/ubuntu-raid-tweak.html&quot;&gt;Ubuntu RAID Tweak&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://peterkieser.com/2009/11/29/raid-mdraid-stripe_cache_size-vs-write-transfer/&quot;&gt;Linux RAID mdraid &quot;stripe_cache_size&quot; vs. transfer rate&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The short story is that Ubuntu uses some very conservative defaults for RAID caching. Whilst this may ensure reliable behavior across a range of hardware, it does mean that for many read/write performance will be lacklustre. The solution to this problem is to define a more aggressive caching options on any software RAID partitions that are in use.&lt;/p&gt;&lt;!--break--&gt;&lt;h3&gt;Setting the stripe_cache_size and read ahead caches&lt;/h3&gt;&lt;p&gt;The following example assumes that the Ubuntu server has two software-based RAID-5 partitions, &lt;strong&gt;/dev/md0&lt;/strong&gt; (the root partition) and &lt;strong&gt;/dev/md1&lt;/strong&gt; (the /var partition).&lt;/p&gt;&lt;p&gt;Set the stripe_cache_size and read ahead caches in the &lt;strong&gt;/etc/rc.local&lt;/strong&gt; script. In the example below the stripe_cache_size is set to 8192, and the read ahead cache 4096:&lt;/p&gt;&lt;p class=&quot;codesnippet&quot;&gt;#!/bin/sh -e&lt;br /&gt;#&lt;br /&gt;# rc.local&lt;br /&gt;#&lt;br /&gt;# This script is executed at the end of each multiuser runlevel.&lt;br /&gt;# Make sure that the script will &quot;exit 0&quot; on success or any other&lt;br /&gt;# value on error.&lt;br /&gt;#&lt;br /&gt;# In order to enable or disable this script just change the execution bits.&lt;br /&gt;#&lt;br /&gt;# By default this script does nothing.&lt;br /&gt;&lt;br /&gt;# Tune the RAID5 configuration&lt;br /&gt;echo 8192 &amp;gt; /sys/block/md0/md/stripe_cache_size&lt;br /&gt;echo 8192 &amp;gt; /sys/block/md1/md/stripe_cache_size&lt;br /&gt;&lt;br /&gt;blockdev --setra 4096 /dev/md0&lt;br /&gt;blockdev --setra 4096 /dev/md1&lt;br /&gt;&lt;br /&gt;exit 0&lt;/p&gt;&lt;p&gt;Restart Ubuntu to apply these settings.&lt;br /&gt;&lt;strong&gt;Note:&lt;/strong&gt; It is possible to apply these changes without a restart by executing each directive at the command line.&lt;/p&gt;&lt;p&gt;The pages linked to above explain how to test the influence of these cache changes. In general I have found that the parameters given in the example above have improved performance without influencing the reliability of the system, or the data stored on it. &lt;/p&gt;&lt;p&gt; &lt;/p&gt;  &lt;/div&gt;

&lt;ul class=&quot;field-taxonomy-vocabulary-1&quot;&gt;

      &lt;li&gt;
      &lt;a href=&quot;/tech/linux&quot;&gt;linux&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/raid&quot;&gt;raid&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/ubuntu&quot;&gt;ubuntu&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Fri, 23 Apr 2010 03:04:31 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">556 at https://www.stress-free.co.nz</guid>
</item>
<item>
 <title>Enable LVM on software-RAID during a Suse installation</title>
 <link>https://www.stress-free.co.nz/enable_lvm_on_software_raid_during_a_suse_installation</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
    &lt;div class=&quot;image&quot;&gt;&lt;img src=&quot;/sites/default/files/images/news/suse.gif&quot; alt=&quot;&quot; width=&quot;160&quot; height=&quot;114&quot; /&gt;&lt;/div&gt; &lt;p&gt;If you have tried setting up &lt;a href=&quot;http://www.suse.com/en/whitepapers/lvm/lvm1.html&quot;&gt;LVM&lt;/a&gt; on top of a LVM-enabled software-RAID partition during a standard Suse installation you may have hit a brick wall where the installer tells you that there are no available LVM partitions. This is a bug in the installer, it looks as if the LVM setup tool only checks physical partitions for LVM labels and ignores software-RAID partitions that have LVM labels.&lt;/p&gt;&lt;p&gt;Steve Wray has pointed out that you can get this functionality to work by creating a small physical partition and giving it an LVM label. The LVM setup tool will see this partition and allow the configuration to continue quite happily with the software-RAID partitions available for use. I have not tested this but I think it is worth giving a spin as the data integrity of RAID-1 coupled with the flexibility of LVM is a compelling combination (though performance maybe an issue). &lt;/p&gt;&lt;p&gt;Note: From a bit of Googling it appears that this limitation is not apparent in Suse Linux Enterprise Server by the looks of this &lt;a href=&quot;http://www-128.ibm.com/developerworks/eserver/library/es-conf-swraid/index.html&quot;&gt;IBM documentation&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;  &lt;/div&gt;

&lt;ul class=&quot;field-taxonomy-vocabulary-1&quot;&gt;

      &lt;li&gt;
      &lt;a href=&quot;/tech/linux&quot;&gt;linux&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/suse&quot;&gt;suse&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/raid&quot;&gt;raid&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/lvm&quot;&gt;lvm&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Wed, 13 Sep 2006 22:42:35 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">310 at https://www.stress-free.co.nz</guid>
</item>
<item>
 <title>Linux software RAID housekeeping</title>
 <link>https://www.stress-free.co.nz/linux_software_raid_housekeeping</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
      &lt;p&gt;I performed some operating system maintanence this morning with the resizing and recreation of a few software RAID disks. It did result in some downtime whilst the mirrors were rebuilt but it was only for 30 minutes which is not bad. Overall the operation went pretty smoothly and I found the following two references very useful:&lt;/p&gt;  &lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.linux-sxs.org/storage/raid_setup.html&quot;&gt;Linux StepByStep: Setting up RAID&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href=&quot;http://www.linux.com/howtos/Software-RAID-HOWTO-5.shtml&quot;&gt;Linux.com: Software RAID howto&lt;/a&gt;&lt;/li&gt;  &lt;/ul&gt;  &lt;/div&gt;

&lt;ul class=&quot;field-taxonomy-vocabulary-1&quot;&gt;

      &lt;li&gt;
      &lt;a href=&quot;/tech/linux&quot;&gt;linux&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/website&quot;&gt;website&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/raid&quot;&gt;raid&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Sun, 29 Jan 2006 22:19:38 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">228 at https://www.stress-free.co.nz</guid>
</item>
</channel>
</rss>
