<?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>www.LinuxGeek.net &#187; Linux</title>
	<atom:link href="http://www.linuxgeek.net/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxgeek.net</link>
	<description>Open Source and Linux Opinions and Reviews</description>
	<lastBuildDate>Sat, 10 Dec 2011 02:42:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Three Virtual Machines, one host</title>
		<link>http://www.linuxgeek.net/2011/04/06/three-virtual-machines/</link>
		<comments>http://www.linuxgeek.net/2011/04/06/three-virtual-machines/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 17:17:22 +0000</pubDate>
		<dc:creator>pacneil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://www.linuxgeek.net/?p=915</guid>
		<description><![CDATA[Just a word about this post:
<p>If this seems disjointed, illogical with more than a few misspelled words, come back later. This started out as my notes on configuring a set of virtual servers inside a client&#8217;s network. So I started writing as I went along. Eventually I&#8217;ll have it edited and make it final, but <p>keep reading <a href="http://www.linuxgeek.net/2011/04/06/three-virtual-machines/">Three Virtual Machines, one host</a></p>]]></description>
			<content:encoded><![CDATA[<h3>Just a word about this post:</h3>
<p>If this seems disjointed, illogical with more than a few misspelled words, come back later. This started out as my notes on configuring a set of virtual servers inside a client&#8217;s network. So I started writing as I went along. Eventually I&#8217;ll have it edited and make it final, but for now it&#8217;s just my notes. When it&#8217;s finished, I&#8217;ll remove this note.</p>
<p>Just sayin.</p>
<p>I have been tasked with setting up three virtual machines on a single host. These hosts will each have only one basic function on the company intranet. They will be a cvs server, a ftp server and a samba server. This will be a place to keep my notes.</p>
<p>Since I&#8217;m working with x86-64 hardware and all guest OS&#8217;s will be Linux, KVM seems the best choice. What I&#8217;ve read says it imposes very low overhead, and I like the ability to use a logical volume directly. I planned to install each virtual host into a separate logical volume, with the intention of being able to adjust the size of the hard drive inside the virtual machine, as needed by a changing business. We chose CentOS 5.5 as it seems a good choice for the standard on all this company&#8217;s servers. Most of their servers are RH or clones thereof.</p>
<h3>Hardware</h3>
<p>Dell PowerEdge R210 Intel® Core™ I3 540 3.06GHz, 4M Cache, 2C/4T 16 Gb Memory (4x4Gb) 2 x 2TB 7.2K RPM SATA 3.5in Cabled Hard Drive mirrored, DVD-ROM Drive and BMC.</p>
<p>On some Dell hardware, you also need to disable &#8220;Trusted Execution&#8221;, otherwise VT will not be enabled. That was not the case on this hardware. The CPU does have the VT extensions.</p>
<p>ftp server<br />
200 Gb<br />
1 CPU<br />
4 Gb RAM</p>
<p>cvs server<br />
300Gb<br />
1 CPU<br />
4 Gb RAM</p>
<p>samba server<br />
800Gb<br />
1 CPU<br />
4 Gb RAM</p>
<p>The machine came with 2 drives so that we could mirror them. The system came with software raid controller, so I just chose to use Linux built in software raid. I configured most of the the drive space in RAID I. To install the system I needed to create a 100M partition outside the raid, because <strong><em>/boot</em></strong> cannot be within the software raid.</p>
<p>Raid Devices</p>
<p>/boot  100MB<br />
/opt 100MB</p>
<p>After the install, I changed the options in fstab to ro,noauto,nouser,sync and then did a poor mans mirror</p>
<blockquote><p><code>dd if=/dev/sda1 of=/dev/sdb1</code></p></blockquote>
<p>The unexpected result was that this changed the label so the partition would no longer mount on /opt. I&#8217;ll have to relabel the partition and then add the entry back to the fstab file. I wonder what happens when you have two disks with the same disk label?</p>
<p>I found later one consequence, when I got in a state where I needed to try to upgrade to fix some things. The boot CD found two partitions /dev/sda1 and /dev/sdb1 with disklabel /boot. It refused to continue, telling me to fix that first. When I do this next time I will use tune2fs to relabel the partition. If we ever lose the drive with /boot, my hope is that it will allow us to continue running the system. This is a mirrored drive setup, and with a bootable partition, it can be recovered more simply.</p>
<p>The rest of the 2 terrabyte drive  became the Volume Group <em>System</em>. I&#8217;m not a fan of the default names used during the install. Which logical volume inside <em>VOL_GROUP00</em> contains the <em>/usr</em> partiton? Is it <em>VOL00</em> or <em>VOL01</em> or <em>VOL05</em>? I override the names and give them names that will help me identify the data, when I have to boot from a rescue CD and start copying the data off a failing system, or make a change to the fstab to get the system to boot from the still good drive in a mirrored pair.</p>
<p>Inside that I created logical volumes</p>
<p>logical volume <em>root</em> mounted on<em> /</em></p>
<p>logical volume <em>swap</em></p>
<p>Since the installer always wants a mount point for each partition and logical volume, I wait until after the install of the host system to create:</p>
<p>logical volume ftp for the ftp server</p>
<blockquote><p><code>lvcreate -L 200G -n ftp System</code></p></blockquote>
<p>logical volume cvs for the cvs server</p>
<blockquote><p><code>lvcreate -L 200G -n cvs System</code></p></blockquote>
<p>logical volume samba for the samba server</p>
<blockquote><p><code>lvcreate -L 200G -n samba System</code></p></blockquote>
<h3>Resizing logical volumes inside logical volumes</h3>
<p>1. shutdown virtual machine<br />
use kparx to add the logical volumes</p>
<blockquote><p><code>kpartx -a /dev/System/ftp</code></p>
<p>lvs</p>
<p>LV            VG      Attr    LSize     Origin  Snap%  Move  Log Copy% Convert<br />
samba      System    -wi-a-     1.00T<br />
cvs           System    -wi-a-  198.00G<br />
ftp           System     -wi-ao 248.00G<br />
root         System     -wi-ao    3.91G<br />
swap        System    -wi-ao    1.94G<br />
LogVol00 VolGroup00 -wi&#8212; 192.22G<br />
LogVol101 VolGroup00 -wi&#8211;    5.66G</p></blockquote>
<p>2. extend HOST logical volume</p>
<blockquote><p><code>lvextend --L+50G /dev/mapper/System-ftp<br />
Extending logical volume ftp to 248.00 GB<br />
Logical volume ftp successfully resized</code></p></blockquote>
<blockquote><p><code>vgdisplay -v</code></p></blockquote>
<p>3. resize the physical volume on the virtual machine</p>
<blockquote><p><code>pvresize --setphysicalvolumesize 248G /dev/vda2</code></p></blockquote>
<blockquote><p><code>lvextend -L+50G /dev/VolGroup00/LogVol00</code></p></blockquote>
<p><strong>This failed</strong>. I was able to resize the logical volumes on the host, but I kept getting errors similar to:</p>
<blockquote><p><code>device-mapper: reload ioctl failed: Invalid argument Failed to suspend LogVol00</code></p></blockquote>
<p>I found plenty of links to other people who&#8217;ve encountered this problem, but no solution. So we decided to fix the size of the logical volumes for each host and move on.</p>
<p>So I set fixed sizes for the logical volumes.</p>
<p>400G for the ftp server</p>
<p>557G for the cvs server</p>
<p>900G for the samba server</p>
<p>Then I installed CentOS 5.5 on each.</p>
<h3>Networking</h3>
<p>Getting the machines to connect to the LAN with addresses on that LAN was another challenge. The default CentOS install set up a virtual network between the hosts with an outbound NAT connection. I wanted each machine to have a discreet IP address and be as separated as possible. Same reason I had them running in their own logical volumes.</p>
<p>I found lots of descriptions of what I needed to do, but they all seemed to lacking a small piece of information. I discovered you must create the bridge device on the host first, before you install the virtual hosts. At least for me, I wasn&#8217;t able to install and then change the network configuration. I may not have understood the required modifications well enough.</p>
<p>I used the instructions from this site:</p>
<p><a title="CentOS / Redhat: KVM Bridged Network Configuration" href="http://www.cyberciti.biz/faq/rhel-linux-kvm-virtualization-bridged-networking-with-libvirt/" target="_blank">CentOS / Redhat: KVM Bridged Network Configuration</a></p>
<p>I first created the bridge device. I made backups of original files before I started. Remember to use prefix, not postfix notation. bak.ifcfg. The scripts look for any file that starts with ifcfg and then acts upon them. First a new file for the bridge device.</p>
<blockquote><p><code>vi /etc/sysconfig/network-scripts/ifcfg-br0</code></p>
<p>DEVICE=br0<br />
TYPE=Bridge<br />
BOOTPROTO=static<br />
IPADDR=192.168.1.5<br />
NETMASK=255.255.255.0<br />
GATEWAY=192.168.1.1<br />
ONBOOT=yes</p></blockquote>
<p>Then edit the ethernet configuration file, after making a backup:</p>
<blockquote><p><code><br />
vi /etc/sysconfig/network-scripts/ifcfg-eth0</code></p>
<p>DEVICE=eth0<br />
BOOTPROTO=none<br />
HWADR=12:34:56:78:91:23<br />
BRIDGE=br0<br />
ONBOOT=yes</p></blockquote>
<h3>Other interesting links:</h3>
<p><a title="Libvirt" href="http://cooker.techsnail.com/index.php/XEN,_KVM,_Libvirt_and_IPTables" target="_blank">Libvirt overwrites the existing iptables rules</a></p>
<p><a title="Redhat Hypervisor Deployment Guid" href="http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization/chap-Virtualization-Storage_Pools-Storage_Pools.html" target="_blank">Redhat Hypervisor Deployment Guide</a></p>
<p><a title="Xen Cloud Platform" href="http://www.xen.org/products/cloudxen.html" target="_blank">Xen Cloud Platform</a></p>
<p><a title="Setting Guest Network KVM" href="http://www.linux-kvm.org/page/Networking" target="_blank">Setting guest network</a></p>
<p><a title="VLAN bridge config" href="http://lists.centos.org/pipermail/centos-virt/2009-November/001422.html" target="_blank">VLAN bridge config</a></p>
<p><a title="How to Get Maximum Network Performance using paravirtual drivers and bridged networking" href="http://www.linux-kvm.com/content/tip-how-get-maximum-network-performance-using-paravirtual-drivers-and-bridged-networking" target="_blank">How to Get Maximum Network Performance using paravirtual drivers and bridged networking</a></p>
<p><a title="Using bridged networking with Virt-manager" href="http://www.linux-kvm.com/content/using-bridged-networking-virt-manager" target="_blank">Using bridged networking with Virt-manager</a></p>
<p><a title="A Quick Guide to Using KVM with CentOS-5.1" href="http://home.roadrunner.com/~computertaijutsu/centoskvm.html" target="_blank">A Quick Guide to Using KVM with CentOS-5.1</a></p>
<p><a title="Virtual Networking" href="http://people.gnome.org/~markmc/virtual-networking.html" target="_blank">Virtual Networking</a></p>
<p><a title="KVM is interesting again.. and how I setup my virtual network... " href="http://arstechnica.com/civis/viewtopic.php?f=16&amp;t=123445" target="_blank">KVM is interesting again.. and how I setup my virtual network&#8230;</a></p>
<p><a title="KVM Bridged Network - solutions and problems" href="http://ubuntuforums.org/showthread.php?t=888903"><strong>KVM Bridged Network &#8211; solutions and problems</strong></a></p>
<p><a title="CentOS / Redhat: KVM Bridged Network Configuration" href="http://www.cyberciti.biz/faq/rhel-linux-kvm-virtualization-bridged-networking-with-libvirt/" target="_blank">CentOS / Redhat: KVM Bridged Network Configuration</a></p>
<p><a title="How to setup Windows guest paravirtual network drivers" href="http://www.linux-kvm.com/content/tip-how-setup-windows-guest-paravirtual-network-drivers" target="_blank">How to setup Windows guest paravirtual network drivers</a></p>
<p><a title="CentOS 5.x Samba Domain Controller With LDAP Backend" href="http://www.howtoforge.com/centos-5.x-samba-domain-controller-with-ldap-backend" target="_blank">CentOS 5.x Samba Domain Controller With LDAP Backend</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxgeek.net/2011/04/06/three-virtual-machines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache with Syslog</title>
		<link>http://www.linuxgeek.net/2010/04/16/898/</link>
		<comments>http://www.linuxgeek.net/2010/04/16/898/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 00:19:36 +0000</pubDate>
		<dc:creator>pacneil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://www.linuxgeek.net/?p=898</guid>
		<description><![CDATA[<p>I just updated the page for Remote Logging Apache with Syslog-ng. </p>
<p>I hope it saves you some time and you find it useful.</p>
]]></description>
			<content:encoded><![CDATA[<p>I just updated the page for <a title="Remote logging Apache with Syslog-ng" href="http://www.linuxgeek.net/apache-with-syslog-ng" target="_blank">Remote Logging Apache with Syslog-ng. </a></p>
<p>I hope it saves you some time and you find it useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxgeek.net/2010/04/16/898/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is MeeGo Linux’ Answer to iPad?</title>
		<link>http://www.linuxgeek.net/2010/02/16/is-meego-linux%e2%80%99-answer-to-ipad/</link>
		<comments>http://www.linuxgeek.net/2010/02/16/is-meego-linux%e2%80%99-answer-to-ipad/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 19:22:39 +0000</pubDate>
		<dc:creator>pacneil</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.linuxgeek.net/?p=832</guid>
		<description><![CDATA[<p>Three weeks ago, the technology world was aflutter with buzz of the iPad. But with yesterday&#8217;s MeeGo announcement from Intel, the Linux Foundation and Nokia, it appears that Apple could have a Linux-based competitor for tablets, netbooks and other categories of devices.</p>
<p>&#8230;&#8230; read more</p>
<p> </p>
]]></description>
			<content:encoded><![CDATA[<p>Three weeks ago, the technology world was aflutter with buzz of the iPad. But with yesterday&#8217;s MeeGo announcement from Intel, the Linux Foundation and Nokia, it appears that Apple could have a Linux-based competitor for tablets, netbooks and other categories of devices.</p>
<p>&#8230;&#8230; <a title=" Is MeeGo Linux’ Answer to iPad?" href="http://www.linux.com/news/embedded-mobile/netbooks/287100-is-meego-linux-answer-to-ipad" target="_blank">read more</a></p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxgeek.net/2010/02/16/is-meego-linux%e2%80%99-answer-to-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenSuSe hardware failure</title>
		<link>http://www.linuxgeek.net/2009/07/10/opensuse-hardware-failure/</link>
		<comments>http://www.linuxgeek.net/2009/07/10/opensuse-hardware-failure/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 19:59:14 +0000</pubDate>
		<dc:creator>pacneil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[diagnostics]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[interrupts]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[IRQ]]></category>
		<category><![CDATA[Network Manager]]></category>
		<category><![CDATA[OpenSuse]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.linuxgeek.net/?p=515</guid>
		<description><![CDATA[<p>I got a call from a customer asking for help with a subversion server that suddenly went off-line. The system was running SuSe 10.1, apache2 and subversion, and almost nothing else. It had been operating for 2 years in the server room, in a headless configuration. The developers that used it connected with their Windows <p>keep reading <a href="http://www.linuxgeek.net/2009/07/10/opensuse-hardware-failure/">OpenSuSe hardware failure</a></p>]]></description>
			<content:encoded><![CDATA[<p>I got a call from a customer asking for help with a subversion server that suddenly went off-line. The system was running SuSe 10.1, apache2 and subversion, and almost nothing else. It had been operating for 2 years in the server room, in a headless configuration. The developers that used it connected with their Windows machines and everything worked flawlessly  for two years. Suddenly, last week, it became unresponsive. They tried rebooting the server, nothing worked. nothing had changed in the configuration, and since this machine was only accessible in the LAN, and protected by a firewall, they hadn&#8217;t even done any upgrades. Their attitude could best be described &#8220;if it&#8217;s not broken, don&#8217;t fix it&#8221;. <img src='http://www.linuxgeek.net/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
<p>Before I was called in, the customer had installed a new ethernet card, on the assumption that the on-board card had failed. They came to that conclusion because they couldn&#8217;t ping out, and no other machines could ping the server. A good assumption, I think. However, the new ethernet card didn&#8217;t fix the problem. That&#8217;s when they called me in. <img src='http://www.linuxgeek.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>We went through the configuration with a fine tooth comb. We disabled Network Manager, since I&#8217;ve known it to cause issues on some systems. Everything seemed fine, but the network still didn&#8217;t work. The network configuration was static. So we changed to using dhcp to get an address. This worked, it got an address, but we still couldn&#8217;t ping either direction, from the server or to the server. We looked for alternate kernels we could boot, to see if it was a kernel specific problem, however there was only one kernel available. As I recall there wasn&#8217;t even a failsafe option in the boot menu.</p>
<p>As part of the diagnostic process we put a laptop on the wired network and tried pinging it from the server. No response. we checked the ARP tables and there was an entry for the server we was working on, with it&#8217;s IP and MAC addresses. We concluded that the server could &#8220;talk&#8221; but couldn&#8217;t &#8220;hear&#8221;. We checked for firewall rules that might be blocking. There were none.  We checked the arp tables on the server, and there were entries, without host names, for other machines on the network. None of us had see this before. The plot thickens. <img src='http://www.linuxgeek.net/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
<p> So next we decided to try a Knoppix live CD to test the hardware. we figured if Knoppix worked, then there was a software configuration problem. Sure enough, Knoppix booted and networking was working. We could ping, other machines on the network could ping the server.  So we concluded that it must be something in the software. <img src='http://www.linuxgeek.net/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>We again, went through the network configuration files. Suspecting that there may have been some corruption in the files, we manually rewrote them from scratch. We thought there was a possibility of unprintable characters in the configuration files that was causing them not to work properly. We flushed the firewall rules for good measure with <b><i>iptables -F</i></b> just to make sure there were no rules, that were not being reported by <b><i>iptables -L</i></b>. Still no change. <img src='http://www.linuxgeek.net/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>Still operating under the assumption that there was a configuration errors somewhere, we decided to try an upgrade, to OpenSuSE 11.1. We backed up all the configuration files and data to an external USB drive. Then we did an upgrade. Upgrading is a pretty slow process, relative to a fresh install. Nothing changed. <img src='http://www.linuxgeek.net/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  </p>
<p>Next we tried a fresh install, no change. Then I tried another distributions, CentOS 5. Still no change. Finally as my frustration mounted, I did ifup eth0 and a root console popped up displaying an error message. &#8220;&#8230;. irq #66 disabled&#8221; So we googled the error and found that this kind of error appears when there are spurious interrupts on the bus. After a couple more tests we concluded that there was some kind of hardware problem, that we hadn&#8217;t seen before. Since the system was under warranty, we contacted the manufacturer and they replaced the motherboard. After a fresh install, the system came up and ran perfectly. <img src='http://www.linuxgeek.net/wp-includes/images/smilies/icon_cool.gif' alt='8-)' class='wp-smiley' /> </p>
<p>This is one of the things I both love and hate about this business. Everyday there is a new problem to be solved that we&#8217;ve never seen before. I hope this saves someone else some time diagnosing their hardware problems.   </p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxgeek.net/2009/07/10/opensuse-hardware-failure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving CentOS to new hardware</title>
		<link>http://www.linuxgeek.net/2009/06/27/moving-centos-to-new-hardware/</link>
		<comments>http://www.linuxgeek.net/2009/06/27/moving-centos-to-new-hardware/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 03:26:51 +0000</pubDate>
		<dc:creator>pacneil</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.linuxgeek.net/?p=501</guid>
		<description><![CDATA[<p>I&#8217;ve been working on a customers system, upgrading the motherboard and memory for better performance and reliability. We replaced an MSI motherboard with a SuperMicro Server board.  When I tried to boot up the system after installing the new hardware, I got the following message in the screen.</p>
<p>
uncompressing linux
OK  booting the kernel
Red Hat <p>keep reading <a href="http://www.linuxgeek.net/2009/06/27/moving-centos-to-new-hardware/">Moving CentOS to new hardware</a></p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on a customers system, upgrading the motherboard and memory for better performance and reliability. We replaced an MSI motherboard with a SuperMicro Server board.  When I tried to boot up the system after installing the new hardware, I got the following message in the screen.</p>
<p><code><br />
uncompressing linux<br />
OK  booting the kernel<br />
Red Hat nash version 4.2.1.10 starting<br />
Ext3-fs: unable to read superblock<br />
mount error 22 mounting ext3<br />
mount error 2 now mounting none<br />
switchroot: mount failed 22<br />
umount /initrd/dev failed 2<br />
Kernel panic not syncing<br />
Attempted to kill init<br />
</code></p>
<p>It&#8217;s been a while since I had issues like this. So I went looking through Google for answers. Isn&#8217;t that what everyone does these days? Everything search showed seemed to indicate a problem with the the raid. So I tried to look for a problem with the raid partitions. First I used Knoppix. I found a web site <a href="http://www.howtoforge.com/recover_data_from_raid_lvm_partitions">Recover Data From RAID1 LVM Partitions With Knoppix Linux LiveCD</a> I followed the instructions, using <i>mdadm &#8211;examine &#8211;scan</i> to examine the partitions and manually set up the raid. Everything worked fine. I could see the raid partitions, I could mount them and view the data. <i>cat /proc/mdstat</i> showed the  proper raided partitions. So what&#8217;s the problem?</p>
<p>Next I tried the rescue option of the Centos CD. The system booted fine, and the rescue mode dutifully mount all the partitions in the right order to <i>/mnt/sysimage</i>. But still no love when I tried to boot. Next I got on irc and talked to some of my friends from <a href="http://www.kernel-panic.org">KPLUG</a>.</p>
<p>One suggested trying to boot to the grub prompt and running boot options by hand, using tab completion. He suggested that perhaps the system wasn&#8217;t recognizing the drive. It seemed plausible, so I tested it. But the system seemed to be finding the <i>/boot</i> partition just fine and tab completion found the init ram disk fine. </p>
<p>Another suggested that the failure of the system to recognize the drives was caused by not loading the proper controller module. This had not occurred to me, because I thought I remembered that all the modules for hard drive host controllers were built into the kernel. At least that&#8217;s the way I used to build them. I remembered wrong. My friend suggested that I look at <i>/etc/modprobe.conf</i> and check the <i>scsci_hostadapter</i> parameter. So I booted into the Centos CD rescue mode, as the system booted I noticed the message <i>loading ata_piix</i>. This was the clue I had been missing. I edited the <i>/etc/modprobe.conf</i> file and changed the reference there. When I attempted to reboot the system the raid partitions were recognized and the system finished booting. </p>
<p>Once upon a time, modules for hard drives were included in the kernel, not loaded at boot time. Now with the size of kernels getting very large, nearly everything is loaded at boot. That&#8217;s fine for things like ethernet and sound cards. It&#8217;s always been a point of pride with me, that we could take the hard drives from one system, and install them into another system and it would just run.  I guess that&#8217;s no longer true.  </p>
<p>IMNSHO this is not progress. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxgeek.net/2009/06/27/moving-centos-to-new-hardware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lenny ldap problem solved</title>
		<link>http://www.linuxgeek.net/2009/05/05/lenny-ldap-problem-solved/</link>
		<comments>http://www.linuxgeek.net/2009/05/05/lenny-ldap-problem-solved/#comments</comments>
		<pubDate>Tue, 05 May 2009 15:49:21 +0000</pubDate>
		<dc:creator>pacneil</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.linuxgeek.net/?p=492</guid>
		<description><![CDATA[<p>After some poking around I found the solution to my ldap problem. I started reading the log files, turned on debugging in the init.d file and determined  ldap was not starting.  I started reviewing and checking the slapd.conf file and noticed that I was missing the samba.schema file, previously named samba3.schema.</p>
<p>So I started <p>keep reading <a href="http://www.linuxgeek.net/2009/05/05/lenny-ldap-problem-solved/">Lenny ldap problem solved</a></p>]]></description>
			<content:encoded><![CDATA[<p>After some poking around I found the solution to my ldap problem. I started reading the log files, turned on debugging in the init.d file and determined  ldap was not starting.  I started reviewing and checking the <code>slapd.conf </code>file and noticed that I was missing the <code>samba.schema</code> file, previously named <code>samba3.schema</code>.</p>
<p>So I started looking for it on my system. Not to be found. Not where it belonged in <code>/etc/ldap/schema</code> not in <code>/usr/share/docs/samba</code>. I used <code>find<br />
</code> to search my system, looking for the schema file. In Debian, even if you install packages that support the ldap authentication method for samba, you don&#8217;t get the <code>samba.schema</code> file necessary to make it work. You have to install samba-doc and then move or copy the <code>samba.schema</code> file to the right place to make it work. </p>
<p>I installed the samba-doc package and the schema file in <code>/usr/share/doc/samba-doc/examples/LDAP</code> I have to question what the Debian developers were thinking when they put the schema file in the samba-doc package. I didn&#8217;t install most of the optional doc packages, because my space is a little tight and  I am trying to conserve it the best I can.</p>
<p>Once I found the <code>samba.schema</code> file and put it in the right place, I used <code>ldapadd</code> to install my ldif file and restarted slapd. After that,  everything  worked fine and samba is up and running as it was before I did the upgrade to Lenny.</p>
<p>Onward &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxgeek.net/2009/05/05/lenny-ldap-problem-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading from Debian  Etch to Lenny</title>
		<link>http://www.linuxgeek.net/2009/05/04/upgrading-from-debian-etch-to-lenny/</link>
		<comments>http://www.linuxgeek.net/2009/05/04/upgrading-from-debian-etch-to-lenny/#comments</comments>
		<pubDate>Mon, 04 May 2009 16:32:51 +0000</pubDate>
		<dc:creator>pacneil</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.linuxgeek.net/?p=484</guid>
		<description><![CDATA[<p>I recently decided it was time to upgrade my workstation  from Etch to Lenny. Several of the applications were showing bugs and it looked like Lenny had stabilized enough to use it. I&#8217;m alway reluctant to upgrade. In my experience something always breaks, and I spend an inordinate amount of time figuring out how <p>keep reading <a href="http://www.linuxgeek.net/2009/05/04/upgrading-from-debian-etch-to-lenny/">Upgrading from Debian  Etch to Lenny</a></p>]]></description>
			<content:encoded><![CDATA[<p>I recently decided it was time to upgrade my workstation  from Etch to Lenny. Several of the applications were showing bugs and it looked like Lenny had stabilized enough to use it. I&#8217;m alway reluctant to upgrade. In my experience something always breaks, and I spend an inordinate amount of time figuring out how to repair the broken system.</p>
<p>So I found the instruction <a href="http://www.debian.org/releases/lenny/i386/release-notes/ch-upgrading.html"> Chapter 4: Upgrading from previous releases</a>. I followed the  instructions, except for <a href="http://www.debian.org/releases/lenny/i386/release-notes/ch-upgrading.en.html#record-session"> recording the session</a>. Next time I&#8217;ll probably consider doing this too. Everything seemed to go well. I managed to do the entire upgrade, while logged into the machine, and reading the web page in the browser running on that same machine. I was pretty impressed,  I have to say. I was even able to chat on IRC with my friends while I did the upgrade.</p>
<p>Nothing ever works perfectly. For some reason, every time I upgrade even the kernel, it messes up my /boot/grub/menu.lst  My boot drive is /dev/sda2 but it keeps getting set to /dev/sdb2, go figure. After repeatedly having this problem, it really doesn&#8217;t bother me that much anymore. It&#8217;s just a minor annoyance.</p>
<p>I have a samba share where I store all my Windows data files. I don&#8217;t trust Windows to keep my data safe, so I store it on  my Linux machine. I use ldap for authentication. So after my upgrade I tripped over &lt;a href=&#8221;http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495954&#8243; bug #495954&lt;/a&gt; I found it interesting that this bug seemed to have been reported and verified by several people, but no one seemed to want to report a work around. Either my Google foo is weak, or no one has reported how to work around this. I&#8217;m in the process of reconstructing my authentication system from scratch. I also notice there is no samba3 schema file. I&#8217;m still trying to track this down.</p>
<p>More later &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxgeek.net/2009/05/04/upgrading-from-debian-etch-to-lenny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

