<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>S. P. T. Krishnan's take on things...</title>
	<atom:link href="http://sptkrishnan.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sptkrishnan.wordpress.com</link>
	<description>perspectives, opinions, ideas...</description>
	<lastBuildDate>Sat, 02 May 2009 10:49:23 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='sptkrishnan.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/5e2555f90cd8aa25b70f2b13ae137170?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>S. P. T. Krishnan's take on things...</title>
		<link>http://sptkrishnan.wordpress.com</link>
	</image>
			<item>
		<title>the cost/efficiency of paper processes in a e-world</title>
		<link>http://sptkrishnan.wordpress.com/2009/05/02/the-costefficiency-of-paper-processes-in-a-e-world/</link>
		<comments>http://sptkrishnan.wordpress.com/2009/05/02/the-costefficiency-of-paper-processes-in-a-e-world/#comments</comments>
		<pubDate>Sat, 02 May 2009 10:48:35 +0000</pubDate>
		<dc:creator>S P T Krishnan</dc:creator>
				<category><![CDATA[Etc]]></category>

		<guid isPermaLink="false">http://sptkrishnan.wordpress.com/?p=164</guid>
		<description><![CDATA[Today, I had an interesting experience. I had to mail a banking form in paper due to local banking regulations. As there is no post office on my way to my work place and none nearby I had to wait until the weekend to do so.
I started around 11:05 AM to the nearest post office. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sptkrishnan.wordpress.com&blog=101754&post=164&subd=sptkrishnan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Today, I had an interesting experience. I had to mail a banking form in paper due to local banking regulations. As there is no post office on my way to my work place and none nearby I had to wait until the weekend to do so.</p>
<p style="text-align:justify;">I started around 11:05 AM to the nearest post office. I had to travel using <a title="Singapore LRT" href="http://en.wikipedia.org/wiki/Light_Rapid_Transit_%28Singapore%29" target="_blank">LRT</a> to the post office. I reached the post office at 11:20 AM. I was in the queue until 12:00 PM and was serviced in 3 minutes. The cost of the mailing was S$0.50 while the cost of the journey was (S$0.69 + S$0.69) to and fro. The efficiency of the transaction &#8211; wait until the end of the week, wait in queue for over 40 minutes, transport cast ~3 times the cost of actual transaction <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p style="text-align:justify;">Just to tickle our thoughts. Isn&#8217;t it time to go fully &#8216;e-*&#8217; ?</p>
Posted in Etc  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sptkrishnan.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sptkrishnan.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sptkrishnan.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sptkrishnan.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sptkrishnan.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sptkrishnan.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sptkrishnan.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sptkrishnan.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sptkrishnan.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sptkrishnan.wordpress.com/164/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sptkrishnan.wordpress.com&blog=101754&post=164&subd=sptkrishnan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sptkrishnan.wordpress.com/2009/05/02/the-costefficiency-of-paper-processes-in-a-e-world/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1251e2deaaff631073d7805b7432240d?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">sptkrishnan</media:title>
		</media:content>
	</item>
		<item>
		<title>Roaming and operator-updated time</title>
		<link>http://sptkrishnan.wordpress.com/2009/04/14/roaming-and-operator-updated-time/</link>
		<comments>http://sptkrishnan.wordpress.com/2009/04/14/roaming-and-operator-updated-time/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 04:04:17 +0000</pubDate>
		<dc:creator>S P T Krishnan</dc:creator>
				<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://sptkrishnan.wordpress.com/?p=161</guid>
		<description><![CDATA[I am writing this from India (GMT + 5.5) and roaming with my Singapore (GMT + 8.0) mobile phone. I noticed something very strange. In all my mobile phones, under &#8220;time and date&#8221; settings, I usually setup time zone as local time instead of GMT +/- X and Network operator time as auto-update. By this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sptkrishnan.wordpress.com&blog=101754&post=161&subd=sptkrishnan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">I am writing this from <strong>India (GMT + 5.5)</strong> and roaming with my <strong>Singapore (GMT + 8.0) mobile phone</strong>. I noticed something very strange. In all my mobile phones, under &#8220;<strong>time and date</strong>&#8221; settings, I usually setup <strong>time zone</strong> as <strong>local time</strong> instead of <strong>GMT +/- X</strong> and <strong>Network operator time</strong> as <strong>auto-update</strong>. By this way, I hope to always have the current local time updated automatically. Everything seem to have worked fine until now&#8230;</p>
<p style="text-align:justify;"><span id="more-161"></span>In my <strong>Nokia E71</strong>, I noticed a time skew of around 2.5 hours (<strong>GMT+8-GMT-5.5 ?</strong>) when I switched on the phone after landing in the local airport. I thought the time synchronization hasn&#8217;t happened yet and waited. However, instead of correcting itself, the skew kept on becoming big and eventually it was <strong>7 hours</strong> ahead of the local time. All my alarms, reminders would go off in the middle of the night waking us up even before we have actually slept <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p style="text-align:justify;">I turned off and on again my phone couple of times and still the problem would not go away. Now, it was showing time as per GMT+7 time zone. At this stage, I wondered if it could be the operator issue and looked at my other mobile (iPhone) which was also setup to auto-update from mobile operator. There were no issues and the phone synced well and it always showed the correct local time.</p>
<p style="text-align:justify;">At this stage, I started to wonder what could be issue ? there were 4 combination possible &#8211; home mobile network, roaming mobile network, phone model / manufacturer and time zone differences. I did a look up table. My Nokia E71 is on <strong>Starhub</strong> Network in Singapore, and was connected to the <strong>Vodafone IN</strong> network automatically and was showing GMT+7 time zone time. My <strong>iPhone</strong> is on<strong> SingTel </strong>in Singapore and was connected to the <strong>Airtel</strong> network automatically and was showing the correct GMT+5.5 time zone time. My primary suspect was the mobile operators&#8217; algorithm in sync roaming mobile phones. Initially I thought, perhaps my mobile phone is in GMT+8 so there was a bug in time synchronisation and the network was pushing GMT+8+localtime. However, this was not the case as well. It was pushing down GMT+7+localtime. This left me with the only possibility of Singapore being registered as GMT+7 in the network operator. Incidentally, the natural time zone of Singapore is also GMT+7 (see <a href="http://sptkrishnan.wordpress.com/2007/03/31/what-is-the-natural-time-zone-of-singapore/">natural time zone of singapore</a>). Any way, all is theories and I don&#8217;t have any concrete solutions.</p>
<p style="text-align:justify;">If you have experienced such issues and know of an possibility, do drop an comment.</p>
Posted in Mobile  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sptkrishnan.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sptkrishnan.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sptkrishnan.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sptkrishnan.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sptkrishnan.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sptkrishnan.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sptkrishnan.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sptkrishnan.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sptkrishnan.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sptkrishnan.wordpress.com/161/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sptkrishnan.wordpress.com&blog=101754&post=161&subd=sptkrishnan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sptkrishnan.wordpress.com/2009/04/14/roaming-and-operator-updated-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1251e2deaaff631073d7805b7432240d?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">sptkrishnan</media:title>
		</media:content>
	</item>
		<item>
		<title>Virtualisation and missing RAM</title>
		<link>http://sptkrishnan.wordpress.com/2009/04/10/virtualisation-and-missing-ram/</link>
		<comments>http://sptkrishnan.wordpress.com/2009/04/10/virtualisation-and-missing-ram/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 18:58:50 +0000</pubDate>
		<dc:creator>S P T Krishnan</dc:creator>
				<category><![CDATA[Computer Science]]></category>

		<guid isPermaLink="false">http://sptkrishnan.wordpress.com/?p=156</guid>
		<description><![CDATA[This is part 2 to my earlier post &#8220;A Linux crash, burn and recover experience&#8220;. I had mentioned in there that I plan to use a Virtual Machine (VM) strategy for easy backup and porting in future. However, the reality forced me to abandon the approach. It could also be that I don&#8217;t know the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sptkrishnan.wordpress.com&blog=101754&post=156&subd=sptkrishnan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">This is part 2 to my earlier post &#8220;<a href="http://sptkrishnan.wordpress.com/2009/04/02/a-linux-crash-burn-and-recover-experience/">A Linux crash, burn and recover experience</a>&#8220;. I had mentioned in there that I plan to use a Virtual Machine (VM) strategy for easy backup and porting in future. However, the reality forced me to abandon the approach. It could also be that I don&#8217;t know the trade secrets <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  read on&#8230;</p>
<p style="text-align:justify;"><span id="more-156"></span>As you know, I am using Red Hat Enterprise Linux (RHEL) for my server for the last several years. After recovery I decided to continue using the same OS. Therefore, the natural choice was to use xen as the virtual machine monitor. I used this server downtime to add more RAM totaling to 4GB and now the entire root partition is also protected by RAID 5.</p>
<p style="text-align:justify;">During the OS installation, I selected virtualisation to be installed. Basically, this means xen-enabled linux kernel would be installed by default. Everything seemed to be ok and I continued on to firstboot. After completion, I logged into the system and from a comman prompt, I did <strong>cat /proc/meminfo</strong> and to my shock the first line was <strong>MemTotal: 3753984 KB (3.58 GB)</strong> a whopping half-a-gb gone missing. This is no-go as then the VM would be running much slower with fewer resources <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p style="text-align:justify;">In theory, 2^32 = 4096 so the entire 4GB of RAM should be addressable by the OS as physical memory. If there are any exception then it should be rounded-off to some big number but here <strong>3.58 GB</strong> doesn&#8217;t sound like it either. With no choice, I decide to re-install with the <strong>64-bit</strong> version of <strong>RHEL</strong> with the thoughts that 64 bit might recognize the entire 4GB. I was a bit hesitant about compatibility of the application software with a 64-bit OS. However, there was no other choice except to take the risk.</p>
<p style="text-align:justify;">As with 32 bit installation I selected virtualisation and this installed the xen-enabled 64-bit RHEL kernel. After firstboot, I checked the total memory and got another shock. The memtotal now is <strong>3708928 KB</strong>. This is <strong>45,056 KB</strong> less than 32 bit xen-enabled RHEL kernel. I was confused as to why a 64 bit kernel recognise less RAM compared to 32 bit OS. I googled around and didn&#8217;t find a direct answer. At the same time, some one was suggesting that PAE kernels recognise 4GB or more RAM. Also, I remembered about my another system where I have <strong>8GB of RAM</strong> and running <strong>Ubuntu 8.10 64 bit</strong> with kernel version <strong>2.6.27</strong>. Cat <strong>/pro/meminfo</strong> showed <strong>8181976 kB (7.8 GB)</strong>. I use vmware workstation and not xen as VMM in that box. I then did a <strong>yum search pae</strong> to select an appropriate PAE kernel. I discovered that PAE is a 32-bit kernel feature and is not available available for 64-bit kernel. It made sense; why will we need physical pages extension when 2^64 is itself a huge number. Now, my second choice is to use continue using 64 bit kernel (risking any future software incompatibilities), lose ~50MB more than corresponding 32 bit kernel. It didn&#8217;t add up to be a good choice. At this juncture, I thought about PAE 32 kernel with Xen might do the trick. I started my 3rd install of RHEL for the day.</p>
<p style="text-align:justify;">The 3rd choice was to install a PAE 32 bit kernel, verify the RAM is fully accessible and then turn on visualisation. The installation was smooth and after first boot, as with earlier attempts I did cat <strong>/proc/meminfo</strong> and hurray I got MemTotal: <strong>4149928 kB</strong>. I then did a <strong>uname -a</strong> and inferred that by default (without virtualisation selected at install) the <strong>anaconda</strong> system installer installs PAE enabled kernel if it detects 4GB or more RAM. This was a welcome note. Now, I again did a yum-search for xen and installed it and rebooted it. On the grub bootup screen I became wiser <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  and learned the following</p>
<ul>
<li>32 bit kernel + xen = okay</li>
<li>32 bit kernel + PAE = okay</li>
<li>32 bit kernel + PAE + xen = NOT POSSIBLE</li>
</ul>
<p style="text-align:justify;">The above summarises it all. If you want PAE, forget XEN; if you want XEN forget PAE. Now, I have to make a hard decision whether to stick with my VM strategy and be constrained with only 3.5GB of RAM which could mean that the guest OS have only a maximum of 3GB RAM OR forget virtualisation and use all 4GB of RAM. I then factored in my hardware features (not to be generalized). The server is more than 4 years old and does not have vTX (hardware virtualisation) feature. I learned that this would make the VM run slower and compound this with the fact that 0.5GB is not there, this might result in a very slow VM or may be it won&#8217;t be noticeable. I was already tired for the day and wasn&#8217;t interested in doing another combinatorial experiment this time with VM variable. Therefore, I decided to abandon my VM strategy and be happy with the increased resources. As a take-away from this experience I have compiled who would have made the memory missing. I actually don&#8217;t know the answer, if you know please drop a reply, thanks !</p>
<p style="text-align:justify;">There are several suspects in my list</p>
<ol>
<li>Linux kernel ? RHEL version 5 uses 2.6.18.x as the base kernel. I am wondering if the Linux kernel has been fixed some time after the above kernel release. The reasoning being, Ubuntu 8.10 is able to see all the 8GB RAM (of course it was without xen)</li>
<li>Xen ? Is it that xen-enabling the Linux kernel makes the memory vanish ? If so, what do we conclude of xen technology in general ? do the peers face the same missing memory issues ?</li>
<li>Xen + PAE could have solved my problem but they were not compatible. Why ?</li>
</ol>
Posted in Computer Science  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sptkrishnan.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sptkrishnan.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sptkrishnan.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sptkrishnan.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sptkrishnan.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sptkrishnan.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sptkrishnan.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sptkrishnan.wordpress.com/156/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sptkrishnan.wordpress.com/156/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sptkrishnan.wordpress.com/156/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sptkrishnan.wordpress.com&blog=101754&post=156&subd=sptkrishnan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sptkrishnan.wordpress.com/2009/04/10/virtualisation-and-missing-ram/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1251e2deaaff631073d7805b7432240d?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">sptkrishnan</media:title>
		</media:content>
	</item>
		<item>
		<title>Pleasantly surprised by Windows 7</title>
		<link>http://sptkrishnan.wordpress.com/2009/04/09/pleasantly-surprised-by-windows-7/</link>
		<comments>http://sptkrishnan.wordpress.com/2009/04/09/pleasantly-surprised-by-windows-7/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 08:15:17 +0000</pubDate>
		<dc:creator>S P T Krishnan</dc:creator>
				<category><![CDATA[Computer Science]]></category>

		<guid isPermaLink="false">http://sptkrishnan.wordpress.com/?p=151</guid>
		<description><![CDATA[I had a chance to beta test the upcoming release of Windows OS, version 7. I didn&#8217;t have any expectations for the Windows Vista successor; I have downgraded all my factory-installed Vista systems to Windows XP within 15 minutes   &#8230; I was pleasantly surprised with what Microsoft had done this time though :O

With [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sptkrishnan.wordpress.com&blog=101754&post=151&subd=sptkrishnan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">I had a chance to beta test the upcoming release of Windows OS, version 7. I didn&#8217;t have any expectations for the Windows Vista successor; I have downgraded all my factory-installed Vista systems to Windows XP within 15 minutes <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  &#8230; I was pleasantly surprised with what Microsoft had done this time though :O</p>
<p style="text-align:justify;"><span id="more-151"></span></p>
<p style="text-align:justify;">With no expectations and in fact negative expectations, I didn&#8217;t want to destroy any of my trusted Windows XP systems . I had a 7 year old laptop (P4 and 1GB RAM) which I came with Windows XP and now serving as test machine for anything that came new (Fedora 10, Ubuntu 8.10, Open BSD among others). I decided to lose my Fedora 10 (it rocks btw) and risk with that Windows 7 will turn out to be.</p>
<p style="text-align:justify;">The installation was very smooth. Very few questions being asked and the time it took was also reasonable given that the hardware is very old. When I rebooted for the first time after installation, I noticed that the startup time is very fast (&lt; 20 secs ?). You should read this number taking my hardware into picture. Therefore, I would assume that it would be much faster in modern systems. Once I logged in I noticed that the system was much more smoother and more responsive that Windows Vistas. I would even say that on the same hardware, it was probably more responsive that the original OS, Windows XP.</p>
<p style="text-align:justify;">I didn&#8217;t spend much time with the OS but in the quick 2 hours or so, I concluded that Windows 7 would be good product and worth a try. Let us wait and see. In the mean time, for more information click on <a title="Windows 7" href="http://www.microsoft.com/windows/windows-7/default.aspx">Windows 7</a> .</p>
Posted in Computer Science  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sptkrishnan.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sptkrishnan.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sptkrishnan.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sptkrishnan.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sptkrishnan.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sptkrishnan.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sptkrishnan.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sptkrishnan.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sptkrishnan.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sptkrishnan.wordpress.com/151/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sptkrishnan.wordpress.com&blog=101754&post=151&subd=sptkrishnan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sptkrishnan.wordpress.com/2009/04/09/pleasantly-surprised-by-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1251e2deaaff631073d7805b7432240d?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">sptkrishnan</media:title>
		</media:content>
	</item>
		<item>
		<title>A Linux crash, burn and recover experience&#8230;</title>
		<link>http://sptkrishnan.wordpress.com/2009/04/02/a-linux-crash-burn-and-recover-experience/</link>
		<comments>http://sptkrishnan.wordpress.com/2009/04/02/a-linux-crash-burn-and-recover-experience/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 13:12:06 +0000</pubDate>
		<dc:creator>S P T Krishnan</dc:creator>
				<category><![CDATA[Computer Science]]></category>

		<guid isPermaLink="false">http://sptkrishnan.wordpress.com/?p=143</guid>
		<description><![CDATA[One of my trustworthy RHEL servers which was up (virtually) for 4+ years and served thousands of users over-the-web recently crashed. As data in the server was critical, we had to undertake a salvage operation before re-install. This post is my experience of recovering the server&#8217;s data and also some of the lessons learned and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sptkrishnan.wordpress.com&blog=101754&post=143&subd=sptkrishnan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">One of my trustworthy <strong>RHEL</strong> servers which was up (virtually) for 4+ years and served thousands of users over-the-web recently crashed. As data in the server was critical, we had to undertake a salvage operation before re-install. This post is my experience of recovering the server&#8217;s data and also some of the lessons learned and new strategies evolved for configuring future resilient server&#8230;</p>
<p style="text-align:justify;"><span id="more-143"></span>Since 2002, I have been volunteering some of my free time to help out the local red cross unit in Singapore. The story begins somewhere in 2004 when we decided to procure a server for running some of the internal IT services used for blood donor recruitment, recognition, retention and recall. Over time, the server got loaded with more and more services and it was beginning to look like a crash could mean a lot of downtime.</p>
<p style="text-align:justify;">It is not the case that we didn&#8217;t have any backup. With the IT budget that was available, I had configured a <strong>soft raid</strong> of <strong>level 1(replication)</strong> for two of the critical partitions of the server &#8211; <strong>/home</strong> and <strong>/var</strong>. All was well until last year when we began taking regular backups of important configuration files and storing them remotely conforming to business continuity best practices. Late last year, I decided to take local full backups.</p>
<p style="text-align:justify;">The first sign of trouble seem to have been visible last year. As part of the backup process, we wanted to use an external usb hard disk. However, the server did not recognize the hard disk and create the respective <strong>/dev/</strong> entries although <strong>dmesg</strong> was showing the usb device as being recognized. with no /<strong>dev/</strong> entry the hard disk could not be mounted. I concluded at that time that it could be because of the mismatch between old <strong>usb1.x</strong> port and the new <strong>usb2</strong> hard disk. I wasn&#8217;t very convinced with that hypothesis but I didn&#8217;t have any alternate theories as well. Now in hind sight I know this hypothesis is not right.</p>
<p style="text-align:justify;">One fine day, the system console stopped responding normally and there was huge delays between echos for key strokes. I suspected a run-away process with potential memory leaks so just hit the reboot. On <strong>POST</strong> screen, <strong>BIOS</strong> reported that one of the hard disks is reporting a future failure (a <strong>SMART </strong>feature of new generation hard disks). Following this, the <strong>kernel</strong> refused to boot and dropped me into the maintenance prompt. After running <strong>fsck</strong> for well over an hour with hundreds of <strong>inodes</strong> being orphaned and added to the <strong>lost+found</strong> list, finally the server started booting&#8230;</p>
<p style="text-align:justify;">During the startup, two <strong>daemons</strong> &#8211; <strong>httpd</strong> and <strong>mysqld</strong> did not come up owning to some missing files. These two services are key to all our web apps and thus the server came to a stand still. Coupled with this was the fact that the server stopped at console-login and did not start up in <strong>X</strong> although the <strong>runlevel</strong> listed the server being in 5. I decided it was not worthy to continue using this server as what all was broken could not be cumulatively listed let alone being fixed.</p>
<p style="text-align:justify;">I didn&#8217;t even want to reboot since my intuition suspected that the server might never come up again. With the local external hard disk not recognizable the only option was to do a remote backup. Luckily, <strong>ssh</strong> was up and I was able to connect from outside to the server. However, I soon found out that <strong>scp</strong> was not found in the <strong>PATH</strong> and not on the filesystem. I did a which <strong>sftp</strong> and it was found. With a sigh of relief, I started to connect from outside. The relief was short lived because although the control connection could be established the data connection was not being created. There was no firewall and no other network blockage. I thought the missing scp could be the cause. Therefore, it seems that the only option was to dismantle the server and recover the data.</p>
<p style="text-align:justify;">Luckily, one of my friends (Kumar c/o thoughtsware) accidentally discovered that although pull technique was not working, push technique using <strong>ftp</strong> after ssh-in was working. Armed with this, I scrambled to setup with a ftp server to be the receiving end. By setup, I mean it, as I don&#8217;t usually use ftp because it is insecure. I started to move data one file a time from the server to this ftp site. The data was flowing but at a very slow rate. After a few days of data transfer, I decided it was time for the surgical data recovery on site. Another good friend and a mentor, Harish from Red Hat, offered to help out with the recovery.</p>
<p style="text-align:justify;">First, I wanted to test out if a flash drive was readable on the server. To my surprise, the crippled server was able to recognise the <strong>fat32</strong> filesystem drive and created the necessary <strong>/dev/</strong> entries. At this stage, I concluded that there was nothing wrong with the server hardware and something was not okay in the software when I earlier tried a <strong>ext3</strong> formatted disk. I started copying the data into the thumb drive but very soon the data transfer halted with the process becoming non-responsive as well. We guessed the process may have hit a <strong>bad sector.</strong> We decided it was time to shutdown the broken OS and try our last alternative.</p>
<p style="text-align:justify;">Our plan was that we boot the server using a live cd, <strong>Fedora 10</strong> in this case. Then mount an external hard disk and the internal hard disks and <strong>dd</strong> out the partitions and attempt a system recovery using the binary img files. The only unknown factor being the partition was <strong>soft raid</strong> partitions and we haven&#8217;t done a recovery before on this filesystem type.</p>
<p style="text-align:justify;">We booted the server using Fedora 10 live cd and successfully mounted the internal hard disks. Next, when we inserted the same external hard disk into the usb port, Fedora mounted it without any fuss. At this point, I infered that earlier attempts to mount it may have failed because root filesystem may have developed bad sectors at exactly the same spot where the entries are created.</p>
<p style="text-align:justify;">Without any delay, using <strong>dd</strong> we copied all the 4 raw partitions (2 raw partitions per raid 1 partition) to the external hard disk. Our attempts to copy out the <strong>boot</strong> and <strong>root</strong> partitions did not succeed as dd complained of missing superblocks info. After copying the raid partitions out, we decided to try our luck with booting the server back into the original, now broken OS and try out copy out configuration files by mounted a thumb drive as earlier. However, on reboot the server didn&#8217;t go anywhere beyond grub prompt. The server was totalled.</p>
<p style="text-align:justify;">Armed with the dd created partition binary files, I mounted the hard disk containing them in another Fedora 10 machine. Then I used <strong>losetup</strong> to mount the binary files as a loop back device. I then used <strong>mdadm</strong> to combine the respective component partitions and mounted them as a <strong>md0</strong> device. Following this, I mounted this md0 device under a directory and was able to see the files. Finally, I performed a recursive copy of the data in these mounted partitions into a clean <strong>ext3</strong> partition for restoring. In the end, we could not recover a few configuration files like <strong>apache, networking</strong> and such. However, majority of the data was recovered.</p>
<p style="text-align:justify;">I am now awaiting the hardware vendor to replace the parts and hopefully the server would be online in a few days.</p>
<p style="text-align:justify;">Based on this experience, new knowledge and technologies, our new server would be designed to be more reliable than the current one and in case of another crash, should be easier to recover as well. Our idea is to use <strong>virtualisation</strong> and run our current server in a <strong>VM</strong>. By this way, we can easily backup the entire server and also restore from backups more easily. Secondly, we can enforce security policies on the host OS and also on the guest OS while monitoring all the network traffic flowing to VM at the host level. The host will be responsible for providing a abstracted and redundant hardware layer to the VM taking care of the raid and other hardware specific features.</p>
<p style="text-align:justify;"><em>Feel free to comment on our recovery experience and the new server design strategy as well <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </em></p>
<p style="text-align:justify;">
Posted in Computer Science  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sptkrishnan.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sptkrishnan.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sptkrishnan.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sptkrishnan.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sptkrishnan.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sptkrishnan.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sptkrishnan.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sptkrishnan.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sptkrishnan.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sptkrishnan.wordpress.com/143/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sptkrishnan.wordpress.com&blog=101754&post=143&subd=sptkrishnan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sptkrishnan.wordpress.com/2009/04/02/a-linux-crash-burn-and-recover-experience/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1251e2deaaff631073d7805b7432240d?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">sptkrishnan</media:title>
		</media:content>
	</item>
		<item>
		<title>Did my 20th blood donation on Saturday :)</title>
		<link>http://sptkrishnan.wordpress.com/2009/03/30/did-my-20th-blood-donation-on-saturday/</link>
		<comments>http://sptkrishnan.wordpress.com/2009/03/30/did-my-20th-blood-donation-on-saturday/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 05:06:09 +0000</pubDate>
		<dc:creator>S P T Krishnan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sptkrishnan.wordpress.com/?p=140</guid>
		<description><![CDATA[the heading says it all&#8230;
I started donating blood in April 2002 and until March 2009 I have donated 20 times. I am not sure if I should feel proud about it because in theory I could have donated up to 28 times (4 years a year is allowed in Singapore for whole blood donation). However, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sptkrishnan.wordpress.com&blog=101754&post=140&subd=sptkrishnan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>the heading says it all&#8230;</p>
<p>I started donating blood in April 2002 and until March 2009 I have donated 20 times. I am not sure if I should feel proud about it because in theory I could have donated up to 28 times (4 years a year is allowed in Singapore for whole blood donation). However, My target was 21 (or 3 times a year). So, I guess I am short of 1 time now and that amounts to 95% of goal.</p>
<p>I am hoping that I will be able to donate 5 more times this and next year to reach 25 in 2010 and get a silver medal <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
Posted in Uncategorized  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sptkrishnan.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sptkrishnan.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sptkrishnan.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sptkrishnan.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sptkrishnan.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sptkrishnan.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sptkrishnan.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sptkrishnan.wordpress.com/140/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sptkrishnan.wordpress.com/140/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sptkrishnan.wordpress.com/140/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sptkrishnan.wordpress.com&blog=101754&post=140&subd=sptkrishnan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sptkrishnan.wordpress.com/2009/03/30/did-my-20th-blood-donation-on-saturday/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1251e2deaaff631073d7805b7432240d?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">sptkrishnan</media:title>
		</media:content>
	</item>
		<item>
		<title>Hackers Vs Crackers</title>
		<link>http://sptkrishnan.wordpress.com/2009/02/22/hackers-vs-crackers/</link>
		<comments>http://sptkrishnan.wordpress.com/2009/02/22/hackers-vs-crackers/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 15:08:23 +0000</pubDate>
		<dc:creator>S P T Krishnan</dc:creator>
				<category><![CDATA[Computer Science]]></category>

		<guid isPermaLink="false">http://sptkrishnan.wordpress.com/?p=130</guid>
		<description><![CDATA[Exactly, 8 months ago to this date I had a chance to visit the Museum of Science and Industry in Chicago, United States. The exhibition was one of the largest I have ever been to. It featured exhibits from multiple disciplines of Science and was lively, interactive and very well maintained. Even with a few [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sptkrishnan.wordpress.com&blog=101754&post=130&subd=sptkrishnan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p style="text-align:justify;">Exactly, 8 months ago to this date I had a chance to visit the <a title="Museum of Science and Industry, Chicago, US" href="http://www.msichicago.org/">Museum of Science and Industry in Chicago,</a> United States. The exhibition was one of the largest I have ever been to. It featured exhibits from multiple disciplines of Science and was lively, interactive and very well maintained. Even with a few stop-by&#8217;s it took us ~6 hours to cover it. I recommend a visit to the museum if you are in Chicago.</p>
<p style="text-align:justify;">One of the exhibits that captured my interest was on computer criminals&#8230;</p>
<p style="text-align:justify;"><span id="more-130"></span>&#8230;the museum has used the opportunity to educate the public on the intricate difference between the words &#8220;Hackers&#8221; and &#8220;Crackers&#8221;. While, even to this date, many IT publications refer to computer criminals as hackers, I am happy to note that the exhibition has done its part to help to clarify the  difference. The following tells it all, thanks msichicago <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
<div class="mceTemp mceIEcenter" style="text-align:justify;">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><a href="http://sptkrishnan.files.wordpress.com/2009/02/dscn2117.jpg"><img class="size-full wp-image-132" title="Hackers Vs Crackers" src="http://sptkrishnan.files.wordpress.com/2009/02/dscn2117.jpg?w=500&#038;h=375" alt="Hackers Vs Crackers" width="500" height="375" /></a></dt>
<dd class="wp-caption-dd">Hackers Vs Crackers (click to enlarge)
</dd>
</dl>
</div>
Posted in Computer Science  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sptkrishnan.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sptkrishnan.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sptkrishnan.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sptkrishnan.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sptkrishnan.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sptkrishnan.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sptkrishnan.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sptkrishnan.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sptkrishnan.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sptkrishnan.wordpress.com/130/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sptkrishnan.wordpress.com&blog=101754&post=130&subd=sptkrishnan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sptkrishnan.wordpress.com/2009/02/22/hackers-vs-crackers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1251e2deaaff631073d7805b7432240d?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">sptkrishnan</media:title>
		</media:content>

		<media:content url="http://sptkrishnan.files.wordpress.com/2009/02/dscn2117.jpg" medium="image">
			<media:title type="html">Hackers Vs Crackers</media:title>
		</media:content>
	</item>
	</channel>
</rss>