<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tech4Him - Technology with Integrity &#187; raid</title>
	<atom:link href="http://blog.tech4him.com/tags/raid/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tech4him.com</link>
	<description>A Christian technology chaos wrangler and his thoughts</description>
	<lastBuildDate>Wed, 24 Mar 2010 23:15:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu 6.06 Server LTS Installation on Dell PE 2950 / PERC5</title>
		<link>http://blog.tech4him.com/2008/01/ubuntu-6-06-server-lts-installation-on-dell-pe-2950-perc5/</link>
		<comments>http://blog.tech4him.com/2008/01/ubuntu-6-06-server-lts-installation-on-dell-pe-2950-perc5/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 23:34:46 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[2950]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 6.06]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>
Yesterday we finished the installation of a new server. There has
been alot of discussion about how to install Ubuntu 6.06 onto a <a href="http://www.dell.com/content/products/productdetails.aspx/pedge_2950?c=us&#38;cs=04&#38;l=en&#38;s=bsd" target="_blank">Dell
PowerEdge 2950 server</a> with a PERC 5 RAID controller. Really the
discussion has been about support for the PERC 5 controller and linux
kernel's earlier than 2.6.17. The megaraid_sas driver is needed but not properly handled in Ubuntu 6.06 LTS.
</p>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-121" title="pedge_2950_3_overview1" src="http://blog.tech4him.com/wp-content/uploads/pedge_2950_3_overview1-300x131.jpg" alt="pedge_2950_3_overview1" width="300" height="131" />Yesterday we finished the installation of a new server. There has<br />
been alot of discussion about how to install Ubuntu 6.06 onto a Dell<br />
PowerEdge 2950 server with a PERC 5 RAID controller. Really the<br />
discussion has been about support for the PERC 5 controller and linux<br />
kernel&#8217;s earlier than 2.6.17. The megaraid_sas driver is needed but not properly handled in Ubuntu 6.06 LTS.<span id="more-9"></span></p>
<p>We really wanted to use Ubuntu 6.06 LTS because of the long-term<br />
support through 2011 however the kernel with this version does not<br />
properly recognize the raid containers created and manager by the PERC<br />
5 controller. Luckily, we knew this before the server was ordered and<br />
had a number of contingency plans. One of the biggest threads we found<br />
about the topic is <a href="http://ubuntuforums.org/showthread.php?t=226114" target="_new">located here</a> in the Ubuntu forums.</p>
<p>So here is the disk configuration. We had four (4) 250GB SATA drives<br />
with two bays empty. We proceeded to use the <a href="http://releases.ubuntu.com/dapper/ubuntu-6.06.1-alternate-i386.iso" target="_blank" class="broken_link">Ubuntu 6.06.1 LTS Alternate<br />
CD</a> to perform the installation. The installation was done with all the<br />
primary defaults. Now when the installer is detecting the networking<br />
hardware it did not detect the two onboard GB Broadcom NICs. No<br />
problem, just continue.</p>
<p>Now came the detection of the hard disks and partitioning. The<br />
installer detected all four (4) physical drives (sda, sdb,sdc and sdd)<br />
AND the only large raid volume (sde). (Note: In Ubuntu 6.10, 7,04 and<br />
7.10, only the one large raid volume was listed and correctly so.) At<br />
this point we selected drive sde, the large raid volume and chose to<br />
use all the available space. This allowed the installer to<br />
automatically create the necessary partitions.</p>
<p>The installation continued until the cd was ejected and the message<br />
to hit enter to continue appeared. At this point, DO NOT hit continue.<br />
Instead we need to modify the grub menu list. So we need to goto a<br />
console by hitting Alt + F2.</p>
<p>We are following some of the items listed in reply #20 of the above<br />
thread. You can use his code as a script or do what we did and do it<br />
manually in order to be sure we had everything correct.</p>
<blockquote><p>chroot /target</p>
<p>echo megaraid_sas &gt;&gt; /etc/mkinitramfs/modules<br />
cp /boot/initrd.img-2.6.15-26-386 /boot/initrd.img-2.6.15-26-386.old<br />
mkinitramfs -o /boot/initrd.img-2.6.15-26-386 2.6.15-26-386</p>
<p>grub-install /dev/sde</p></blockquote>
<p>Here is where we change (hd4,0) to (hd0,0) in menu.lst</p>
<blockquote><p>grep hd4 /boot/grub/menu.lst<br />
cp /boot/grub/menu.lst /boot/grub/menu.lst.orig<br />
sed -e &#8217;s/hd4/hd0/g&#8217; /boot/grub/menu.lst.orig &gt; /boot/grub/menu.lst</p>
<p><code><br />
</code></p></blockquote>
<p>Finally, remember that the two (2) onboard nics were not detected.<br />
The nice things is all we need to do is to add the entries for the<br />
interfaces are added and the bnx2 module driver will be automatically<br />
loaded. The thread mentioned above has you do the following in your script:</p>
<blockquote><p>echo &#8216;<br />
# The Ethernet network interface<br />
auto eth0<br />
iface eth0 inet dhcp</p>
<p>auto eth1<br />
iface eth1 inet dhcp<br />
&#8216; &gt;&gt; /etc/network/interfaces</p>
<p>touch /etc/resolv.conf</p></blockquote>
<p>We simply did the following and decided to goahead and put all the static IP information for the server in now and add the dns servers to the resolv.conf</p>
<blockquote><p>vi /etc/network/interfaces</p>
<p>auto eth0<br />
iface eth0 inet static<br />
address xxx.xxx.xxx.xxx<br />
netmask 255.255.255.0<br />
network xxx.xxx.xxx.0<br />
broadcast xxx.xxx.xxx.255<br />
gateway xxx.xxx.xxx.xxx</p>
<p>auto eth1</p>
<p>iface eth1 inet static<br />
address xxx.xxx.xxx.xxx<br />
netmask 255.255.255.0<br />
network xxx.xxx.xxx.0<br />
broadcast xxx.xxx.xxx.255<br />
gateway xxx.xxx.xxx.xxx</p></blockquote>
<p>And now the resolv.conf</p>
<blockquote><p>touch /etc/resolv.conf</p>
<p>nameserver xxx.xxx.xxx.xxx<br />
nameserver xxx.xxx.xxx.xxx</p></blockquote>
<p>This biggest things is to get the &#8216;root&#8217; entries in the menu.lst<br />
file correct. Below is the last part of our menu.lst file. Notice that<br />
the three &#8216;root&#8217; etries are using hd0,0 instead of what was originally<br />
there, hd4,0.</p>
<blockquote><p>/boot/grub/menu.lst<br />
&#8230;<br />
## ## End Default Options ##</p>
<p>title           Ubuntu, kernel 2.6.15-26-386<br />
root            (hd0,0)<br />
kernel          /boot/vmlinuz-2.6.15-26-386 root=/dev/sde1 ro quiet splash<br />
initrd          /boot/initrd.img-2.6.15-26-386<br />
savedefault<br />
boot</p>
<p>title           Ubuntu, kernel 2.6.15-26-386 (recovery mode)<br />
root            (hd0,0)<br />
kernel          /boot/vmlinuz-2.6.15-26-386 root=/dev/sde1 ro single<br />
initrd          /boot/initrd.img-2.6.15-26-386<br />
boot</p>
<p>title           Ubuntu, memtest86+<br />
root            (hd0,0)<br />
kernel          /boot/memtest86+.bin<br />
boot</p>
<p>### END DEBIAN AUTOMAGIC KERNELS LIST</p></blockquote>
<p>Now press Alt+ F1 to go back to the installer window and hit enter to reboot. That should be it! Now, if for some reason it does not work, don&#8217;t panic. If GRUB is loading but not finding the /root filesystem just go back to the GRUB menu, hit &#8216;e&#8217; to edit the primary menu selection. This takes you to the command line editor, check and be sure (hd0,0) is in the line and not (hd4,0). If not, changeit right there and then hit &#8216;enter&#8217;. When back at the grub menu, hit &#8216;b&#8217; to boot that selection.</p>
<p>Blessings.</p>
<img src="http://blog.tech4him.com/?ak_action=api_record_view&id=9&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.tech4him.com/2008/01/ubuntu-6-06-server-lts-installation-on-dell-pe-2950-perc5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 6.06 Server LTS Installation with Software RAID Support &#8211; Part I</title>
		<link>http://blog.tech4him.com/2007/12/ubuntu-6-06-server-lts-installation-with-software-raid-support-part-i/</link>
		<comments>http://blog.tech4him.com/2007/12/ubuntu-6-06-server-lts-installation-with-software-raid-support-part-i/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 01:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 6.06]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>
