<?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>Linux for Fun &#187; CentOS</title>
	<atom:link href="http://linuxforfun.net/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxforfun.net</link>
	<description>Just for Fun</description>
	<lastBuildDate>Tue, 15 Sep 2009 00:12:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Installation of CentOS on a server with a SmartRAID V controller</title>
		<link>http://linuxforfun.net/2008/03/04/smartraid-centos/</link>
		<comments>http://linuxforfun.net/2008/03/04/smartraid-centos/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 06:37:31 +0000</pubDate>
		<dc:creator>sandajian</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[drivers]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[SmartRAID V]]></category>

		<guid isPermaLink="false">http://linuxforfun.net/2008/03/04/installation-of-centos-51-on-an-old-machine-with-a-smartraid-v-controller/</guid>
		<description><![CDATA[We are going to reinstall Linux on an old server with a SmartRAID V controller. Since CentOS can be updated easily using &#8216;yum&#8217;, we decide to use CentOS 5.1. There are some difficulties in installation, but we can bypass them and accomplish it successfully. The basic parameters of the old server: 2 x Intel(R) Xeon(TM) [...]<script type="text/javascript">SHARETHIS.addEntry({ title: "Installation of CentOS on a server with a SmartRAID V controller", url: "http://linuxforfun.net/2008/03/04/smartraid-centos/" });</script>]]></description>
			<content:encoded><![CDATA[<p>We are going to reinstall Linux on an old server with a SmartRAID V controller.  Since CentOS can be updated easily using &#8216;yum&#8217;, we decide to use CentOS 5.1.  There are some difficulties in installation, but we can bypass them and accomplish it successfully.</p>
<p>The basic parameters of the old server:</p>
<ul>
<li>2 x Intel(R) Xeon(TM) CPU 2.40GHz</li>
<li>4G Memory</li>
<li>Adaptec (formerly DPT) SmartRAID V Controller</li>
<li>6x 36704 MB SCSI disks</li>
<li>Intel Corporation 82545EM Gigabit Ethernet Controller</li>
<li>ATAPI 52X CD-ROM drive</li>
</ul>
<p>The main points of installation are described below:</p>
<p><span id="more-11"></span><strong>0. Make a RAID5 array </strong></p>
<p>Before installation, we use SmartRAID Storage Manager to make a RAID5 array using 5 SCSI disks, and leave 1 SCSI disk as HotSpare.</p>
<p><strong>1. Choose installation media</strong></p>
<p>We have downloaded a Centos 5.1 DVD ISO.  But the machine has no DVD-ROM.  We make a USB boot disk using images/diskboot.img, but the server can&#8217;t boot.  We have to burn a bootable CD-ROM using images/boot.iso.  On the other Linux machine, we mount CentOS 5.1 DVD ISO under a directory of the Apache HTTP server.  We will boot the machine by the bootable CD-ROM and choose HTTP installation media.</p>
<p><strong>2. Boot, load RAID drivers</strong></p>
<p>Boot the machine, choose HTTP installation media, configure network parameters and HTTP server addresses.  The installation process now enters the graphical interface.  But if we click &#8216;Next&#8217; on the screen now, the installation process will not recognize any hard disks.  This is because: <strong>CentOS does not put SmartRAID V drivers into the kernel used in installation process.</strong></p>
<p>The method to solve this problem is: on the other Linux machine, unpack CentOS/kernel-2.6.18-53.el5.i686.rpm, copy the following two drivers</p>
<blockquote><p><code>/lib/modules/2.6.18-53.el5/kernel/drivers/message/i2o/i2o_block.ko<br />
/lib/modules/2.6.18-53.el5/kernel/drivers/message/i2o/i2o_scsi.ko</code></p></blockquote>
<p>to some directory of the Apache HTTP server so that the machine can see them through HTTP.</p>
<p>Then, in the graphical interface of installation, press Ctrl-Alt-F2 to switch to command line, use &#8216;wget&#8217; to get the above two drivers, execute the commands:</p>
<blockquote><p><code># insmod i2o_block.ko<br />
# insmod i2o_scsi.ko</code></p></blockquote>
<p>It may cause some minutes when loading i2o_scsi.ko.</p>
<p>After that, press Ctrl-Alt-F6 to switch back to the graphical interface, click &#8216;Next&#8217; to proceed.  A popup may appear, which says something like:</p>
<blockquote><p>Error opening /dev/sda: No such device or address</p></blockquote>
<p>Don&#8217;t care, click &#8216;Cancel&#8217; to ignore it.  At this time, the installation process will recognize the RAID5 array as /dev/i2o/hda successfully.  We can follow normal steps to install the OS itself.</p>
<p>(In the partitioning step, using LVM may cause trouble &#8211; after installation, the boot process of the new system will be extremely slow, almost dead.  We don&#8217;t know the reason yet.  After times of failure, we choose to create custom layout, do not use LVM, the boot process afterwards goes smoothly.)</p>
<p><strong>3. Make initrd</strong></p>
<p>After all packages are installed, do not click &#8216;Reboot&#8217; right now.  Since <strong>&#8216;i2o_block.ko&#8217; and &#8216;i2o_scsi.ko&#8217; are not included in the default kernel&#8217;s initrd file</strong>, the boot prcess will not recognize our RAID5 array.</p>
<p>At the last stage of the graphical interface of installation, press Ctrl-Alt-F2 to switch to command line, execute the commands:</p>
<blockquote><p><code># chroot /mnt/sysimage /bin/bash<br />
# /sbin/mkinitrd -f --preload=i2o_block --preload=i2o_scsi  /boot/initrd-2.6.18-53.el5PAE.img  2.6.18-53.el5PAE<br />
# exit</code></p></blockquote>
<p>Then, press Ctrl-Alt-F6 to switch back to the graphical interface, click &#8216;Reboot&#8217; to reboot the system.</p>
<p>Every time we upgrade the kernel, we should execute the &#8216;mkinitrd&#8217; command to rebuild the initrd file, including &#8216;i2o_block&#8217; and &#8216;i2o_scsi&#8217; modules in it.</p>
<p><a href="http://sharethis.com/item?&wp=3.0.1&amp;publisher=0528fcb2-917b-4b68-8e53-491409263a87&amp;title=Installation+of+CentOS+on+a+server+with+a+SmartRAID+V+controller&amp;url=http%3A%2F%2Flinuxforfun.net%2F2008%2F03%2F04%2Fsmartraid-centos%2F">ShareThis</a></p>]]></content:encoded>
			<wfw:commentRss>http://linuxforfun.net/2008/03/04/smartraid-centos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
