<?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>Lamp, scalability, opensource</title>
	<atom:link href="http://lamp.mayavi.info/index.php/feed" rel="self" type="application/rss+xml" />
	<link>http://lamp.mayavi.info</link>
	<description></description>
	<lastBuildDate>Mon, 01 Jun 2009 05:57:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>InnoDB per-table tablespaces &#8211; file for each innodb table</title>
		<link>http://lamp.mayavi.info/index.php/databases/innodb-per-table-tablespaces-file-for-each-innodb-table.html</link>
		<comments>http://lamp.mayavi.info/index.php/databases/innodb-per-table-tablespaces-file-for-each-innodb-table.html#comments</comments>
		<pubDate>Wed, 06 May 2009 20:40:46 +0000</pubDate>
		<dc:creator>Ranjeet Walunj</dc:creator>
				<category><![CDATA[databases]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[database fragmentation]]></category>
		<category><![CDATA[ibdata]]></category>
		<category><![CDATA[ibdata1]]></category>
		<category><![CDATA[innodb]]></category>
		<category><![CDATA[innodb_file_per_table]]></category>
		<category><![CDATA[mysql engine]]></category>
		<category><![CDATA[per table tablespaces]]></category>
		<category><![CDATA[regain harddrive space used by ibdata1]]></category>
		<category><![CDATA[shrink]]></category>

		<guid isPermaLink="false">http://lamp.mayavi.info/?p=12</guid>
		<description><![CDATA[
		
		
		
		
		
		
		
		Lot has been discussed over the usefulness and power of various mysql engines. (Viz. MyISAM or InnoDB or Archive)
In basic format, MyISAM is faster in SELECT operations and running `fulltext indexes/searches`.
Whereas InnoDB has transaction support and ROW-Level locking which helps in database locking issue.
MyISAM engine stores data and indexes for each table in separate files [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.4 Start--><div style="float: right; width: 42px; padding-right: 90px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		reddit_url = "http://lamp.mayavi.info/index.php/databases/innodb-per-table-tablespaces-file-for-each-innodb-table.html";
		reddit_title = "InnoDB per-table tablespaces &#8211; file for each innodb table";
		//-->
		</script>
		<script type="text/javascript" src="http://www.reddit.com/button.js?t=1"></script></div><div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://lamp.mayavi.info/index.php/databases/innodb-per-table-tablespaces-file-for-each-innodb-table.html";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "";
		digg_title = "InnoDB per-table tablespaces &#8211; file for each innodb table";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><!--S-ButtonZ 1.1.4 End--><p>Lot has been discussed over the usefulness and power of various mysql engines. (Viz. MyISAM or InnoDB or Archive)</p>
<p>In basic format, MyISAM is faster in SELECT operations and running `fulltext indexes/searches`.</p>
<p>Whereas InnoDB has transaction support and ROW-Level locking which helps in database locking issue.</p>
<p>MyISAM engine stores data and indexes for each table in separate files as follows :<br />
 MYI = index file, MYD = data file, FRM = format (schema) file</p>
<p>Whereas default installation of InnoDB engine stores most of the information in single file called ibdata1. (usually /var/lib/mysql/ibdata1 )</p>
<p>This default behaviour of InnoDB engine has few drawbacks: (Its a well known fact that InnoDB needs good tuning to give much solid performance.)<br />
 1) Single large file<br />
 2) Even if the tables/data is deleted from InnoDB tables, the size taken by ibdata1 does not shrink  (eventually space crunch on server)<br />
 3) Fragmentation</p>
<p>To avoid above situations, it is always wise to add per-table tablespace option in InnoDB config parameters in /etc/my.cnf<br />
 Add following parameter to conf file :</p>
<blockquote><p style="padding-left: 90px;">[mysqld]<br />
 innodb_file_per_table</p>
</blockquote>
<p><a title="MySQL referrence -- Using Per-Table Tablespaces" href="http://dev.mysql.com/doc/refman/5.0/en/multiple-tablespaces.html" target="_blank">Read here</a> about the innodb_file_per_table config parameter.</p>
<p>What this parameter will ensure that all new tables (Please note: Only new InnoDB tables) will have individual file for data instead of single large file for all innodb tables.</p>
<p>Now real question is what will happen to existing tables which are already InnoDB/MyISAM tables.</p>
<p>Applying anyone of the following method will ensure conversion of existing InnoDB tables in using multiple tablespaces.</p>
<p>1) Export all databases, delete ibdata1 and import everything back<br />
 This is sure way of converting everything to per-table tablespaces along with fresh ibdata1 file</p>
<p>2) Export only InnoDB tables, drop them, delete ibdata1 and import InnoDB tables back into respective databases<br />
 If there are lots of databases and dumping all DB is not an option then this step can be performed.<br />
 Note: Please ensure backup at every stage</p>
<p>3)     run  following command in your shell</p>
<p style="padding-left: 60px;">mysqlcheck  &#8211;optimize &#8211;all-databases</p>
<p>4) Convert all InnoDB tables to MyISAM using ALTER TABLE command<br />
 for each InnoDB table run following command at mysql prompt</p>
