<?xml version="1.0" encoding="utf-8"?>

			<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

			<channel>
			<title>Ruslan Sivak - Linux</title>
			<link>http://www.ruslansivak.com</link>
			<description>This is the development blog.</description>
			<language>en-us</language>
			<pubDate>Tue, 07 Sep 2010 22:59:18 -0400</pubDate>
			<lastBuildDate>Fri, 23 Jan 2009 17:12:00 -0400</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>russ@ruslansivak.com</managingEditor>
			<webMaster>russ@ruslansivak.com</webMaster>
			<itunes:subtitle></itunes:subtitle>
			<itunes:summary></itunes:summary>
			<itunes:category text="Technology" />
			<itunes:category text="Technology">
				<itunes:category text="Podcasting" />
			</itunes:category>
			<itunes:category text="Technology">
				<itunes:category text="Tech News" />
			</itunes:category>
			<itunes:keywords></itunes:keywords>
			<itunes:author></itunes:author>
			<itunes:owner>
				<itunes:email>russ@ruslansivak.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			
			<itunes:explicit>no</itunes:explicit>
			
			
			
			
			
			<item>
				<title>Subversion svnserve &quot;Could not obtain the list of SASL mechanisms&quot;</title>
				<link>http://www.ruslansivak.com/2009/1/23/Subversion-svnserve-Could-not-obtain-the-list-of-SASL-mechanisms</link>
				<description>
				
				I&apos;ve decided to move our subversion repository to a new server.  Put up a fresh install of CentOS 5.2 x32, updated and installed subversion on it.

Decided to set it up using svnserve with sasl, as 1.5 supports that.  Following the &lt;a href=&quot;http://svnbook.red-bean.com/en/1.5/svn.serverconfig.svnserve.html#svn.serverconfig.svnserve.sasl&quot;&gt;SVN Book&lt;/a&gt;, I set up my svnserve.conf file as follows
&lt;code&gt;
[general]
anon-access = none
auth-access = write
realm = isf
[sasl]
use-sasl = true
min-encryption = 128
max-encryption = 256&lt;/code&gt;

I had set up the /etc/sasl/svn.conf file as follows
&lt;code&gt;
pwcheck_method: auxprop
auxprop_plugin: sasldb
sasldb_path: /svn/sassl
mech_list: DIGEST-MD5
&lt;/code&gt;

Unfortunately, I kept getting the &quot;Could not obtain the list of SASL mechanisms&quot; error in TortoiseSVN and other clients.  Nobody seemed to be able to help, until I finally figured it out - the DIGEST-MD5 plugin wasn&apos;t installed for cyrus by default on CentOS 5.2.  All I had to do was run the following command and everything started working. 
&lt;code&gt;
yum install cyrus-sasl-md5
&lt;/code&gt;
				
				</description>
				
				
				<category>Linux</category>
				
				<category>SVN</category>
				
				<pubDate>Fri, 23 Jan 2009 17:12:00 -0400</pubDate>
				<guid>http://www.ruslansivak.com/2009/1/23/Subversion-svnserve-Could-not-obtain-the-list-of-SASL-mechanisms</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>3ware 9690SA on CentOS 5.2 x86_64 with Xen</title>
				<link>http://www.ruslansivak.com/2008/6/30/3ware-9690SA-on-CentOS-52-x8664-with-Xen</link>
				<description>
				
				Apparently 9690SA support still didn&apos;t arrive in CentOS 5.2, so you still need some tricks to get it to work. 

First download the driver disk from 3ware.  If you are using a Xen kernel, you will need to get it from this knowledgebase article:  &lt;a href=&quot;http://www.3ware.com/KB/article.aspx?id=15399&quot;&gt;http://www.3ware.com/KB/article.aspx?id=15399&lt;/a&gt;. 

Extract the files and put them on a floppy.  When installing linux you will need to type in &apos;linux dd&apos; in the prompt when you boot off the CentOS 5.2 DVD/CD.  

After installation, everything appears to be fine, but once you run yum update, and it updates the kernel, you will be unable to boot into the new kernel.  We will need to do a few steps before it will work with a new kernel.  

First, download the driver disk to your CentOS 5.2 box.  (I couldn&apos;t get the URL off the page, so I FTPed the file over).  

unzip the file:
&lt;code&gt;# unzip 208-3w-95xx-9650_9690_rhel5u2-kernel2.6.18-92.el5-installdisk-x86_64-9.5-GUID28bef5f421164b46ab5d859e5d957eea.zip
Archive:  208-3w-95xx-9650_9690_rhel5u2-kernel2.6.18-92.el5-installdisk-x86_64-9.5-GUID28bef5f421164b46ab5d859e5d957eea.zip
  inflating: modinfo
  inflating: modules.alias
  inflating: modules.cgz
  inflating: modules.dep
  inflating: modules.pcimap
  inflating: pci.ids
  inflating: pcitable
  inflating: Readme
  inflating: rhdd
