<?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>Utility Computing dot China &#187; FOSS/GNU/Linux</title>
	<atom:link href="http://www.utilitycomputing.com.cn/category/fossgnulinux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.utilitycomputing.com.cn</link>
	<description>数 据 嘉 年 华</description>
	<lastBuildDate>Mon, 26 Jul 2010 08:59:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Got Servers?  FaceBook has 30K!</title>
		<link>http://www.utilitycomputing.com.cn/tech-horizon/got-servers-facebook-has-30k</link>
		<comments>http://www.utilitycomputing.com.cn/tech-horizon/got-servers-facebook-has-30k#comments</comments>
		<pubDate>Mon, 19 Oct 2009 10:53:52 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[FOSS/GNU/Linux]]></category>
		<category><![CDATA[Tech Horizon]]></category>
		<category><![CDATA[The Cloud]]></category>

		<guid isPermaLink="false">http://www.utilitycomputing.com.cn/?p=394</guid>
		<description><![CDATA[Good to see that good old memcached is in use too!  ;-)

http://www.datacenterknowledge.com/archives/2009/10/13/facebook-now-has-30000-servers/]]></description>
			<content:encoded><![CDATA[<p>Good to see that good old memcached is in use too!  <img src='http://www.utilitycomputing.com.cn/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>I like their ratio of engineers to users&#8230; in China it is about the opposite.  We had 6 people come to change a light bulb last week.  Labour is a cheap commodity &#8211; but smart use of technology will be even cheaper!</p>
<p><a href="http://www.datacenterknowledge.com/archives/2009/10/13/facebook-now-has-30000-servers/">FaceBook Infrastructure</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.utilitycomputing.com.cn/tech-horizon/got-servers-facebook-has-30k/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tomcat = Headache</title>
		<link>http://www.utilitycomputing.com.cn/fossgnulinux/tomcat-headache</link>
		<comments>http://www.utilitycomputing.com.cn/fossgnulinux/tomcat-headache#comments</comments>
		<pubDate>Wed, 01 Jul 2009 17:05:13 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[FOSS/GNU/Linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[containers]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.utilitycomputing.com.cn/?p=231</guid>
		<description><![CDATA[Well m recipe was good.  I just have to find it again.  While no one forgets to ride a bike - my brain can't keep all the tech stuff that is life current and in the level one cache of my cerebral cortex.  I need to push stuff out to swap now and then.  But to close up this lame virtual memory metaphor.... I have a serious case of page fault right now.  :-(]]></description>
			<content:encoded><![CDATA[<p>Well I have to install tomcat again for a client.  I ran a bunch of massive tomcat farms for a client before and for the life of me I can&#8217;t find my self made documentation.  The thing is, tomcat an java can be installed about, well, 10 billion different ways.  And they all have problems and benefits with respect to support, upgrading and linking with other systems like apache.</p>
<p>Well my recipe was good.  I just have to find it again.  While no one forgets to ride a bike &#8211; my brain can&#8217;t keep all the tech stuff that is life as an IT pro current and in the level one cache of my cerebral cortex always.  I need to push stuff out to swap now and then.</p>
<p>But to close up this lame virtual memory metaphor for my brain&#8230;.. I have a serious page fault right now.  <img src='http://www.utilitycomputing.com.cn/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.utilitycomputing.com.cn/fossgnulinux/tomcat-headache/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CANDIS got a mention in a Drupal.org write up for our work with TheBeijinger.com</title>
		<link>http://www.utilitycomputing.com.cn/china/i-got-a-mention-in-a-drupalorg-writeup</link>
		<comments>http://www.utilitycomputing.com.cn/china/i-got-a-mention-in-a-drupalorg-writeup#comments</comments>
		<pubDate>Wed, 25 Mar 2009 05:09:52 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Business Development]]></category>
		<category><![CDATA[China]]></category>
		<category><![CDATA[FOSS/GNU/Linux]]></category>
		<category><![CDATA[The Cloud]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[virtualisation]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.utilitycomputing.com.cn/?p=183</guid>
		<description><![CDATA[While no way near as cool or professional as my stint in CNN a couple of years back. It is still cool though; http://drupal.org/node/357715]]></description>
			<content:encoded><![CDATA[<p>While no way near as cool or professional as my stint in CNN a couple of years back.  It is still cool though;</p>
<p><a href="http://drupal.org/node/357715">http://drupal.org/node/357715</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.utilitycomputing.com.cn/china/i-got-a-mention-in-a-drupalorg-writeup/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Open Office Conference Confirmed for Beijing</title>
		<link>http://www.utilitycomputing.com.cn/china/open-office-conference-confirmed-for-beijing</link>
		<comments>http://www.utilitycomputing.com.cn/china/open-office-conference-confirmed-for-beijing#comments</comments>
		<pubDate>Sat, 08 Mar 2008 05:07:38 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[Business Development]]></category>
		<category><![CDATA[China]]></category>
		<category><![CDATA[FOSS/GNU/Linux]]></category>
		<category><![CDATA[Tech Horizon]]></category>
		<category><![CDATA[Beijing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[openoffice]]></category>

		<guid isPermaLink="false">http://www.utilitycomputing.com.cn/?p=162</guid>
		<description><![CDATA[Yay! Go read www.beijinglug.org for more. Now if only IDG could put on a half decent Linux World instead of the token crap they excrete out like a constipated hippo.]]></description>
			<content:encoded><![CDATA[<p>Yay!</p>
<p>Go read www.beijinglug.org for more.</p>
<p>Now if only IDG could put on a half decent Linux World instead of the token crap they excrete out like a constipated hippo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.utilitycomputing.com.cn/china/open-office-conference-confirmed-for-beijing/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the net?  Where is it going?  Where is freedom?</title>
		<link>http://www.utilitycomputing.com.cn/fossgnulinux/what-is-the-net-where-is-it-going-where-is-freedom</link>
		<comments>http://www.utilitycomputing.com.cn/fossgnulinux/what-is-the-net-where-is-it-going-where-is-freedom#comments</comments>
		<pubDate>Tue, 12 Feb 2008 16:15:09 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[FOSS/GNU/Linux]]></category>
		<category><![CDATA[drm]]></category>
		<category><![CDATA[net]]></category>
		<category><![CDATA[open standards]]></category>

		<guid isPermaLink="false">http://www.utilitycomputing.com.cn/?p=146</guid>
		<description><![CDATA[Wow!  What a great discussion tonight at the BLUG! Sorry if I talked too much.  Sorry if the other Aussies did like wise.  It is very Australian to just tell it how it is and not filter for PC or sensitivities. Anyway, here is an excellent read from Cory Doctorow that I recently read.  No [...]]]></description>
			<content:encoded><![CDATA[<p>Wow!  What a great discussion tonight at the BLUG!</p>
<p>Sorry if I talked too much.  Sorry if the other Aussies did like wise.  It is very Australian to just tell it how it is and not filter for PC or sensitivities.</p>
<p>Anyway, here is an excellent read from Cory Doctorow that I recently read.  No wonder none of his books are on audible!</p>
<p><a href="http://www.craphound.com/msftdrm.txt">Corey Doctorow&#8217;s speach at Microsoft</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.utilitycomputing.com.cn/fossgnulinux/what-is-the-net-where-is-it-going-where-is-freedom/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PostgreSQL Re-Index, Index Corruption</title>
		<link>http://www.utilitycomputing.com.cn/fossgnulinux/postgresql-re-index-index-corruption</link>
		<comments>http://www.utilitycomputing.com.cn/fossgnulinux/postgresql-re-index-index-corruption#comments</comments>
		<pubDate>Mon, 03 Dec 2007 14:18:25 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[FOSS/GNU/Linux]]></category>
		<category><![CDATA[big iron]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[reindex]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://www.utilitycomputing.com.cn/?p=127</guid>
		<description><![CDATA[Ever had a situation like this: Select from database ID where name = RICHARD; Returns and ID of 55 for example. Then go and do a query like this: Select * from some_other_table where ID = 55; Returns, &#8220;Sorry does not exist, time to die&#8230;..&#8221; Well apparently indexes when corrupt &#8211; which is NOT SUPPOSED [...]]]></description>
			<content:encoded><![CDATA[<p>Ever had a situation like this:</p>
<p>Select from database ID where name = RICHARD;</p>
<p>Returns and ID of 55 for example.</p>
<p>Then go and do a query like this:</p>
<p>Select * from some_other_table where ID = 55;</p>
<p>Returns, &#8220;Sorry does not exist, time to die&#8230;..&#8221;</p>
<p>Well apparently indexes when corrupt &#8211; which is NOT SUPPOSED TO HAPPEN &#8211; can cause PostgreSQL to go all stupid and not do a table lookup for real.  This happened to me.  So I found this:</p>
<p><a href="http://people.planetpostgresql.org/greg/index.php?/archives/88-Performing-a-reindex-of-the-system-tables.html">PlanetPostgresql </a></p>
<p>Turns out that a reindex and a full vacuum can do wonders &#8211; even though a full vacuum is not needed with autovacuum and indexes can&#8217;t get corrupted&#8230;..or so they say.</p>
<p>I have now added a system wide reindex maintenance plan for PostgreSQL every night.  I know that MS-SQL server has an option for this with their maintenance jobs inside enterprise manager.  Maybe someone should make an enterprise manager for PostgreSQL too?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.utilitycomputing.com.cn/fossgnulinux/postgresql-re-index-index-corruption/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>gam_server ruining your IO throughput?  Context switches hitting 8,000 a second?</title>
		<link>http://www.utilitycomputing.com.cn/fossgnulinux/gam_server-ruining-your-io-throughput-context-switches-hitting-8000-a-second</link>
		<comments>http://www.utilitycomputing.com.cn/fossgnulinux/gam_server-ruining-your-io-throughput-context-switches-hitting-8000-a-second#comments</comments>
		<pubDate>Mon, 05 Nov 2007 09:11:25 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[FOSS/GNU/Linux]]></category>
		<category><![CDATA[ext3]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://www.utilitycomputing.com.cn/?p=115</guid>
		<description><![CDATA[This hit me today. The &#8220;gam_server&#8221; process. Set to identify when any file in the system is changed. A useful action that has benefits. But not when it does it 3-5 times per second and the sever is serving NFS and PostgreSQL! To fix it, just ensure that somewhere in /etc/ (RedHat Base) or /etc/gamin/ [...]]]></description>
			<content:encoded><![CDATA[<p>This hit me today.</p>
<p>The &#8220;gam_server&#8221; process.  Set to identify when any file in the system is changed.  A useful action that has benefits.  But not when it does it 3-5 times per second and the sever is serving NFS and PostgreSQL!</p>
<p>To fix it, just ensure that somewhere in /etc/ (RedHat Base) or /etc/gamin/ (Debian Base) has a file called:</p>
<p><span id="more-115"></span> &#8220;gaminrc&#8221;</p>
<p>Add in one line for each file system type that you have.  For example mine is now:</p>
<p>#</p>
<p>fsset ext3 poll 10</p>
<p>fsset nfs poll 10</p>
<p>fsset xfs poll 10</p>
<p>#</p>
<p>The daemon will now scan every 10 seconds.  Of course for it to do that, make sure to invoke a &#8220;kill -s 9&#8243; first!  <img src='http://www.utilitycomputing.com.cn/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.utilitycomputing.com.cn/fossgnulinux/gam_server-ruining-your-io-throughput-context-switches-hitting-8000-a-second/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When 73GB is not 73GB!  Enter LVM</title>
		<link>http://www.utilitycomputing.com.cn/fossgnulinux/when-73gb-is-not-73g</link>
		<comments>http://www.utilitycomputing.com.cn/fossgnulinux/when-73gb-is-not-73g#comments</comments>
		<pubDate>Sat, 06 Oct 2007 20:38:25 +0000</pubDate>
		<dc:creator>richard</dc:creator>
				<category><![CDATA[FOSS/GNU/Linux]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.utilitycomputing.com.cn/?p=99</guid>
		<description><![CDATA[Thought I should write something tech for a change! It is golden week here and all are away on break. So instead of forcing a staff member to come back, I thought I would take care of some stuff myself. My problems started when a client who has a large advertising cluster, was running their [...]]]></description>
			<content:encoded><![CDATA[<p>Thought I should write something tech for a change!  <img src='http://www.utilitycomputing.com.cn/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>It is golden week here and all are away on break.  So instead of forcing a staff member to come back, I thought I would take care of some stuff myself.</p>
<p>My problems started when a client who has a large advertising cluster, was running their main statistics database (for click fraud detection) on a Dell 1950 with only 1 SAS 15K drive.</p>
<p>I had suggested that this node, not being redundant like the tomcat servers be individually redundant, so DRAC card, redundant power and RAID.</p>
<p>Anyway, some new blades, Dell 1955&#8242;s arrived for the cluster and I thought, well, lets save the client some money, image the old 1950 DB server and load it onto a new 1955 server?</p>
<p>I thought this would be simple with Acronis.</p>
<p>No it wasn&#8217;t.</p>
<p>It turns out that a 3.5 Inch 73GB SAS drive is not the same size as a 2.5 Inch 73GB SAS drive.  So I could not write my system image to the blades raid 1 array of 2 x 15K 73GB SAS drives.</p>
<p><span id="more-99"></span> Shite!  If I reinstall the DB server it is not worth my time.  Cheaper to buy the upgrade parts for the 1950.</p>
<p>Then I thought, well, I have LVM, I should be able to do this, after all I have used LVM before many times on large storage arrays.</p>
<p>So my goal was this, I needed a system image that was a couple hundred megs smaller than it was now, so it will go into the 1955&#8242;s ok.</p>
<p>This is where I added in VMWARE to the mix and made this an easy task.  The steps are below:</p>
<ol>
<li>Image the 1950 server to some ACRONIS TIB files somewhere.  I used FTP</li>
<li>Image the TIB file to a new VPS made with a 73GB virtual disk</li>
<li>Create and attach a new 65GB virtual disk to the virtual machine</li>
<li>Image the MBR and /boot partitions using acronis onto the new 65GB virtual disk</li>
<li>Boot virtual machine with a rescue/live CD</li>
<li>Load FDISK for /dev/sdb and create a new LVM (Type 8e) partition in the remaining space on the 65GB virtual drive</li>
<li>Enter LVM with the <em>&#8220;lvm&#8221;</em> command</li>
<li>Activate all Volume Groups with the command <em>&#8220;vgchange -a y&#8221;</em></li>
<li>EXIT out of LVM and then run this command to resize the EXT3 file system, <em>&#8220;resize2fs /dev/VolGroup/LogVol00 40G&#8221;</em>, you may have to run <em>&#8220;e2fschk -f /dev/VolGroup00/LogVol00&#8243; </em>first too</li>
<li>Enter LVM again with the <em>&#8220;lvm&#8221;</em> command</li>
<li>Now we can reduce the Logical Volume that had the recently shrunk EXT3 file system on it with this command, <em>&#8220;lvreduce LogVol00 -L 45G&#8221;</em></li>
<li>Because we are making a new custom boot image and we have already imaged over the /boot partition and MBR, we now want our old 73GB virtual drive to not have any of the same markings as our embryonic new 65GB virtual drive.  To do this we need to change the Volume Group and Logical Volume names to something new:</li>
<li><em>lvrename VolGroup00 LogVol00 LogVol10</em></li>
<li><em>lvrename VolGroup00 LogVol01 LogVol11</em></li>
<li><em>lvchange LogVol10 -a n</em></li>
<li><em>lvchange LogVol11 -a n</em></li>
<li><em>vgchange VolGroup00 VolGroup10</em></li>
<li>Now we can create the new Logical Volumes and Volume Groups on the 65GB virtual disk in preparation for cloning our now 40GB EXT3 file system</li>
<li>Make a new Physical Volume first wit, <em>&#8220;pvcreate /dev/sdb2&#8243;</em></li>
<li><em>pvscan</em></li>
<li><em>vgcreate VolGroup00 /dev/sdb2</em></li>
<li><em>vgscan</em></li>
<li><em>lvcreate VolGroup00 /dev/sdb2 -n LogVol01 -L 2G</em></li>
<li><em>lvcreate VolGroup00 /dev/sdb2 -n LogVol00 -L 50G</em></li>
<li><em>lvscan</em></li>
<li>Now we need to make our new LVM&#8217;s online and visible to the system so we run the command vgchange again,  <em>&#8220;vgchange -a y&#8221;</em></li>
<li>EXIT</li>
<li>Back at the command prompt we need to now setup our new SWAP partition, so we issue the command, <em>&#8220;mkswap /dev/VolGroup00/LogVol01&#8243;</em></li>
<li>Now we can clone our old 40GB EXT3 partion that we shrunk to our new LVM which is larger than 40GB, but smaller than 65GB, so it will image onto the PE1955 2.5 SAS drive array</li>
<li>We use an old favourite for this, <em>&#8220;dd if=/dev/VolGroup10/LogVol10 of=/dev/VolGroup00/LogVol00&#8243;</em></li>
<li>Once done, shutdown the VPS, boot up in Acronis and image the new 65GB virtual drive and then load it onto the PE1955 server.  DONE!</li>
</ol>
<p>I did all of this in single user mode so as to minimise the need for KUDZU to rescan and change all hardware.  I can do this because of the hardware commonality in the 9th generation Dell servers.</p>
<p>Also once done, the new LVM will be smaller than the full capacity of the 73GB SAS 2.5 SAS drive.  This is easily fixed while online. by making a new partition /dev/sda3 of LVM type (8e), making it into a Physical Volume, adding it to VolGroup00 and then extending the LogVol00 logical volume with the newly added extents.   Once that is done, go back to the command prompt and use the ext2online command to finally expand your EXT3 partition to use all the space on the LVM.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.utilitycomputing.com.cn/fossgnulinux/when-73gb-is-not-73g/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