<blockquote><p style="padding-left: 60px;">mysql&gt;ALTER TABLE tablename ENGINE=InnoDB;</p>
</blockquote>
<p>However STEP 3 and 4 does not shrink the exising size of ibdata1 file.  To regain the space used earlier by ibdata1, please use step1 or step2</p>
<p>And most important after every mysql installation pls add the &#8216;innodb_file_per_table&#8217; parameter in your /etc/my.cnf</p>
<div style="clear:both;">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://lamp.mayavi.info/index.php/databases/innodb-per-table-tablespaces-file-for-each-innodb-table.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Install fortune cookies on Ubuntu</title>
		<link>http://lamp.mayavi.info/index.php/linux/install-fortune-cookies-on-ubuntu.html</link>
		<comments>http://lamp.mayavi.info/index.php/linux/install-fortune-cookies-on-ubuntu.html#comments</comments>
		<pubDate>Mon, 04 May 2009 22:22:08 +0000</pubDate>
		<dc:creator>Ranjeet Walunj</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[fortune]]></category>
		<category><![CDATA[fortune cookies]]></category>
		<category><![CDATA[fortune-mod]]></category>
		<category><![CDATA[fortunes]]></category>
		<category><![CDATA[quotes]]></category>

		<guid isPermaLink="false">http://lamp.mayavi.info/?p=3</guid>
		<description><![CDATA[
		
		
		
		
		
		
		
		I&#8217;ve just finished installation of Ubuntu 9.04 (Jaunty) 64-bit on my inspiron 1520.
And let me tell you ext4 is fast &#8230; and jaunty is very sleek and nice looking and fast compared to earlier versions or others.
Do you love to get fortune cookies in your linux ?
Adding them as signature to your emails ?
Most of [...]]]></description>
			<content:encoded><![CDATA[<!--S-ButtonZ 1.1.4 Start--><div style="float: right; width: 42px; padding-right: 90px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		reddit_url = "http://lamp.mayavi.info/index.php/linux/install-fortune-cookies-on-ubuntu.html";
		reddit_title = "Install fortune cookies on Ubuntu";
		//-->
		</script>
		<script type="text/javascript" src="http://www.reddit.com/button.js?t=1"></script></div><div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://lamp.mayavi.info/index.php/linux/install-fortune-cookies-on-ubuntu.html";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "";
		digg_title = "Install fortune cookies on Ubuntu";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><!--S-ButtonZ 1.1.4 End--><p>I&#8217;ve just finished installation of Ubuntu 9.04 (Jaunty) 64-bit on my inspiron 1520.<br />
And let me tell you ext4 is fast &#8230; and jaunty is very sleek and nice looking and fast compared to earlier versions or others.</p>
<p>Do you love to get fortune cookies in your linux ?<br />
Adding them as signature to your emails ?<br />
Most of the times the signatures/cookies provided are absolutely awesome and fit perfectly for the situation.<br />
(Or you can obviously try again to get more relevant quote/cookie)</p>
<p>The easiest way to install fortune cookie on ubuntu is as follows :</p>
<blockquote>
<p style="padding-left: 30px;">sudo apt-get install fortune-mod fortunes</p>
</blockquote>
<p>It will install many fortune cookies at location : /usr/share/games/fortunes<br />
The above two packages contain enough cookies which should be sufficient for most of our needs.</p>
<p>The usage is as follows :</p>
<blockquote>
<p style="padding-left: 30px;">mayavi@mayavi-laptop:~$ /usr/games/fortune<br />
Talent does what it can.<br />
Genius does what it must.<br />
You do what you get paid to do.</p></blockquote>
<p>You can get specific topic fortune using following command :</p>
<blockquote>
<p style="padding-left: 30px;">mayavi@mayavi-laptop:~$ /usr/games/fortune linux<br />
If Bill Gates is the Devil then Linus Torvalds must be the Messiah.<br />
&#8211; Unknown source</p></blockquote>
<p>You can combine two or more categories in the above command to get more diverse options.</p>
<p>You can create your own fortune cookies or add to existing ones.</p>
<p>For e.g. to add new quote to Linux, open up a file   /usr/share/games/fortunes/linux</p>
<p>and add your quote in this file between %</p>
<p>I&#8217;ve added Next  quote :     %  “1f u c4n r34d th1s u r34lly n33d t0 g37 l41d” %</p>
<p>Post this run following command :</p>
<blockquote>
<p style="padding-left: 30px;">root@mayavi-laptop:/usr/share/games/fortunes# strfile linux<br />
&#8220;linux.dat&#8221; created<br />
There were 336 strings<br />
Longest string: 1177 bytes<br />
Shortest string: 39 bytes</p></blockquote>
<p>And you are ready to use your new quotes/files</p>
<p>Add this to you signature in evolution/thunderbird <img src='http://lamp.mayavi.info/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div style="clear:both;">&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://lamp.mayavi.info/index.php/linux/install-fortune-cookies-on-ubuntu.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