&lt;/code&gt;

Now we need to get the kernel modules out of modules.cgz.  

&lt;code&gt;
# zcat modules.cgz | cpio -ivd
2.6.18-92.el5
2.6.18-92.el5/x86_64
2.6.18-92.el5/x86_64/3w-9xxx.ko
2.6.18-92.el5xen
2.6.18-92.el5xen/x86_64
2.6.18-92.el5xen/x86_64/3w-9xxx.ko
1421 blocks
&lt;/code&gt;

Since we are updating a regular kernel - not xen, we will use the 2.6.18-92.el5/x86_64/3w-9xxx.ko file. 

&lt;code&gt;# cp 2.6.18-92.el5/x86_64/3w-9xxx.ko /lib/modules/2.6.18-92.1.6.el5/updates/&lt;/code&gt;

Now we need to make a new initrd

&lt;code&gt;
# depmod 2.6.18-92.1.6.el5
# cp /boot/initrd-2.6.18-92.1.6.el5.img /boot/initrd-2.6.18-92.1.6.el5.img.old
# mkinitrd -v -f /boot/initrd-2.6.18-92.1.6.el5.img 2.6.18-92.1.6.el5
Creating initramfs
Looking for deps of module ehci-hcd
Looking for deps of module ohci-hcd
Looking for deps of module uhci-hcd
Looking for deps of module ext3: jbd
Looking for deps of module jbd
Looking for driver for device sda2
Looking for deps of module pci:v000013C1d00001005sv000013C1sd00001005bc01sc04i00: scsi_mod 3w-9xxx
Looking for deps of module scsi_mod
Looking for deps of module sd_mod: scsi_mod
Looking for deps of module 3w-9xxx: scsi_mod
Looking for deps of module ahci: scsi_mod libata
Looking for deps of module libata: scsi_mod
Looking for deps of module usb-storage: scsi_mod
Looking for deps of module ide-disk
Looking for deps of module dm-mod
Looking for deps of module dm-mirror: dm-mod
Looking for deps of module dm-zero: dm-mod
Looking for deps of module dm-snapshot: dm-mod
Using modules:  /lib/modules/2.6.18-92.1.6.el5/kernel/drivers/usb/host/ehci-hcd.ko /lib/modules/2.6.18-92.1.6.el5/kernel/drivers/usb/host/ohci-hcd.ko /lib/modules/2.6.18-92.1.6.el5/kernel/drivers/usb/host/uhci-hcd.ko /lib/modules/2.6.18-92.1.6.el5/kernel/fs/jbd/jbd.ko /lib/modules/2.6.18-92.1.6.el5/kernel/fs/ext3/ext3.ko /lib/modules/2.6.18-92.1.6.el5/kernel/drivers/scsi/scsi_mod.ko /lib/modules/2.6.18-92.1.6.el5/kernel/drivers/scsi/sd_mod.ko /lib/modules/2.6.18-92.1.6.el5/updates/3w-9xxx.ko /lib/modules/2.6.18-92.1.6.el5/kernel/drivers/ata/libata.ko /lib/modules/2.6.18-92.1.6.el5/kernel/drivers/ata/ahci.ko /lib/modules/2.6.18-92.1.6.el5/kernel/drivers/usb/storage/usb-storage.ko /lib/modules/2.6.18-92.1.6.el5/kernel/drivers/md/dm-mod.ko /lib/modules/2.6.18-92.1.6.el5/kernel/drivers/md/dm-mirror.ko /lib/modules/2.6.18-92.1.6.el5/kernel/drivers/md/dm-zero.ko /lib/modules/2.6.18-92.1.6.el5/kernel/drivers/md/dm-snapshot.ko
/sbin/nash -&gt; /tmp/initrd.RX6099/bin/nash
/sbin/insmod.static -&gt; /tmp/initrd.RX6099/bin/insmod
`/lib/modules/2.6.18-92.1.6.el5/kernel/drivers/usb/host/ehci-hcd.ko&apos; -&gt; `/tmp/initrd.RX6099/lib/ehci-hcd.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5/kernel/drivers/usb/host/ohci-hcd.ko&apos; -&gt; `/tmp/initrd.RX6099/lib/ohci-hcd.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5/kernel/drivers/usb/host/uhci-hcd.ko&apos; -&gt; `/tmp/initrd.RX6099/lib/uhci-hcd.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5/kernel/fs/jbd/jbd.ko&apos; -&gt; `/tmp/initrd.RX6099/lib/jbd.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5/kernel/fs/ext3/ext3.ko&apos; -&gt; `/tmp/initrd.RX6099/lib/ext3.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5/kernel/drivers/scsi/scsi_mod.ko&apos; -&gt; `/tmp/initrd.RX6099/lib/scsi_mod.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5/kernel/drivers/scsi/sd_mod.ko&apos; -&gt; `/tmp/initrd.RX6099/lib/sd_mod.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5/updates/3w-9xxx.ko&apos; -&gt; `/tmp/initrd.RX6099/lib/3w-9xxx.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5/kernel/drivers/ata/libata.ko&apos; -&gt; `/tmp/initrd.RX6099/lib/libata.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5/kernel/drivers/ata/ahci.ko&apos; -&gt; `/tmp/initrd.RX6099/lib/ahci.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5/kernel/drivers/usb/storage/usb-storage.ko&apos; -&gt; `/tmp/initrd.RX6099/lib/usb-storage.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5/kernel/drivers/md/dm-mod.ko&apos; -&gt; `/tmp/initrd.RX6099/lib/dm-mod.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5/kernel/drivers/md/dm-mirror.ko&apos; -&gt; `/tmp/initrd.RX6099/lib/dm-mirror.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5/kernel/drivers/md/dm-zero.ko&apos; -&gt; `/tmp/initrd.RX6099/lib/dm-zero.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5/kernel/drivers/md/dm-snapshot.ko&apos; -&gt; `/tmp/initrd.RX6099/lib/dm-snapshot.ko&apos;
/sbin/lvm.static -&gt; /tmp/initrd.RX6099/bin/lvm
/etc/lvm -&gt; /tmp/initrd.RX6099/etc/lvm
`/etc/lvm/lvm.conf&apos; -&gt; `/tmp/initrd.RX6099/etc/lvm/lvm.conf&apos;
/sbin/dmraid.static -&gt; /tmp/initrd.RX6099/bin/dmraid
/sbin/kpartx.static -&gt; /tmp/initrd.RX6099/bin/kpartx
Adding module ehci-hcd
Adding module ohci-hcd
Adding module uhci-hcd
Adding module jbd
Adding module ext3
Adding module scsi_mod
Adding module sd_mod
Adding module 3w-9xxx
Adding module libata
Adding module ahci
Adding module usb-storage
Adding module dm-mod
Adding module dm-mirror
Adding module dm-zero
Adding module dm-snapshot
&lt;/code&gt;

