<?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>Abbas &#124; Bassu &#187; Uncategorized</title>
	<atom:link href="http://bashukhan.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://bashukhan.com</link>
	<description>Life&#039;s having zeros and ones all over</description>
	<lastBuildDate>Sat, 04 Sep 2010 23:55:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Tatay pur da school</title>
		<link>http://bashukhan.com/tatay-pur-da-school/</link>
		<comments>http://bashukhan.com/tatay-pur-da-school/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 10:23:12 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Tatay pur da school]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=302</guid>
		<description><![CDATA[Saalayo, keray escool icho parhayho tusi?]]></description>
			<content:encoded><![CDATA[<p>Saalayo, keray escool icho parhayho tusi?</p>
<p><a href="http://bashukhan.com/wp-content/uploads/2010/08/48689343_shcool_ap.jpg" rel="lightbox[302]"><img class="size-medium wp-image-303 alignnone" title="_48689343_shcool_ap" src="http://bashukhan.com/wp-content/uploads/2010/08/48689343_shcool_ap-300x168.jpg" alt="" width="300" height="168" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/tatay-pur-da-school/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aftermath of heavy rain&#8230;</title>
		<link>http://bashukhan.com/aftermath-of-heavy-rain/</link>
		<comments>http://bashukhan.com/aftermath-of-heavy-rain/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 09:03:12 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=296</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://bashukhan.com/wp-content/uploads/2010/08/07082010010.jpg" rel="lightbox[296]"><img class="alignleft size-medium wp-image-300" title="07082010(010)" src="http://bashukhan.com/wp-content/uploads/2010/08/07082010010-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://bashukhan.com/wp-content/uploads/2010/08/07082010002.jpg" rel="lightbox[296]"><img class="alignleft size-medium wp-image-299" title="07082010(002)" src="http://bashukhan.com/wp-content/uploads/2010/08/07082010002-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://bashukhan.com/wp-content/uploads/2010/08/07082010001.jpg" rel="lightbox[296]"><img class="alignleft size-medium wp-image-298" title="07082010(001)" src="http://bashukhan.com/wp-content/uploads/2010/08/07082010001-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://bashukhan.com/wp-content/uploads/2010/08/07082010.jpg" rel="lightbox[296]"><img class="alignleft size-medium wp-image-297" title="07082010" src="http://bashukhan.com/wp-content/uploads/2010/08/07082010-300x225.jpg" alt="" width="300" height="225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/aftermath-of-heavy-rain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nothing compares to a traditional tubewell!</title>
		<link>http://bashukhan.com/nothing-compares-to-a-traditional-tubewell/</link>
		<comments>http://bashukhan.com/nothing-compares-to-a-traditional-tubewell/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 22:05:01 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bore 150 feet]]></category>
		<category><![CDATA[mango granden]]></category>
		<category><![CDATA[tubewell]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=224</guid>
		<description><![CDATA[What do you guys say? Yea, don&#8217;t expect mangoes when you plant papayas. So, this weekend was really exciting. Had a chance to visit our village with brothers. The most enthusiastic part, of course, a bathe in the traditional tubewell. No matter how advance technology has gone through, no mater what stylish wadding pools you&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010018.jpg" rel="lightbox[224]"><img class="size-medium wp-image-225 alignleft" title="sm-26062010018" src="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010018-300x225.jpg" alt="" width="300" height="225" /></a> What do you guys say? Yea, don&#8217;t expect mangoes when you plant papayas.<br />
So, this weekend was really exciting. Had a chance to visit our village with brothers. The most enthusiastic part, of course, a bathe in the traditional tubewell. No matter how advance technology has gone through, no mater what stylish wadding pools you&#8217;ve &#8211; if you&#8217;ve once been under the sheer burst of cool water being pushed from the heart of earth and then pressuring your skin, you&#8217;ll be blown out of your mind and would forget modern swimming deluge. If don&#8217;t know <a href="http://en.wikipedia.org/wiki/Tube_well" target="_blank">what it is</a>, it&#8217;s just a modified form of a motor water-well pump with a small or large housing reservoir built out of it to hold water for a while but having adjusted drainages that keep water fresh while it flows off to fields to irrigate them, which of course is main purpose of having any pump in village fields.</p>
<p>Ours is just in the middle of mango trees&#8217; garden and it makes the whole adventure quite more fascinating than fun, it sounds <img src='http://bashukhan.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  The borehole of well is more than 150 feet and seeing it from top makes your vision a bit dizzy and you can fall off right into it if you&#8217;re seeing by bending yourself. I&#8217;m afraid of heights but that doesn&#8217;t mean I may also be afraid of depths (holly shame-o, lol) but that&#8217;s exactly this level of depth does. It&#8217;s illusionary. So, I had to sit down, pull my hand above this 20&#8242; diameter of wide-open hole and take a snap from there, lol <img src='http://bashukhan.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  But that&#8217;s not much scary if you go down by downstairs&#8217; side. Pump that throws water up is a 4HP.</p>
<p style="text-align: center;"><a href="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010028.jpg" rel="lightbox[224]"><img class="aligncenter size-medium wp-image-233" title="sm-26062010028" src="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010028-300x225.jpg" alt="" width="300" height="225" /></a>There&#8217;s small sort of control room out of it that&#8217;s closed most of the times unless there&#8217;s a problem. In summer it runs all day usually! Then there&#8217;s when fun begins. When you put your head under full speed blowing  water, you get your ears and nose full of water. As water in reservoir was full up to my neck and above all its floor was slippery, I really cannot withstand compelling force of blazingly cold water and fell off couple of times. Hilarious but funny as hell! Check out rest of the snaps, while I try to find out a way of eating these mangoes floating on icy water in this bucket. You really don&#8217;t get mangoes if you seed papayas <img src='http://bashukhan.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  !!!</p>
<p><a href="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010020.jpg" rel="lightbox[224]"><img class="aligncenter size-medium wp-image-234" title="sm-26062010020" src="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010020-300x225.jpg" alt="" width="300" height="225" /></a><a href="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010067.jpg" rel="lightbox[224]"><img class="size-medium wp-image-239 alignleft" title="sm-26062010067" src="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010067-300x127.jpg" alt="" width="300" height="127" /></a></p>
<p style="text-align: center;"><a href="http://bashukhan.com/wp-content/uploads/2010/06/ss.png" rel="lightbox[224]"><img class="aligncenter size-medium wp-image-244" title="ss" src="http://bashukhan.com/wp-content/uploads/2010/06/ss-300x224.png" alt="" width="300" height="224" /></a></p>
<p style="text-align: left;"><a href="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010035.jpg" rel="lightbox[224]"><img class="size-medium wp-image-236 alignleft" title="sm-26062010035" src="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010035-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;"><a href="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010048.jpg" rel="lightbox[224]"><img class="aligncenter size-medium wp-image-237" title="sm-26062010048" src="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010048-225x300.jpg" alt="" width="225" height="300" /></a><a href="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010055.jpg" rel="lightbox[224]"><img class="size-medium wp-image-238 alignleft" title="sm-26062010055" src="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010055-225x300.jpg" alt="" width="225" height="300" /></a></p>
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: left;">
<p style="text-align: center;"><a href="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010070.jpg" rel="lightbox[224]"><img class="aligncenter size-medium wp-image-240" title="sm-26062010070" src="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010070-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p style="text-align: left;"><a href="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010071.jpg" rel="lightbox[224]"><img class="size-medium wp-image-241 alignleft" title="sm-26062010071" src="http://bashukhan.com/wp-content/uploads/2010/06/sm-26062010071-300x225.jpg" alt="" width="300" height="225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/nothing-compares-to-a-traditional-tubewell/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Highly transparent Squid proxy.</title>
		<link>http://bashukhan.com/highly-transparent-squid-proxy/</link>
		<comments>http://bashukhan.com/highly-transparent-squid-proxy/#comments</comments>
		<pubDate>Thu, 27 May 2010 16:14:03 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[forwarded_for]]></category>
		<category><![CDATA[highly transparent squid proxy]]></category>
		<category><![CDATA[via]]></category>

		<guid isPermaLink="false">http://bashukhan.com/highly-transparent-squid-proxy/</guid>
		<description><![CDATA[Most of the times you don&#8217;t want to show off the proxy server reference in your web requests despite the fact that it&#8217;s main purpose of any proxy software, for many reasons. With Squid 2.6, its quite easy to do. Add this to squid.conf. via off forwarded_for off And then the below &#8216;via&#8217; entity would [...]]]></description>
			<content:encoded><![CDATA[<p>Most of the times you don&#8217;t want to show off the proxy server reference in your web requests despite the fact that it&#8217;s main purpose of any proxy software, for many reasons. With Squid 2.6, its quite easy to do. Add this to squid.conf.</p>
<pre class="brush: bash;">
via off
forwarded_for off
</pre>
<p>And then the below &#8216;via&#8217; entity would disappear from web header requests being sent from a web browser making recipient webservers unaware of the intermediary proxy location, you&#8217;re coming from!</p>
<p><a href="http://bashukhan.com/wp-content/uploads/2010/05/Squid_via_forwarded_for.png" rel="lightbox[206]"><img class="size-medium wp-image-216 alignleft" title="Squid_via_forwarded_for" src="http://bashukhan.com/wp-content/uploads/2010/05/Squid_via_forwarded_for-300x213.png" alt="" width="300" height="213" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/highly-transparent-squid-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crontab and Unicode Characters</title>
		<link>http://bashukhan.com/crontab-and-unicode-characters/</link>
		<comments>http://bashukhan.com/crontab-and-unicode-characters/#comments</comments>
		<pubDate>Sat, 08 May 2010 14:02:03 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[unicode characters not working in bash cron]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=187</guid>
		<description><![CDATA[Crontab in Linux likes to keep its own shell environment and this can really cause frustrating problems with output of your cron jobs if they don&#8217;t get fixed as its too much ironic to see not the same behiviour of your shell scripts when they are run in crons than to what you normally see [...]]]></description>
			<content:encoded><![CDATA[<p>Crontab in Linux likes to keep its own shell environment and this can really cause frustrating problems with output of your cron jobs if they don&#8217;t get fixed as its too much ironic to see not the same behiviour of your shell scripts when they are run in crons than to what you normally see in a bash.</p>
<p>I was running a script that included a few of other scripts and it was not showing unicode characters properly when it ran as in a cron. Solution is to include &#8216;export LANG=en_US.UTF-8&#8242; in  your shell script but the ideal way to do so I found was to pass on this environment variable directly in command parameter of a cron job.</p>
<p>The unicode character that was missing earlier &#8216;<a title="http://en.wikipedia.org/wiki/Degree_symbol" href="http://" target="_blank">degree</a>&#8216; symbol became visible as soon as I added the variable LANG=en_US.UTF-8 to crontab&#8217;s command.</p>
<pre class="brush: bash;">
# crontab -l
MAILTO=&quot;&quot;
57 9 * * * LANG=en_US.UTF-8 /root/back/hdd-report/report
</pre>
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/crontab-and-unicode-characters/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Linux System Variables</title>
		<link>http://bashukhan.com/linux-system-variables/</link>
		<comments>http://bashukhan.com/linux-system-variables/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 15:53:50 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash environment variables]]></category>
		<category><![CDATA[linux built-in variables]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=155</guid>
		<description><![CDATA[Ever wanted to list down all of system built-in global or local variables stored for your shell? Well, it can be with &#8216;env&#8216; and &#8216;set&#8216; commands. The env lists global variables and set lists local ones. Difference between the two is that, global variables are built-in into any shell while local variables include the ones [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to list down all of system built-in global or local variables stored for your shell? Well, it can be with &#8216;<strong>env</strong>&#8216; and &#8216;<strong>set</strong>&#8216; commands.<br />
The env lists global variables and set lists local ones. Difference between the two is that, global variables are built-in into any shell while local variables include the ones which are set by different applicatons. Such as MAILCHECK (which controls mail checking frequency and informs shell prompt when new mail arrives), only appears in &#8216;set&#8217; command&#8217;s output.</p>
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/linux-system-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Expanding the C: drive (system boot partition)</title>
		<link>http://bashukhan.com/expanding-the-c-drive-system-boot-partition/</link>
		<comments>http://bashukhan.com/expanding-the-c-drive-system-boot-partition/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 14:39:20 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[enlarge system partition]]></category>
		<category><![CDATA[expand boot parition in xenserver windows vm]]></category>
		<category><![CDATA[expanding c; drive]]></category>
		<category><![CDATA[photoblog]]></category>
		<category><![CDATA[windows diskpart]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=130</guid>
		<description><![CDATA[So, I ran out of space on system partition in one of my primary xen virtual machines. Yea, things like this happen quite often when I literally underestimate myself. Unlike Linux, in this case there&#8217;s no power of init which lets you expand an LVM or move a system partition to new disk even without [...]]]></description>
			<content:encoded><![CDATA[<p>So, I ran out of space on system partition in one of my primary xen virtual machines. Yea, things like this happen quite often when I literally underestimate myself. Unlike Linux, in this case there&#8217;s no power of init which lets you expand an LVM or move a system partition to new disk even without going through any reboots. I guess Microsoft realised that its an important option Windows should have so they provided in Windows Server 2008 and Windows 7 under Disk Management with an on the fly ability to either shrink or expand a system volume. But still its a painful risky process in XP or Server 2003. I&#8217;m familiar with third party softwares that help in resizing the partitions including GParted but like always I like to follow vendor supported methodologies on production machines. And it was &#8216;diskpart&#8217; here. Booting the system from a Server 2008 / Vista DVD&#8217;s recovery tools or from WinPE, you can use diskpart. But first things first &#8211; there are three requirements you must have before going ahead.</p>
<ol>
<li>Free space should exist contiguous right after the system partition</li>
<li>That free space partition must be of &#8216;primary&#8217; type and must not be a logical partition.</li>
<li>It should also be in &#8216;unallocated&#8217; or deleted form without an existence of a &#8216;drive&#8217; on it.</li>
</ol>
<p>I had 10Gig C: and D: drive on a 20Gig of a disk. Added 10 more from XenCenter totalling into 30. As I needed a primary unallocated partition after C: drive so I had to use robocopy to backup the D: drive&#8217;s data into a network samba share, format and then split it into one primary and one extended partition.</p>
<p style="text-align: left;"><a href="http://bashukhan.com/wp-content/uploads/2010/03/Expanding-C-Drive.png" rel="lightbox[130]"><img class="size-medium wp-image-131    aligncenter" title="Expanding-C-Drive" src="http://bashukhan.com/wp-content/uploads/2010/03/Expanding-C-Drive-300x278.png" alt="" width="300" height="278" /></a></p>
<p style="text-align: left; padding-left: 120px; font-size: x-small;">Legends:</p>
<p style="padding-left: 120px; text-align: left; font-size: x-small;">Red = Total system drive space before and after the expand<br />
Blue = Total free space on disk before and after expand<br />
Green = Commands issued.</p>
<p style="text-align: center; font-size: x-small;">
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/expanding-the-c-drive-system-boot-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error Logging to Console</title>
		<link>http://bashukhan.com/error-logging-to-console/</link>
		<comments>http://bashukhan.com/error-logging-to-console/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 12:09:21 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=127</guid>
		<description><![CDATA[Sometimes when some applications start logging to console, it can really bleed your eyes when something wrong happens. Not mentioning about standard output or standard errors which are rather easily controllable but it could be anything else invoked by kernel such as iptables logging when you  would like to log any rules to a log [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes when some applications start logging to console, it can really bleed your eyes when something wrong happens. Not mentioning about standard output or standard errors which are rather easily controllable but it could be anything else invoked by kernel such as iptables logging when you  would like to log any rules to a log file or default syslog. But &#8220;hideously&#8221; such applications log to system console too and can surprise you when you plug monitor and see a messy mesh of error loggings all the way back and forth, specifically when a machine is virtual &#8211; of course in that case VM would be unresponsive <img src='http://bashukhan.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I was trying to look into syslog.conf to control but found out that this is not what a syslog daemon has dominance over; in fact, needs kernel-level  logging modified. And this can be done through either of these ways.</p>
<p><span style="text-decoration: underline;"><span style="color: #800000;"><em><strong>Instruct kernel to log only &#8220;errors&#8221; instead of informational notifications.</strong></em></span></span></p>
<p>Controlled by &#8216;printk&#8217; kernel parameter. Defaults are:</p>
<pre class="brush: bash;">
# sysctl -a | grep printk
kernel.printk_ratelimit_burst = 10
kernel.printk_ratelimit = 5
kernel.printk = 6    4    1    7
# find /proc -name '*printk*' -exec cat {} \;
6    4    1    7
</pre>
<p>Just change &#8217;6 4 1 7&#8242; to &#8217;3 4 1 7&#8242;.</p>
<pre class="brush: bash;">
# echo &quot;kernel.printk = 3 4 1 7&quot; &gt;&gt; /etc/sysctl.conf
# sysctl -p
</pre>
<p>Documentation goes over here, if you&#8217;re intrested /usr/share/doc/kernel-doc-2.6.18/Documentation/sysctl/kernel.txt</p>
<pre class="brush: bash;">
printk:

The four values in printk denote:
 console_loglevel,
 default_message_loglevel,
 minimum_console_loglevel and
 default_console_loglevel respectively.

These values influence printk() behavior when printing or
 logging error messages. See 'man 2 syslog' for more info on
 the different loglevels.

- console_loglevel: messages with a higher priority than this will be printed to the console
 - default_message_level: messages without an explicit priority will be printed with this priority
 - minimum_console_loglevel: minimum (highest) value to which console_loglevel can be set
 - default_console_loglevel: default value for console_loglevel
</pre>
<p>Definitions of kernel logging numbers, from Syslog&#8217;s manual:</p>
<pre class="brush: bash;">
#define KERN_EMERG    &quot;&lt;0&gt;&quot;  /* system is unusable               */
 #define KERN_ALERT    &quot;&lt;1&gt;&quot;  /* action must be taken immediately */
 #define KERN_CRIT     &quot;&lt;2&gt;&quot;  /* critical conditions              */
 #define KERN_ERR      &quot;&lt;3&gt;&quot;  /* error conditions                 */
 #define KERN_WARNING  &quot;&lt;4&gt;&quot;  /* warning conditions               */
 #define KERN_NOTICE   &quot;&lt;5&gt;&quot;  /* normal but significant condition */
 #define KERN_INFO     &quot;&lt;6&gt;&quot;  /* informational                    */
 #define KERN_DEBUG    &quot;&lt;7&gt;&quot;  /* debug-level messages             */
</pre>
<p><span style="color: #800000;"><span style="text-decoration: underline;"><em><strong>Change kernel ring buffer logging level</strong></em></span></span></p>
<p>Just keep in mind, using this approach only limits console logging and issuing dmesg would still print the over all logs.</p>
<pre class="brush: bash;">
# dmesg -n 3
or
# dmesg -n 4
</pre>
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/error-logging-to-console/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Raid tricks</title>
		<link>http://bashukhan.com/raid-tricks/</link>
		<comments>http://bashukhan.com/raid-tricks/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 08:05:22 +0000</pubDate>
		<dc:creator>Abbas</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[check and repair raid consistancy]]></category>
		<category><![CDATA[increase raid resync]]></category>
		<category><![CDATA[mdmonitor]]></category>
		<category><![CDATA[raid tips and tricks]]></category>
		<category><![CDATA[set raid email alerts]]></category>

		<guid isPermaLink="false">http://bashukhan.com/?p=67</guid>
		<description><![CDATA[Increasing the rebuild speed Sometimes when you&#8217;re quite lazy or bored and don&#8217;t like the noticeable amount of free resources on your server, you may like to increase the raid building and resyncing process speed. # echo 250000 &#62; /proc/sys/dev/raid/speed_limit_max # echo 250000 &#62; /proc/sys/dev/raid/speed_limit_min And this would spin up the hards faster to their [...]]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;"><span style="color: #000080;"><strong><em>Increasing the rebuild speed</em></strong></span></span></p>
<p><span style="color: #888888;">Sometimes when you&#8217;re quite lazy or bored and don&#8217;t like the noticeable amount of free resources on your server, you may like to increase the raid building and resyncing process speed.</span></p>
<p><span style="color: #888888;">
<pre class="brush: bash;">
# echo 250000 &gt; /proc/sys/dev/raid/speed_limit_max
# echo 250000 &gt; /proc/sys/dev/raid/speed_limit_min
</pre>
<p></span></p>
<p><span style="color: #888888;">And this would spin up the hards faster to their maximum extent saving almost half of the time!<br />
Defaults were:</span></p>
<p><span style="color: #888888;">
<pre class="brush: bash;"> # cat /proc/sys/dev/raid/speed_limit_max
200000
# cat /proc/sys/dev/raid/speed_limit_min
1000
</pre>
<p></span></p>
<p><span style="color: #888888;">And looks like my hards have 100M/s speed.</span></p>
<p><span style="color: #888888;">
<pre class="brush: bash;">
#hddtemp /dev/sda
/dev/sda: ST3750330AS: 31°C
# hdparm -t /dev/sda
/dev/sda:
 Timing buffered disk reads:  280 MB in  3.01 seconds =  93.09 MB/sec
 </pre>
<p></span></p>
<p><span style="text-decoration: underline;"><span style="color: #000080;"><em><strong>Checking and repairing</strong></em></span></span></p>
<p><span style="color: #888888;">The larger the hard drive is the greater the probability of having its blocks corrupted. Its better to check for consistency against any bad blocks or md superblocks.<br />
</span></p>
<p><span style="color: #888888;">
<pre class="brush: bash;">
# cat /sys/block/md0/md/sync_action
idle
# echo check &gt; /sys/block/md0/md/sync_action
</pre>
<p></span></p>
<p><span style="color: #888888;">And if there are any, repair them.</span></p>
<p><span style="color: #888888;">
<pre class="brush: bash;">
# echo repair &gt; /sys/block/md0/md/sync_action
</pre>
<p></span></p>
<p><span style="text-decoration: underline;"><span style="color: #000080;"><em><strong>Setting up RAID alerts to send emails about any errors</strong></em></span></span></p>
<p><span style="color: #888888;">Red Hat family distros come with built in service daemon mdmonitor which runs &#8216;mdadm &#8211;monitor&#8217; in a daemon mode.</span></p>
<p><span style="color: #888888;">
<pre class="brush: bash;">
# mdadm --detail --scan &gt;&gt; /etc/mdadm.conf
# echo &quot;MAILADDR some-email-address&quot; &gt;&gt; /etc/mdadm.conf
# chkconfig mdmonitor on
# service mdmonitor restart
</pre>
<p>Remember to add &#8220;DEVICE partitions&#8221; or partitions being components of an md array to top of file /etc/mdadm.conf.</p>
<p><span style="color: #000080;"><span style="text-decoration: underline;"><em><strong><span style="color: #000080;"><a href="http://bashukhan.com/more-raid-tidbits-monitoring-all-raid-events-and-changing-default-email-template/" target="_self">Monitoring all RAID events and changing default email template</a></span><br />
</strong></em></span></span></p>
<p><em>Last edited on: Tue Mar  9 11:41:38 PST 2010<br />
Added the two new tweaks.</em></p>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://bashukhan.com/raid-tricks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.015 seconds -->