Well, victory is ours....sort of. See our previous post.<br />
<br />
The
long and short of it is that we ended up just removing that Promise
FastTrak TX2 controller card and placed the two drive on the built-in
motherboard controllers. Since we have some other devices we
piggybacked both drives from the same controller which is not going to
be as performance minded as put each drive on a different controller
but for this application it is fine.<br />
]]></description>
			<content:encoded><![CDATA[<p>
Well, victory is ours&#8230;.sort of. See our previous post.</p>
<p>The<br />
long and short of it is that we ended up just removing that Promise<br />
FastTrak TX2 controller card and placed the two drive on the built-in<br />
motherboard controllers. Since we have some other devices we<br />
piggybacked both drives from the same controller which is not going to<br />
be as performance minded as put each drive on a different controller<br />
but for this application it is fine.</p>
<p>I thought that I would post<br />
some articles describing in more detail our steps and experiences in<br />
case it may be of use to others. So here we go.</p>
<p><span style="font-weight: bold">Ubuntu 6.06 Server LTS Installation with Software RAID Support</p>
<p></span>
</p>
<ol style="margin-top: 0in" start="1" type="1">
<li class="MsoNormal">Boot from the      Ubuntu 6.06 LTS Bootable CD (<a href="http://www.ubuntu.com/getubuntu/download">available from here</a>)</li>
<li class="MsoNormal">Choose the Start Server Install Option</li>
<li class="MsoNormal">Follow and answer the standard prompts and entries until you get to the partitioning section</li>
<li class="MsoNormal">This<br />
	is where we did some research and manually created 4 partitions, 2 on<br />
	each drive in order to create two RAID 1 arrays. The best explanation<br />
	of this that we have found thus far <a href="http://advosys.ca/viewpoints/2007/04/setting-up-software-raid-in-ubuntu-server/trackback/">is here</a>.<br />
	We deviated a bit from this article however. Our primary difference was<br />
	in the changing of the partition sizes with the largest being the root<br />
	filesystem and the smaller being the swap space.</p>
<ol>
<li class="MsoNormal">
<p>
		So<br />
		here is our new physical partition view. (Be sure the root &quot;/&quot; mount<br />
		points are set to &quot;bootable&quot; or you won&#8217;t be able to boot into your<br />
		newly install Ubuntu Server.)
		</p>
<div align="center">
<table border="0" cellpadding="3" cellspacing="1">
<tbody>
<tr>
<th style="text-align: center; background-color: #66cccc">Drive</th>
<th style="text-align: center; background-color: #66cccc">Partition</th>
<th style="text-align: center; background-color: #66cccc">Type</th>
<th style="text-align: center; background-color: #66cccc">Mounted on</th>
<th style="text-align: center; background-color: #66cccc">Size</th>
</tr>
<tr>
<td rowspan="2" style="text-align: center; background-color: #c0c0c0">Drive0</td>
<td style="text-align: center; background-color: #c0c0c0">/dev/hda1</td>
<td style="text-align: center; background-color: #c0c0c0">Primary</td>
<td style="text-align: center; background-color: #c0c0c0">/</td>
<td style="background-color: #c0c0c0">70GB</td>
</tr>
<tr>
<td style="text-align: center; background-color: #c0c0c0">/dev/hda2</td>
<td style="text-align: center; background-color: #c0c0c0">Primary</td>
<td style="text-align: center; background-color: #c0c0c0">(swap area)</td>
<td style="background-color: #c0c0c0">10 GB
					</td>
</tr>
<tr>
<td rowspan="2" style="text-align: center; background-color: #c0c0c0">Drive1</td>
<td style="text-align: center; background-color: #c0c0c0">/dev/hdb1</td>
<td style="text-align: center; background-color: #c0c0c0">Primary</td>
<td style="text-align: center; background-color: #c0c0c0">/</td>
<td style="background-color: #c0c0c0">70 GB</td>
</tr>
<tr>
<td style="text-align: center; background-color: #c0c0c0">/dev/hdb2</td>
<td style="text-align: center; background-color: #c0c0c0">Primary</td>
<td style="text-align: center; background-color: #c0c0c0">(swap area)</td>
<td style="background-color: #c0c0c0">10 GB
					</td>
</tr>
</tbody>
</table></div>
</li>
<li class="MsoNormal">We then used the above physical partitions to create these two Multidisk devices (arrays).
<div align="center">
<table border="0" cellpadding="3" cellspacing="1">
<tbody>
<tr>
<th style="text-align: center; background-color: #66cccc">RAID device</th>
<th style="text-align: center; background-color: #66cccc">Type</th>
<th style="text-align: center; background-color: #66cccc">Mounted on</th>
<th style="text-align: center; background-color: #66cccc">Size</th>
<th style="text-align: center; background-color: #66cccc">Members</th>
</tr>
<tr>
<td rowspan="2" style="text-align: center; background-color: #c0c0c0">/dev/md0</td>
<td rowspan="2" style="text-align: center; background-color: #c0c0c0">RAID1<br />
					 mirror</td>
<td rowspan="2" style="text-align: center; background-color: #c0c0c0">/</td>
<td rowspan="2" style="background-color: #c0c0c0" align="center">70 GB</td>
<td style="text-align: center; background-color: #c0c0c0">/dev/hda1</td>
</tr>
<tr>
<td style="text-align: center; background-color: #c0c0c0">/dev/hdb1</td>
</tr>
<tr>
<td rowspan="2" style="text-align: center; background-color: #c0c0c0">/dev/md1</td>
<td rowspan="2" style="text-align: center; background-color: #c0c0c0">RAID1<br />
					 mirror</td>
<td rowspan="2" style="text-align: center; background-color: #c0c0c0">(swap)</td>
<td rowspan="2" style="background-color: #c0c0c0">10 GB
					</td>
<td style="text-align: center; background-color: #c0c0c0">/dev/hda2</td>
</tr>
<tr>
<td style="text-align: center; background-color: #c0c0c0">/dev/hdb2</td>
</tr>
</tbody>
</table></div>
</li>
<li class="MsoNormal">Once<br />
		you have the partition looking like the above, choose that you are<br />
		finished and choose &quot;yes&quot; to the warning about writing these changes to<br />
		the disks.</li>
</ol>
</li>
<li class="MsoNormal">Continue      finishing out standard server installation prompts</li>
<li class="MsoNormal">If<br />
	you want to be sure you can boot from either of the two drives in the<br />
	array (like if one goes out which is why you went to all this trouble<br />
	to begin with) then you need to follow the step to get the grub loader<br />
	install on the second disk. This is in the same article under the &quot;Make<br />
	Every Drive Bootable Section&quot;.</p>
<ol>
<li class="MsoNormal">Essentially boot the server CD again and choose &quot;Rescue a broken system&quot;</li>
<li class="MsoNormal">Follow the system prompts until you see the &quot;Device to use as root filesystem&quot; prompt. STOP!</li>
<li class="MsoNormal">Press<br />
		Alt-F2 to go to the second console (TTY2) and hit enter. Here you are<br />
		going to enter the follow command to mount the second drive</p>
<p>		           mount /dev/md0 /mnt<br />
		  chroot /mnt<br />
		  grub<br />
		  device (hd0) /dev/sda<br />
		  root (hd0,0)<br />
		  setup (hd0)<br />
		  device (hd1) /dev/sdb<br />
		  root (hd1,0)<br />
		  setup (hd1)<br />
		  quit</li>
<li class="MsoNormal">Now<br />
		reboot your server. Don&#8217;t know how??? &quot;shutdown -r now&quot; (This tells the<br />
		system shutdown. The &quot;-r&quot; says restart after the shutdown and the &quot;now&quot;<br />
		means do it now instead of in 10 minutes or whatever else you might<br />
		want to include there.)</li>
</ol>
</li>
<li class="MsoNormal">Login      as administrator or whatever you choose for the username and password in the installation sequence.</li>
<li class="MsoNormal">Perform<br />
	&quot;sudo apt-get update&quot; to have apt-get update the list of packages and<br />
	the &quot;sudo apt-get upgrade&quot; to ensure latest versions of all packages<br />
	are applied.</li>
<li class="MsoNormal">Finally I always like<br />
	to install an SSH server right away so I can finish the system<br />
	configuration form the comfort of my desk, a couch or some other comfy<br />
	place. So run the &quot;sudo apt-get install openssh-server&quot; command.</li>
</ol>
<p>A big thanks to the Ubuntu community and especially to <a href="http://advosys.ca/">Derrick Webber</a> whose <a href="http://advosys.ca/viewpoints/2007/04/setting-up-software-raid-in-ubuntu-server/trackback/">post</a> was the basis for our successful installation.</p>
<p>Now<br />
in our future new production hardware we will further distribute the<br />
&quot;/&quot; root, &quot;/var&quot; and &quot;/usr&quot; mount points to individual partitions.</p>
<p>Blessings</p>
<img src="http://blog.tech4him.com/?ak_action=api_record_view&id=2&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.tech4him.com/2007/12/ubuntu-6-06-server-lts-installation-with-software-raid-support-part-i/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu Installation with a Promise FastTrak TX2 RAID Controller</title>
		<link>http://blog.tech4him.com/2007/12/ubuntu-installation-with-a-promise-fasttrak-tx2-raid-controller/</link>
		<comments>http://blog.tech4him.com/2007/12/ubuntu-installation-with-a-promise-fasttrak-tx2-raid-controller/#comments</comments>
		<pubDate>Wed, 05 Dec 2007 16:17:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 6.06]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Whew....this is a bit of an enigma right now. I know I read about some potential issues with this controller card but it is what we have to use. I thought those issue were primarily around driver support and bit write issues. What I did not expect was the difficulty in installing Ubuntu 6.06 LTS onto a mirror array created with the controller. Perhaps this is a symptom of the "poor driver support" issue?