As you can see, it used our version of the 3w-9xxx.ko instead of the one that came with the kernel.  

Now we reboot and see that it books successfully into the new kernel.  

&lt;code&gt;# shutdown -r now&lt;/code&gt;

Now lets say that we have a xen kernel.  Either by installing the stock xen or using the 3.2 version from my companion entry, now we need to update the 3w-9xxx.ko for that kernel as well, otherwise it won&apos;t boot.  The steps are pretty similar, substituting the proper kernel version, we get: 

&lt;code&gt;# cp 2.6.18-92.el5xen/x86_64/3w-9xxx.ko /lib/modules/2.6.18-92.1.6.el5xen/updates/&lt;/code&gt;

Now we need to make a new initrd

&lt;code&gt;
# depmod 2.6.18-92.1.6.el5xen
# cp /boot/initrd-2.6.18-92.1.6.el5xen.img /boot/initrd-2.6.18-92.1.6.el5xen.img.old
# mkinitrd -v -f /boot/initrd-2.6.18-92.1.6.el5xen.img 2.6.18-92.1.6.el5xen
Creating initramfs
Looking for deps of module ehci-hcd
Looking for deps of module ohci-hcd
Looking for deps of module uhci-hcd
Looking for deps of module ext3: jbd
Looking for deps of module jbd
Looking for driver for device sda2
Looking for deps of module pci:v000013C1d00001005sv000013C1sd00001005bc01sc04i00: scsi_mod 3w-9xxx
Looking for deps of module scsi_mod
Looking for deps of module sd_mod: scsi_mod
Looking for deps of module 3w-9xxx: scsi_mod
Looking for deps of module ahci: scsi_mod libata
Looking for deps of module libata: scsi_mod
Looking for deps of module usb-storage: scsi_mod
Looking for deps of module ide-disk
Looking for deps of module dm-mod
Looking for deps of module dm-mirror: dm-mod
Looking for deps of module dm-zero: dm-mod
Looking for deps of module dm-snapshot: dm-mod
Using modules:  /lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/usb/host/ehci-hcd.ko /lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/usb/host/ohci-hcd.ko /lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/usb/host/uhci-hcd.ko /lib/modules/2.6.18-92.1.6.el5xen/kernel/fs/jbd/jbd.ko /lib/modules/2.6.18-92.1.6.el5xen/kernel/fs/ext3/ext3.ko /lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/scsi/scsi_mod.ko /lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/scsi/sd_mod.ko /lib/modules/2.6.18-92.1.6.el5xen/updates/3w-9xxx.ko /lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/ata/libata.ko /lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/ata/ahci.ko /lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/usb/storage/usb-storage.ko /lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/md/dm-mod.ko /lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/md/dm-mirror.ko /lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/md/dm-zero.ko /lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/md/dm-snapshot.ko
/sbin/nash -&gt; /tmp/initrd.sW6636/bin/nash
/sbin/insmod.static -&gt; /tmp/initrd.sW6636/bin/insmod
`/lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/usb/host/ehci-hcd.ko&apos; -&gt; `/tmp/initrd.sW6636/lib/ehci-hcd.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/usb/host/ohci-hcd.ko&apos; -&gt; `/tmp/initrd.sW6636/lib/ohci-hcd.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/usb/host/uhci-hcd.ko&apos; -&gt; `/tmp/initrd.sW6636/lib/uhci-hcd.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5xen/kernel/fs/jbd/jbd.ko&apos; -&gt; `/tmp/initrd.sW6636/lib/jbd.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5xen/kernel/fs/ext3/ext3.ko&apos; -&gt; `/tmp/initrd.sW6636/lib/ext3.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/scsi/scsi_mod.ko&apos; -&gt; `/tmp/initrd.sW6636/lib/scsi_mod.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/scsi/sd_mod.ko&apos; -&gt; `/tmp/initrd.sW6636/lib/sd_mod.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5xen/updates/3w-9xxx.ko&apos; -&gt; `/tmp/initrd.sW6636/lib/3w-9xxx.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/ata/libata.ko&apos; -&gt; `/tmp/initrd.sW6636/lib/libata.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/ata/ahci.ko&apos; -&gt; `/tmp/initrd.sW6636/lib/ahci.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/usb/storage/usb-storage.ko&apos; -&gt; `/tmp/initrd.sW6636/lib/usb-storage.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/md/dm-mod.ko&apos; -&gt; `/tmp/initrd.sW6636/lib/dm-mod.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/md/dm-mirror.ko&apos; -&gt; `/tmp/initrd.sW6636/lib/dm-mirror.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/md/dm-zero.ko&apos; -&gt; `/tmp/initrd.sW6636/lib/dm-zero.ko&apos;
`/lib/modules/2.6.18-92.1.6.el5xen/kernel/drivers/md/dm-snapshot.ko&apos; -&gt; `/tmp/initrd.sW6636/lib/dm-snapshot.ko&apos;
/sbin/lvm.static -&gt; /tmp/initrd.sW6636/bin/lvm
/etc/lvm -&gt; /tmp/initrd.sW6636/etc/lvm
`/etc/lvm/lvm.conf&apos; -&gt; `/tmp/initrd.sW6636/etc/lvm/lvm.conf&apos;
/sbin/dmraid.static -&gt; /tmp/initrd.sW6636/bin/dmraid
/sbin/kpartx.static -&gt; /tmp/initrd.sW6636/bin/kpartx
Adding module ehci-hcd
Adding module ohci-hcd
Adding module uhci-hcd
Adding module jbd
Adding module ext3
Adding module scsi_mod
Adding module sd_mod
Adding module 3w-9xxx
Adding module libata
Adding module ahci
Adding module usb-storage
Adding module dm-mod
Adding module dm-mirror
Adding module dm-zero
Adding module dm-snapshot
&lt;/code&gt;

Now we reboot, and it should boot sucessfully into xen.
				
				</description>
				
				
				<category>Xen</category>
				
				<category>Linux</category>
				
				<pubDate>Mon, 30 Jun 2008 18:42:00 -0400</pubDate>
				<guid>http://www.ruslansivak.com/2008/6/30/3ware-9690SA-on-CentOS-52-x8664-with-Xen</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>3ware 9690SA on CentOS 5.1 x86_64 with Xen</title>
				<link>http://www.ruslansivak.com/2008/6/10/3ware-9690SA-on-CentOS-51-x8664-with-Xen</link>
				<description>
				
				9690SA Support doesn&apos;t come with the distribution until CentOS 5.2, so for 5.1 you will need some tricks to get it to work. 

First download the driver disk from 3ware.  If you are using a Xen kernel, you will need to get it from this knowledgebase article:  &lt;a href=&quot;http://www.3ware.com/KB/article.aspx?id=15257&quot;&gt;http://www.3ware.com/KB/article.aspx?id=15257&lt;/a&gt;. 

Extract the files and put them on a floppy.  When installing linux you will need to type in &apos;linux dd&apos; in the prompt when you boot off the CentOS 5.1 DVD/CD.  

After installation, everything appears to be fine, but once you run yum update, and it updates the kernel, you will be unable to boot into the new kernel.  We will need to do a few steps before it will work with a new kernel.  

First, download the driver disk to your CentOS 5.1 box.  (I couldn&apos;t get the URL off the page, so I FTPed the file over).  

unzip the file:
&lt;code&gt;# unzip 191-3w-95xx-9650_9690_rhel5-kernel2.6.18-53.EL5-installdisk-x86_64-9.5-GUID083205f49ac341bc980c5c58ff4f1bc0.zip
Archive:  191-3w-95xx-9650_9690_rhel5-kernel2.6.18-53.EL5-installdisk-x86_64-9.5-GUID083205f49ac341bc980c5c58ff4f1bc0.zip
  inflating: modinfo
  inflating: modules.alias
  inflating: modules.cgz
  inflating: modules.dep
  inflating: modules.pcimap
  inflating: pci.ids
  inflating: pcitable
  inflating: Readme
  inflating: rhdd
&lt;/code&gt;

Now we need to get the kernel modules out of modules.cgz.  

&lt;code&gt;
# zcat modules.cgz | cpio -ivd
2.6.18-53.el5
2.6.18-53.el5/x86_64
2.6.18-53.el5/x86_64/3w-9xxx.ko
2.6.18-53.el5xen
2.6.18-53.el5xen/x86_64
2.6.18-53.el5xen/x86_64/3w-9xxx.ko
1419 blocks
&lt;/code&gt;

Since we are updating a regular kernel - not xen, we will use the 2.6.18-53.el5/x86_64/3w-9xxx.ko file. 

&lt;code&gt;# cp 2.6.18-53.el5/x86_64/3w-9xxx.ko /lib/modules/2.6.18-53.1.21.el5/updates/&lt;/code&gt;

Now we need to make a new initrd

&lt;code&gt;
# depmod 2.6.18-53.1.21.el5
# cp /boot/initrd-2.6.18-53.1.21.el5.img /boot/initrd-2.6.18-53.1.21.el5.img.old
# # mkinitrd -v -f /boot/initrd-2.6.18-53.1.21.el5.img 2.6.18-53.1.21.el5
Creating initramfs
Looking for deps of module uhci-hcd
Looking for deps of module ohci-hcd
Looking for deps of module ehci-hcd
Looking for deps of module ext3: jbd
Looking for deps of module jbd
Looking for driver for device sda2
Looking for deps of module pci:v000013C1d00001005sv000013C1sd00001005bc01sc04i00: scsi_mod 3w-9xxx
Looking for deps of module scsi_mod
Looking for deps of module sd_mod: scsi_mod
Looking for deps of module 3w-9xxx: scsi_mod
Looking for deps of module ahci: scsi_mod libata
Looking for deps of module libata: scsi_mod
Looking for deps of module usb-storage: scsi_mod
Looking for deps of module ide-disk
Looking for deps of module dm-mod
Looking for deps of module dm-mirror: dm-mod
Looking for deps of module dm-zero: dm-mod
Looking for deps of module dm-snapshot: dm-mod
Using modules:  /lib/modules/2.6.18-53.1.21.el5/kernel/drivers/usb/host/uhci-hcd.ko /lib/modules/2.6.18-53.1.21.el5/kernel/drivers/usb/host/ohci-hcd.ko /lib/modules/2.6.18-53.1.21.el5/kernel/drivers/usb/host/ehci-hcd.ko /lib/modules/2.6.18-53.1.21.el5/kernel/fs/jbd/jbd.ko /lib/modules/2.6.18-53.1.21.el5/kernel/fs/ext3/ext3.ko /lib/modules/2.6.18-53.1.21.el5/kernel/drivers/scsi/scsi_mod.ko /lib/modules/2.6.18-53.1.21.el5/kernel/drivers/scsi/sd_mod.ko /lib/modules/2.6.18-53.1.21.el5/updates/3w-9xxx.ko /lib/modules/2.6.18-53.1.21.el5/kernel/drivers/ata/libata.ko /lib/modules/2.6.18-53.1.21.el5/kernel/drivers/ata/ahci.ko /lib/modules/2.6.18-53.1.21.el5/kernel/drivers/usb/storage/usb-storage.ko /lib/modules/2.6.18-53.1.21.el5/kernel/drivers/md/dm-mod.ko /lib/modules/2.6.18-53.1.21.el5/kernel/drivers/md/dm-mirror.ko /lib/modules/2.6.18-53.1.21.el5/kernel/drivers/md/dm-zero.ko /lib/modules/2.6.18-53.1.21.el5/kernel/drivers/md/dm-snapshot.ko
/sbin/nash -&gt; /tmp/initrd.fI5163/bin/nash
/sbin/insmod.static -&gt; /tmp/initrd.fI5163/bin/insmod
copy from `/lib/modules/2.6.18-53.1.21.el5/kernel/drivers/usb/host/uhci-hcd.ko&apos; [elf64-x86-64] to `/tmp/initrd.fI5163/lib/uhci-hcd.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5/kernel/drivers/usb/host/ohci-hcd.ko&apos; [elf64-x86-64] to `/tmp/initrd.fI5163/lib/ohci-hcd.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5/kernel/drivers/usb/host/ehci-hcd.ko&apos; [elf64-x86-64] to `/tmp/initrd.fI5163/lib/ehci-hcd.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5/kernel/fs/jbd/jbd.ko&apos; [elf64-x86-64] to `/tmp/initrd.fI5163/lib/jbd.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5/kernel/fs/ext3/ext3.ko&apos; [elf64-x86-64] to `/tmp/initrd.fI5163/lib/ext3.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5/kernel/drivers/scsi/scsi_mod.ko&apos; [elf64-x86-64] to `/tmp/initrd.fI5163/lib/scsi_mod.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5/kernel/drivers/scsi/sd_mod.ko&apos; [elf64-x86-64] to `/tmp/initrd.fI5163/lib/sd_mod.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5/updates/3w-9xxx.ko&apos; [elf64-x86-64] to `/tmp/initrd.fI5163/lib/3w-9xxx.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5/kernel/drivers/ata/libata.ko&apos; [elf64-x86-64] to `/tmp/initrd.fI5163/lib/libata.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5/kernel/drivers/ata/ahci.ko&apos; [elf64-x86-64] to `/tmp/initrd.fI5163/lib/ahci.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5/kernel/drivers/usb/storage/usb-storage.ko&apos; [elf64-x86-64] to `/tmp/initrd.fI5163/lib/usb-storage.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5/kernel/drivers/md/dm-mod.ko&apos; [elf64-x86-64] to `/tmp/initrd.fI5163/lib/dm-mod.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5/kernel/drivers/md/dm-mirror.ko&apos; [elf64-x86-64] to `/tmp/initrd.fI5163/lib/dm-mirror.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5/kernel/drivers/md/dm-zero.ko&apos; [elf64-x86-64] to `/tmp/initrd.fI5163/lib/dm-zero.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5/kernel/drivers/md/dm-snapshot.ko&apos; [elf64-x86-64] to `/tmp/initrd.fI5163/lib/dm-snapshot.ko&apos; [elf64-x86-64]
/sbin/lvm.static -&gt; /tmp/initrd.fI5163/bin/lvm
/etc/lvm -&gt; /tmp/initrd.fI5163/etc/lvm
`/etc/lvm/lvm.conf&apos; -&gt; `/tmp/initrd.fI5163/etc/lvm/lvm.conf&apos;
/sbin/dmraid.static -&gt; /tmp/initrd.fI5163/bin/dmraid
/sbin/kpartx.static -&gt; /tmp/initrd.fI5163/bin/kpartx
Adding module uhci-hcd
Adding module ohci-hcd
Adding module ehci-hcd
Adding module jbd
Adding module ext3
Adding module scsi_mod
Adding module sd_mod
Adding module 3w-9xxx
Adding module libata
Adding module ahci
Adding module usb-storage
Adding module dm-mod
Adding module dm-mirror
Adding module dm-zero
Adding module dm-snapshot
&lt;/code&gt;

As you can see, it used our version of the 3w-9xxx.ko instead of the one that came with the kernel.  

Now we reboot and see that it books successfully into the new kernel.  

&lt;code&gt;# shutdown -r now&lt;/code&gt;

Now lets say that we have a xen kernel.  Either by installing the stock xen or using the 3.2 version from my companion entry, now we need to update the 3w-9xxx.ko for that kernel as well, otherwise it won&apos;t boot.  The steps are pretty similar, substituting the proper kernel version, we get: 

&lt;code&gt;# cp 2.6.18-53.el5xen/x86_64/3w-9xxx.ko /lib/modules/2.6.18-53.1.21.el5xen/updates/&lt;/code&gt;

Now we need to make a new initrd

&lt;code&gt;
# depmod 2.6.18-53.1.21.el5xen
# cp /boot/initrd-2.6.18-53.1.21.el5xen.img /boot/initrd-2.6.18-53.1.21.el5xen.img.old
# mkinitrd -v -f /boot/initrd-2.6.18-53.1.21.el5xen.img 2.6.18-53.1.21.el5xen
Creating initramfs
Looking for deps of module uhci-hcd
Looking for deps of module ohci-hcd
Looking for deps of module ehci-hcd
Looking for deps of module ext3: jbd
Looking for deps of module jbd
Looking for driver for device sda2
Looking for deps of module pci:v000013C1d00001005sv000013C1sd00001005bc01sc04i00: scsi_mod 3w-9xxx
Looking for deps of module scsi_mod
Looking for deps of module sd_mod: scsi_mod
Looking for deps of module 3w-9xxx: scsi_mod
Looking for deps of module ahci: scsi_mod libata
Looking for deps of module libata: scsi_mod
Looking for deps of module usb-storage: scsi_mod
Looking for deps of module ide-disk
Looking for deps of module dm-mod
Looking for deps of module dm-mirror: dm-mod
Looking for deps of module dm-zero: dm-mod
Looking for deps of module dm-snapshot: dm-mod
Using modules:  /lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/usb/host/uhci-hcd.ko /lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/usb/host/ohci-hcd.ko /lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/usb/host/ehci-hcd.ko /lib/modules/2.6.18-53.1.21.el5xen/kernel/fs/jbd/jbd.ko /lib/modules/2.6.18-53.1.21.el5xen/kernel/fs/ext3/ext3.ko /lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/scsi/scsi_mod.ko /lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/scsi/sd_mod.ko /lib/modules/2.6.18-53.1.21.el5xen/updates/3w-9xxx.ko /lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/ata/libata.ko /lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/ata/ahci.ko /lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/usb/storage/usb-storage.ko /lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/md/dm-mod.ko /lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/md/dm-mirror.ko /lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/md/dm-zero.ko /lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/md/dm-snapshot.ko
/sbin/nash -&gt; /tmp/initrd.Js4624/bin/nash
/sbin/insmod.static -&gt; /tmp/initrd.Js4624/bin/insmod
copy from `/lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/usb/host/uhci-hcd.ko&apos; [elf64-x86-64] to `/tmp/initrd.Js4624/lib/uhci-hcd.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/usb/host/ohci-hcd.ko&apos; [elf64-x86-64] to `/tmp/initrd.Js4624/lib/ohci-hcd.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/usb/host/ehci-hcd.ko&apos; [elf64-x86-64] to `/tmp/initrd.Js4624/lib/ehci-hcd.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5xen/kernel/fs/jbd/jbd.ko&apos; [elf64-x86-64] to `/tmp/initrd.Js4624/lib/jbd.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5xen/kernel/fs/ext3/ext3.ko&apos; [elf64-x86-64] to `/tmp/initrd.Js4624/lib/ext3.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/scsi/scsi_mod.ko&apos; [elf64-x86-64] to `/tmp/initrd.Js4624/lib/scsi_mod.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/scsi/sd_mod.ko&apos; [elf64-x86-64] to `/tmp/initrd.Js4624/lib/sd_mod.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5xen/updates/3w-9xxx.ko&apos; [elf64-x86-64] to `/tmp/initrd.Js4624/lib/3w-9xxx.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/ata/libata.ko&apos; [elf64-x86-64] to `/tmp/initrd.Js4624/lib/libata.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/ata/ahci.ko&apos; [elf64-x86-64] to `/tmp/initrd.Js4624/lib/ahci.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/usb/storage/usb-storage.ko&apos; [elf64-x86-64] to `/tmp/initrd.Js4624/lib/usb-storage.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/md/dm-mod.ko&apos; [elf64-x86-64] to `/tmp/initrd.Js4624/lib/dm-mod.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/md/dm-mirror.ko&apos; [elf64-x86-64] to `/tmp/initrd.Js4624/lib/dm-mirror.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/md/dm-zero.ko&apos; [elf64-x86-64] to `/tmp/initrd.Js4624/lib/dm-zero.ko&apos; [elf64-x86-64]
copy from `/lib/modules/2.6.18-53.1.21.el5xen/kernel/drivers/md/dm-snapshot.ko&apos; [elf64-x86-64] to `/tmp/initrd.Js4624/lib/dm-snapshot.ko&apos; [elf64-x86-64]
/sbin/lvm.static -&gt; /tmp/initrd.Js4624/bin/lvm
/etc/lvm -&gt; /tmp/initrd.Js4624/etc/lvm
`/etc/lvm/lvm.conf&apos; -&gt; `/tmp/initrd.Js4624/etc/lvm/lvm.conf&apos;
/sbin/dmraid.static -&gt; /tmp/initrd.Js4624/bin/dmraid
/sbin/kpartx.static -&gt; /tmp/initrd.Js4624/bin/kpartx
Adding module uhci-hcd
Adding module ohci-hcd
Adding module ehci-hcd
Adding module jbd
Adding module ext3
Adding module scsi_mod
Adding module sd_mod
Adding module 3w-9xxx
Adding module libata
Adding module ahci
Adding module usb-storage
Adding module dm-mod
Adding module dm-mirror
Adding module dm-zero
Adding module dm-snapshot
&lt;/code&gt;

