<?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>HTG Blog &#187; Servers</title>
	<atom:link href="http://htglimited.com/category/servers/feed/" rel="self" type="application/rss+xml" />
	<link>http://htglimited.com</link>
	<description>Harnessing the power of the blog ... at this site anyway</description>
	<lastBuildDate>Sat, 07 Nov 2009 03:52:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubuntu on Sun Fire X2200</title>
		<link>http://htglimited.com/2007/02/24/ubuntu-on-sun-fire-x2200/</link>
		<comments>http://htglimited.com/2007/02/24/ubuntu-on-sun-fire-x2200/#comments</comments>
		<pubDate>Sat, 24 Feb 2007 15:41:47 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://htglimited.com/2007/02/24/ubuntu-on-sun-fire-x2200/</guid>
		<description><![CDATA[Update (2009-08-13): We&#8217;ve tried installing the latest Ubuntu (9.04) and it detects and installs with the NVIDIA Raid drives with no problem, making much if this article obsolete.
At HTG we have been using Sun servers for hosting your websites and apps, and we&#8217;ve been happy with them once they are up and running.  Getting [...]]]></description>
			<content:encoded><![CDATA[<p>Update (2009-08-13): We&#8217;ve tried installing the latest Ubuntu (9.04) and it detects and installs with the NVIDIA Raid drives with no problem, making much if this article obsolete.</p>
<p>At HTG we have been using Sun servers for hosting your websites and apps, and we&#8217;ve been happy with them once they are up and running.  Getting them there has been a little bit of a battle at times.  To make our lives easier for future installs, and for anyone else out there who wants to run Ubuntu on the X2200 servers (and presumably others with the Nvidia FakeRaid), here is our guide for installation.</p>
<p><span id="more-12"></span> There may be some holes here &#8211; if you find some, leave a comment and we&#8217;ll get it updated!<br />
Partition the disk with fdisk</p>
<blockquote><p>fdisk /dev/mapper/</p></blockquote>
<p>Mount the real partitions of the disk to the /target directory</p>
<blockquote><p>mkdir /target<br />
mount -t ext3 /dev/mapper/nvidia_[tab complete this one] /target<br />
mkdir /target/boot<br />
mount -t ext2 /dev/mapper/nvidia_[tab complete this one] /arget/boot</p></blockquote>
<p>Add the extra mount points</p>
<blockquote><p>mkdir /target/dev<br />
mount &#8211;bind /dev /target/dev<br />
mkdir /target/proc<br />
mount -t proc proc /target/proc<br />
mkdir /target/sys<br />
mount -t sysfs sysfs /target/sys</p></blockquote>
<p>Install the boostrap program, and the get system set up</p>
<blockquote><p>apt-get -y install debootstrap<br />
debootstrap edgy /target</p></blockquote>
<p>Copy hosts &#038; sources.list to chrooted environment</p>
<blockquote><p>cp /etc/apt/sources.list /target/etc/apt<br />
cp /etc/resolv.conf /target/etc<br />
cp /etc/hosts /target/etc</p></blockquote>
<p>Now to the chroot</p>
<blockquote><p>chroot /target</p></blockquote>
<p>Once in the chrooted jail, open another terminal (outside of the jail) and remount special filesystems:</p>
<blockquote><p>mount &#8211;bind /dev /target/dev<br />
mount -t proc proc /target/proc<br />
mount -t sysfs sysfs /target/sys</p></blockquote>
<p>To get rid of the missing locale messages:</p>
<blockquote><p>locale-gen en_US.UTF-8</p></blockquote>
<p>Now install dmraid</p>
<blockquote><p>apt-get update &#038;&#038; apt-get install -y dmraid</p></blockquote>
<p>Now install ubuntu-standard</p>
<blockquote><p>apt-get -y install ubuntu-standard</p></blockquote>
<p>Install grub</p>
<blockquote><p>apt-get install -y grub</p></blockquote>
<p>Install the kernel &#8211; answer yes to the symlink question, and no to the abort question</p>
<blockquote><p>apt-get install -y linux-server</p></blockquote>
<p>Add a new user</p>
<blockquote><p>useradd [you]<br />
passwd [you]</p></blockquote>
<p>Now for some grub setup &#8211; this gets a bit involved&#8230;.</p>
<blockquote><p>mkdir /boot/grub<br />
cp /lib/grub/x86_64-pc/* /boot/grub/.<br />
ls /dev/mapper<br />
grub</p></blockquote>
<p>Tell grub what device to use for hd0</p>
<blockquote><p>device (hd0) /dev/mapper/[Device name from ls command above - NOT PARTITION]</p></blockquote>
<p>Set the root partition &#8211; this is the partition number of the boot partition, starting with the number 0!</p>
<blockquote><p>root (hd0,0)</p></blockquote>
<p>And now the grub setup</p>
<blockquote><p>setup (hd0)</p></blockquote>
<p>We&#8217;re done inside the grub prompt</p>
<blockquote><p>quit</p></blockquote>
<p>Now run Ubuntu&#8217;s command to update grub</p>
<blockquote><p>update-grub</p></blockquote>
<p>Before editing the menu.lst file, copy the name of the RAID drive again!<br />
Now we need to update the menu.lst file to reflect the dmraid setup.</p>
<blockquote><p>vim /boot/grub/menu.lst</p></blockquote>
<p>Going down the file &#8211; leave leading #&#8217;s as they are commands to the update-grub program:</p>
<ol>
<li>change # kopt_2_6=root=/dev/hda1 to # kopt_2_6=root=/dev/mapper/[root partition]</li>
<li>change # groot=(hd0,0) to be the correct boot partition</li>
<li>set # lockalternative=false to true</li>
<li>If /boot is on its own partition, remove the /boot/ directory names from the kernel and initrd lines</li>
<li>make sure the root= portion of the kernel lines point to the root partition of the RAID array</li>
<li>Save the file &#8211; optionally, you can set a password (please use an md5 hash!)</li>
</ol>
<p>Update the initramfs file!</p>
<blockquote><p>update-initramfs -c -k `ls /lib/modules`</p></blockquote>
<p>Update the fstab file &#8211; the easiest way to do this is to copy one from another system, or suffer through handwriting one without any guidance.</p>
<p>To install vmware-server, you will also need to install ia32-libs</p>
]]></content:encoded>
			<wfw:commentRss>http://htglimited.com/2007/02/24/ubuntu-on-sun-fire-x2200/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Same Site &#8211; New Server!</title>
		<link>http://htglimited.com/2006/12/30/same-site-new-server/</link>
		<comments>http://htglimited.com/2006/12/30/same-site-new-server/#comments</comments>
		<pubDate>Sun, 31 Dec 2006 00:17:15 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://htglimited.com/2006/12/30/same-site-new-server/</guid>
		<description><![CDATA[Well, we&#8217;ve done it &#8211; before the end of our first year of operation, we have purchased a new server.Â  And this time we mean new out of the box, not new to us!Â  With plenty of room to grow, and some jobs which may let us grow with more new servers, we&#8217;re set for [...]]]></description>
			<content:encoded><![CDATA[<p>Well, we&#8217;ve done it &#8211; before the end of our first year of operation, we have purchased a new server.Â  And this time we mean new out of the box, not new to us!Â  With plenty of room to grow, and some jobs which may let us grow with more new servers, we&#8217;re set for an interesting 2007!Â  Thanks for being patient with us during our transition!Â  We at HTG want to wish all of you a prosperous 2007 &#8211; and we hope that you&#8217;ll remember us for your online needs!</p>
]]></content:encoded>
			<wfw:commentRss>http://htglimited.com/2006/12/30/same-site-new-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