<br/><br/>]]></description>
			<content:encoded><![CDATA[<p>Whew&#8230;.this is a bit of an enigma right now. I know I read about some potential issues with this controller card but it is what we have to use. I thought those issue were primarily around driver support and bit write issues. What I did not expect was the difficulty in installing Ubuntu 6.06 LTS onto a mirror array created with the controller. Perhaps this is a symptom of the &#8220;poor driver support&#8221; issue?<br />
<br/><br/><br />
Others seem to have similar issues. <a href="http://ubuntuforums.org/showthread.php?t=472014">This one</a> with no response as of today. <a href="http://meanderingpassage.com/2006/10/20/ubuntu-not-your-typical-install/">This one</a> without the expertise to resolve. A hopeful possibility is <a href="http://opennfo.wordpress.com/2007/09/02/adventures-with-linux-raid-part-1/">this one</a> which I will try next if need be.<br />
<br/><br/><br />
When the installer gets to the partitioner section instead of seeing a single array to install on as I would expect, it see&#8217;s the two physical drives. Of course that isn&#8217;t really going to work now is it. (or&#8230;.maybe I am missing something fundamental with Linux and hardware raid controllers?)<br />
<br/><br/><br />
So, now I am starting from scratch since this is a temporary production rebuild. As I write this I deleted the old array, created a new mirror RAID 1 array from the two disks, select one as the primary image and the controller is copying the image. Once that finishes, I will attempt to do one more installation of Ubuntu Server 6.06 LTS and see what happens.<br />
<br/><br/><br />
If anyone has any ideas or thoughts, I welcome them.<br />
<br/><br/><br />
UPDATE:<br />
<br/><br/><br />
Finally realized that this discontinued controller is the cause of the issue and since we have to use the hardware available for this project, decided to go with software raid. Really not much performance difference since the controller wasn&#8217;t offloading the array needs anyhow.<br />
<br/><br/><br />
<a href="http://advosys.ca/viewpoints/2007/04/setting-up-software-raid-in-ubuntu-server/trackback/">Found this post</a> describing how to perform the manually partitioning for the installation although I disagree with a 10 GB root volume and a 100+ GB swap volume. So I flipped them around as we are going to be using this machine as a VMWare Server host. (Small installation).<br />
<br/><br/><br />
Worked like a charm and I&#8217;m ready to start updating the system and getting the VMWare server installation cooking. We&#8217;ve already done this numerous times in our test environment. Too bad we didn&#8217;t have this controller card in the test environment to had spotted this issue sooner. No harm, no foul. Time to move on.<br />
<br/><br/><br />
Blessings!</p>
<img src="http://blog.tech4him.com/?ak_action=api_record_view&id=3&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.tech4him.com/2007/12/ubuntu-installation-with-a-promise-fasttrak-tx2-raid-controller/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