Now we reboot, and it should boot sucessfully into xen.
				
				</description>
				
				
				<category>Xen</category>
				
				<category>Linux</category>
				
				<pubDate>Tue, 10 Jun 2008 17:33:00 -0400</pubDate>
				<guid>http://www.ruslansivak.com/2008/6/10/3ware-9690SA-on-CentOS-51-x8664-with-Xen</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Xen 3.2 on CentOS 5.1  x86_64 / RHEL 5.1 x86_64</title>
				<link>http://www.ruslansivak.com/2008/6/9/Xen-32-on-CentOS-51--x8664--RHEL-51-x8664</link>
				<description>
				
				Since my drivers are not signed, you will need to temporarily disable signature checking for yum. 

&lt;code&gt;
# vi /etc/yum.conf
&lt;/code&gt;
Make sure it says gpgcheck=0

Download the &lt;a href=&quot;http://www.ruslansivak.com/enclosures/xen%2D3%2E2%2E0%2DCentOS5%2E1%2Etar%2Egz&quot;&gt;file &lt;/a&gt; and untar it.  
&lt;code&gt;# tar xvzf xen-3.2.0-CentOS5.1.tar.gz
xen-3.2.0-CentOS5.1/
xen-3.2.0-CentOS5.1/xen-devel-3.2.0-0xs.x86_64.rpm
xen-3.2.0-CentOS5.1/xen-3.2.0-0xs.x86_64.rpm
xen-3.2.0-CentOS5.1/xen-libs-3.2.0-0xs.x86_64.rpm

