<?xml version='1.0' encoding='utf-8'?>
<!-- generator="bashblogger/0.3.6" -->
<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/"
>

	<channel>
		<title>Kevin Foote</title>
		<link>http://www.people.iup.edu/kpfoote</link>
		<description>work related</description>
		<pubDate>Wed, 11 Nov 2009 09:20:45 EST</pubDate>
		<generator>Bash Blogger-0.3.6</generator>
		<language>en</language>
		<image>
			<url>http://www.people.iup.edu/kpfoote/feed-icon-10x10.png</url>
			<title>Kevin Foote</title>
			<link>http://www.people.iup.edu/kpfoote</link>
			<width>88</width>
			<height>31</height>
		</image>
			<item>
		<title>Disks and their alignment</title>
		<link>http://www.people.iup.edu/kpfoote/archives/2009/11/06/disks_and_their_alignment/</link>
		<pubDate>Fri,  6 Nov 2009 15:12:13 EST</pubDate>
		<dc:creator>Kevin Foote</dc:creator>
		<guid>http://www.people.iup.edu/kpfoote/archives/2009/11/06/disks_and_their_alignment/</guid>
		<category>work</category>
		<enclosure url="http://www.people.iup.edu/kpfoote/podcasts/" length="" type="" />
		<description><![CDATA[
The idea of <a href="http://www.google.com/search?q=disk%20alignment">disk alignment</a> has come up around our environment. We are not seeing any dramatic effects of of this currently, however since we are still young in the game ov VMs in general we might as well get started off right. [...] ]]></description>
		<content:encoded><![CDATA[<p>
The idea of <a href="http://www.google.com/search?q=disk%20alignment">disk alignment</a> has come up around our environment. We are not seeing any dramatic effects of of this currently, however since we are still young in the game ov VMs in general we might as well get started off right.
</p>

<p>
To that end I have started to work on realigning the templates for linux hosts. I have worked up a quick idea of how to make this work, we'll see how it goes.
</p>

<ul>
<li>convert template to VM
<li>add an identical sized disk
<li>boot VM
<li>use fdisk to set the partition info on second drive correctly
<li>reboot system to <a href="http://pld-linux.org">PLD</a>
<li>dd if=/dev/sda1 of=/dev/sdb1
<li>dd if=/dev/sda2 of=/dev/sdb2
<li>fdisk /dev/sdb to verify
<li>use VMwIC to rearange the disks such that our sdb is used to boot
<li>boot to RHEL5 disk 
<li>run GRUB sequence to set hd0 etc.. 
<li>reboot on new disk .. 
</ul>

<p>
Hope it works!
</p>

<p>
All this is to avoid another dredded install :-) 
And of course its fun to monkey with disks like this.
</p>]]></content:encoded>
	</item>
	<item>
		<title>Disk resize redone</title>
		<link>http://www.people.iup.edu/kpfoote/archives/2009/10/27/disk_resize_redone/</link>
		<pubDate>Tue, 27 Oct 2009 10:06:31 EDT</pubDate>
		<dc:creator>Kevin Foote</dc:creator>
		<guid>http://www.people.iup.edu/kpfoote/archives/2009/10/27/disk_resize_redone/</guid>
		<category>work</category>
		<enclosure url="http://www.people.iup.edu/kpfoote/podcasts/" length="" type="" />
		<description><![CDATA[
I have a few templates that I use when deploying Linux based VMs around here. These come 
pretty stripped down and minimalist. Getting them up to a usable system is fairly quick with 
vmware.

But I just made it a bit quicker with my latest template.
The use of LVM is pretty slick for disk type stuff and I was amazed how simple it was to resize 
and work with the system and other disks. I have just stream-lined my disk growing process by locating the 
swap space on a LV rather than out on a separate disk partition. This makes the growing of a system disk especially 
quick and simple. [...] ]]></description>
		<content:encoded><![CDATA[<p>
I have a few templates that I use when deploying Linux based VMs around here. These come 
pretty stripped down and minimalist. Getting them up to a usable system is fairly quick with 
vmware.
</p>
<p>But I just made it a bit quicker with my latest template.</p>
<p>The use of LVM is pretty slick for disk type stuff and I was amazed how simple it was to resize 
and work with the system and other disks. I have just stream-lined my disk growing process by locating the 
swap space on a LV rather than out on a separate disk partition. This makes the growing of a system disk especially 
quick and simple.
</p>

<ul>
<li>Do the initial low level work with <code>fdisk /dev/sda</code>. This will be resizing only /dev/sda2 to the max 
cylinders. Reboot to sync new partitions.
<li>Now we just have to run pvresize and lvresize.
<div class='code'>
&gt;&nbsp;pvscan<br>
&nbsp;&nbsp;PV /dev/sda2   VG VolGroup00   lvm2 [14.88 GB / 0    free]<br>
&nbsp;&nbsp;Total: 1 [14.88 GB] / in use: 1 [14.88 GB] / in no VG: 0 [0   ]<br>
&gt;&nbsp;pvresize /dev/sda2<br>
&nbsp;&nbsp;Physical volume "/dev/sda2" changed<br>
&nbsp;&nbsp;1 physical volume(s) resized / 0 physical volume(s) not resized<br>
&gt;&nbsp;lvscan<br>
&nbsp;&nbsp;ACTIVE            '/dev/VolGroup00/LogVol00' [10.97 GB] inherit<br>
&nbsp;&nbsp;ACTIVE            '/dev/VolGroup00/LogVol01' [3.91 GB] inherit<br>
&gt;&nbsp;lvresize -l +100%FREE /dev/VolGroup00/LogVol00<br>
&nbsp;&nbsp;Extending logical volume LogVol00 to 27.97 GB<br>
&nbsp;&nbsp;Logical volume LogVol00 successfully resized<br>
&gt;&nbsp;lvscan<br>
&nbsp;&nbsp;ACTIVE            '/dev/VolGroup00/LogVol00' [27.97 GB] inherit<br>
&nbsp;&nbsp;ACTIVE            '/dev/VolGroup00/LogVol01' [3.91 GB] inherit<br>
</div>
</ul>
<p>
By placing the swap on the same PV as the / we don't have to muck with moving the swap around any longer. And 
by using the <code>-l +100%FREE</code> option on the lvresize command it lets lvresize do the work of giving us 
the whole chunk of new disk.
</p>
<p>
Well it speed thing up a little anyway..
</p>]]></content:encoded>
	</item>
	<item>
		<title>RHEL-5 to CentOS</title>
		<link>http://www.people.iup.edu/kpfoote/archives/2009/09/29/rhel-5_to_centos/</link>
		<pubDate>Tue, 29 Sep 2009 14:40:47 EDT</pubDate>
		<dc:creator>Kevin Foote</dc:creator>
		<guid>http://www.people.iup.edu/kpfoote/archives/2009/09/29/rhel-5_to_centos/</guid>
		<category>work</category>
		<enclosure url="http://www.people.iup.edu/kpfoote/podcasts/" length="" type="" />
		<description><![CDATA[
Converting a host to <a href="http://www.centos.org">CentOS</a> is very simple. 
Especially when starting with RHEL5.


Running RHEL provided os on a non critical system is somewhat overkill IMHO. So
I find the simplest solution is to convert these types of hosts to <a href="http://www.centos.org">CentOS</a> based systems, after all its the <i>exact</i> same code base.


So here's the quick and dirty instructions to do this:

Get things ready (as root)
<div class=code>
&gt;&nbsp;yum clean all<br>
&gt;&nbsp;mkdir centos<br>
&gt;&nbsp;cd centos<br>
</div>
Download what you will need. Pick a mirror
<div class=code>
&gt;&nbsp;wget http://your-mirror/centos/RPM-GPG-KEY-CentOS-5<br>
&gt;&nbsp;wget http://your-mirror/centos/5/os/ARCH-TYPE/CentOS/centos-release-5-3.el5.centos.1.i386.rpm<br>
&gt;&nbsp;wget http://your-mirror/centos/5/os/ARCH-TYPE/CentOS/centos-release-notes-5.3-3.i386.rpm<br>
&gt;&nbsp;wget http://your-mirror/centos/5/os/ARCH-TYPE/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm<br>
&gt;&nbsp;wget http://your-mirror/centos/5/os/ARCH-TYPE/CentOS/yum-updatesd-0.9-2.el5.noarch.rpm<br>
&gt;&nbsp;wget http://your-mirror/centos/5/os/ARCH-TYPE/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm<br>
&gt;&nbsp;wget http://your-mirror/centos/5/os/ARCH-TYPE/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm<br>
&gt;&nbsp;wget http://your-mirror/centos/5/os/ARCH-TYPE/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm<br>
</div>
Remove RHEL bindings
<div class=code>
&gt;&nbsp;rpm -e --nodeps redhat-release<br>
&gt;&nbsp;rpm -e yum-rhn-plugin<br>
</div>
Install the CentOS parts
<div class=code>
&gt;&nbsp;rpm -import RPM-GPG-KEY-CentOS-5<br>
&gt;&nbsp;rpm -Uvh *.rpm<br>
&gt;&nbsp;yum update<br>
&gt;&nbsp;yum upgrade<br>
</div>
Your now following <a href="http://www.centos.org">CentOS</a> instead of RHEL. Reboot if you want. Update at will. [...] ]]></description>
		<content:encoded><![CDATA[<p>
Converting a host to <a href="http://www.centos.org">CentOS</a> is very simple. 
Especially when starting with RHEL5.
</p>
<p>
Running RHEL provided os on a non critical system is somewhat overkill IMHO. So
I find the simplest solution is to convert these types of hosts to <a href="http://www.centos.org">CentOS</a> based systems, after all its the <i>exact</i> same code base.
</p>
<p>
So here's the quick and dirty instructions to do this:
</p>
<p>Get things ready (as root)</p>
<div class=code>
&gt;&nbsp;yum clean all<br>
&gt;&nbsp;mkdir centos<br>
&gt;&nbsp;cd centos<br>
</div>
<p>Download what you will need. Pick a mirror</p>
<div class=code>
&gt;&nbsp;wget http://your-mirror/centos/RPM-GPG-KEY-CentOS-5<br>
&gt;&nbsp;wget http://your-mirror/centos/5/os/ARCH-TYPE/CentOS/centos-release-5-3.el5.centos.1.i386.rpm<br>
&gt;&nbsp;wget http://your-mirror/centos/5/os/ARCH-TYPE/CentOS/centos-release-notes-5.3-3.i386.rpm<br>
&gt;&nbsp;wget http://your-mirror/centos/5/os/ARCH-TYPE/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm<br>
&gt;&nbsp;wget http://your-mirror/centos/5/os/ARCH-TYPE/CentOS/yum-updatesd-0.9-2.el5.noarch.rpm<br>
&gt;&nbsp;wget http://your-mirror/centos/5/os/ARCH-TYPE/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm<br>
&gt;&nbsp;wget http://your-mirror/centos/5/os/ARCH-TYPE/CentOS/yum-fastestmirror-1.1.16-13.el5.centos.noarch.rpm<br>
&gt;&nbsp;wget http://your-mirror/centos/5/os/ARCH-TYPE/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm<br>
</div>
<p>Remove RHEL bindings</p>
<div class=code>
&gt;&nbsp;rpm -e --nodeps redhat-release<br>
&gt;&nbsp;rpm -e yum-rhn-plugin<br>
</div>
<p>Install the CentOS parts</p>
<div class=code>
&gt;&nbsp;rpm -import RPM-GPG-KEY-CentOS-5<br>
&gt;&nbsp;rpm -Uvh *.rpm<br>
&gt;&nbsp;yum update<br>
&gt;&nbsp;yum upgrade<br>
</div>
<p>Your now following <a href="http://www.centos.org">CentOS</a> instead of RHEL. Reboot if you want. Update at will.</p>]]></content:encoded>
	</item>
	</channel>
</rss>