# cd xen-3.2.0-CentOS5.1
&lt;/code&gt;

Install the RPMs. 
&lt;code&gt;# yum install -y xen-3.2.0-0xs.x86_64.rpm xen-libs-3.2.0-0xs.x86_64.rpm xen-devel-3.2.0-0xs.x86_64.rpm
&lt;/code&gt;

It will download a bunch of dependencies and install them.  Among them will be a new kernel - kernel-xen.  

&lt;code&gt;
# vi /etc/yum.conf
&lt;/code&gt;
Set gpgcheck back to the old value: gpgcheck=1 if it was originally 1.

The only problem at this point is that yum for some reason doesn&apos;t update the boot entry, so we have to do this manually.  

&lt;code&gt;
# vi /boot/grub/menu.lst
&lt;/code&gt;

&lt;code&gt;
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-53.1.21.el5xen)
        root (hd0,0)
        kernel /xen.gz-2.6.18-53.1.21.el5
        module /vmlinuz-2.6.18-53.1.21.el5xen ro root=/dev/VolGroup00/LogVol00
        module /initrd-2.6.18-53.1.21.el5xen.img
title CentOS (2.6.18-53.1.21.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-53.1.21.el5 ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-2.6.18-53.1.21.el5.img
title CentOS (2.6.18-53.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-53.el5 ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-2.6.18-53.el5.img

&lt;/code&gt;

We want to update the CentOS (2.6.18-53.1.21.el5xen) entry, and set it to use the proper kernel - xen.gz-3.2

This is what my updated menu.lst looks like - yours may differ.  I have also set the default to 0, so that it boots my xen kernel automatically.  

&lt;code&gt;# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-53.1.21.el5xen)
        root (hd0,0)
        kernel /xen.gz-3.2
        module /vmlinuz-2.6.18-53.1.21.el5xen ro root=/dev/VolGroup00/LogVol00
        module /initrd-2.6.18-53.1.21.el5xen.img
title CentOS (2.6.18-53.1.21.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-53.1.21.el5 ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-2.6.18-53.1.21.el5.img
title CentOS (2.6.18-53.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-53.el5 ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-2.6.18-53.el5.img
&lt;/code&gt;

Once you reboot you should automatically boot into the xen kernel and be able to create virtual machines.
				
				</description>
				
				
				<category>Xen</category>
				
				<category>Linux</category>
				
				<pubDate>Mon, 09 Jun 2008 17:15:00 -0400</pubDate>
				<guid>http://www.ruslansivak.com/2008/6/9/Xen-32-on-CentOS-51--x8664--RHEL-51-x8664</guid>
				
				
				<enclosure url="http://www.ruslansivak.com/enclosures/xen-3.2.0-CentOS5.1.tar.gz" length="5560912" type="application/gzip"/>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Creating sparse files on Linux</title>
				<link>http://www.ruslansivak.com/2008/6/5/Creating-sparse-files-on-Linux</link>
				<description>
				
				Sometimes it&apos;s usefull to create sparse files on Linux.  For example, when you&apos;re creating Xen hard disk images, creating a sparse file will take up much less space then creating a fully allocated file, and will only start taking up space as it fills up. 

&lt;code&gt;
dd if=/dev/zero of=filename.img bs=1k seek=128M count=1
&lt;/code&gt;
This will create a sparse file of 128GB.  Adjust the seek parameter to get the file size that you want.  

If you need to find out the real space that the file is taking up, use du -lah

&lt;code&gt;
# du -lah
20K     ./filename.img
28K     .
&lt;/code&gt;

Using ls will only show you how big the file is supposed to be

&lt;code&gt;
#ls -lah
total 36K
drwxr-xr-x 2 root root 4.0K Jun  5 13:59 .
drwxr-xr-x 3 root root 4.0K Jun  5 13:59 ..
-rw-r--r-- 1 root root 129G Jun  5 13:59 filename.img
&lt;/code&gt;
				
				</description>
				
				
				<category>Xen</category>
				
				<category>Linux</category>
				
				<pubDate>Thu, 05 Jun 2008 14:53:00 -0400</pubDate>
				<guid>http://www.ruslansivak.com/2008/6/5/Creating-sparse-files-on-Linux</guid>
				
				
			</item>
			
		 	
			</channel></rss>