<?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>beer planet &#187; suse</title> <atom:link href="http://beerpla.net/tag/suse/feed/" rel="self" type="application/rss+xml" /><link>http://beerpla.net</link> <description>where things have nothing to do with beer - tutorials, tips, how-tos, thoughts, hacks, and other techy nonsense</description> <lastBuildDate>Fri, 06 Jan 2012 08:50:59 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel='hub' href='http://beerpla.net/?pushpress=hub'/> <item><title>Setting Up A MySQL Cluster</title><link>http://beerpla.net/2008/03/26/setting-up-a-mysql-cluster/</link> <comments>http://beerpla.net/2008/03/26/setting-up-a-mysql-cluster/#comments</comments> <pubDate>Wed, 26 Mar 2008 15:41:18 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Databases]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Technology]]></category> <category><![CDATA[cluster]]></category> <category><![CDATA[guide]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[opensuse]]></category> <category><![CDATA[setup]]></category> <category><![CDATA[suse]]></category> <guid
isPermaLink="false">http://beerpla.net/2008/03/26/setting-up-a-mysql-cluster/</guid> <description><![CDATA[<p><div
class="note"><div
class="notewarning"><b>Attention:</b> Apparently since the release of 5.1.25, cluster is packaged separately. I need to do some reading and research first and then update the tutorial with the latest info.</div></div></p><p>Here are some quick links for now: <a
href="http://blogs.mysql.com/kaj/2008/05/23/mysql-clusters-improved-release-model/">http://blogs.mysql.com/kaj/2008/05/23/mysql-clusters-improved-release-model/</a>, <a
href="http://johanandersson.blogspot.com/2008/05/mysql-cluster-62-officially-released.html">http://johanandersson.blogspot.com/2008/05/mysql-cluster-62-officially-released.html</a>, <a
href="http://blogs.sun.com/theaquarium/entry/improved_release_model_for_mysql">http://blogs.sun.com/theaquarium/entry/improved_release_model_for_mysql</a>.</p><p>This article contains my notes and detailed instructions on setting up a MySQL cluster. After reading it, you should have a good understanding of what a MySQL cluster is capable of, how and why it works, and how to set one of these bad boys up. Note that I&#039;m primarily a developer, with an interest in systems administration but I think that every developer should be able to understand and set up a MySQL cluster, at...<div
class=clear></div> <a
href="http://beerpla.net/2008/03/26/setting-up-a-mysql-cluster/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p><div
class="note"><div
class="notewarning"><b>Attention:</b> Apparently since the release of 5.1.25, cluster is packaged separately. I need to do some reading and research first and then update the tutorial with the latest info.</p><p>Here are some quick links for now: <a
href="http://blogs.mysql.com/kaj/2008/05/23/mysql-clusters-improved-release-model/">http://blogs.mysql.com/kaj/2008/05/23/mysql-clusters-improved-release-model/</a>, <a
href="http://johanandersson.blogspot.com/2008/05/mysql-cluster-62-officially-released.html">http://johanandersson.blogspot.com/2008/05/mysql-cluster-62-officially-released.html</a>, <a
href="http://blogs.sun.com/theaquarium/entry/improved_release_model_for_mysql">http://blogs.sun.com/theaquarium/entry/improved_release_model_for_mysql</a>.</div></div></p></p><p>This article contains my notes and detailed instructions on setting up a MySQL cluster. After reading it, you should have a good understanding of what a MySQL cluster is capable of, how and why it works, and how to set one of these bad boys up. Note that I&#039;m primarily a developer, with an interest in systems administration but I think that every developer should be able to understand and set up a MySQL cluster, at least to make the dev environment more robust.</p><ul><p
align="center"><strong>Notes</strong></p><li>In short, a MySQL cluster allows a user to set up a MySQL database shared between a number of machines. Here are some benefits:<ul><li>High availability. If one or some of the machines go down, the cluster will stay up, as long as there is at least one copy of all data still present. The more redundant copies of data there are, the more machines you can afford to lose.</li><li>Scalability. Distributed architecture allows for load balancing. If your MySQL database is getting hit with lots of queries, consider setting up a cluster to spread this load in almost linear fashion. A 4 node cluster should be able to handle twice as many queries as a 2 node cluster.</li><li>Online backups.</li><li>Full support for transactions.</li></ul></li><li>Must-have manual: <a
href="http://www.amazon.com/dp/0672328550/?tag=beepla-20">MySQL Clustering</a> by <a
href="http://www.amazon.com/exec/obidos/search-handle-url/103-5577892-2423057?%5Fencoding=UTF8&amp;search-type=ss&amp;index=books&amp;field-author=Alex%20Davies">Alex Davies</a> and <a
href="http://www.amazon.com/exec/obidos/search-handle-url/103-5577892-2423057?%5Fencoding=UTF8&amp;search-type=ss&amp;index=books&amp;field-author=Harrison%20Fisk">Harrison Fisk</a>, MySQL Press.</li><li>First and foremost, I would like to get this out of the way (from <a
href="http://www.amazon.com/dp/0672328550/?tag=beepla-20">MySQL Clustering</a>):<ul><li><strong>Response time with MySQL Cluster is quite commonly worse than it is with the traditional setup.</strong> Yes, response time is quite commonly worse with clustering than with a normal system. If you consider the architecture of MySQL Cluster, this will begin to make more sense.</li><li>When you do a query with a cluster, it has to first go to the MySQL server, and then it goes to storage nodes and sends the data back the same way. When you do a query on a normal system, all access is done within the MySQL server itself. It is clearly faster to access local resources than to read the same thing across a network. Response time is very much dependant on network latency because of the extra network traffic. <strong>Some queries may be faster than others due to the parallel scanning that is possible, but you cannot expect all queries to have a better response time.</strong></li><li>So if the response time is worse, why would you use a cluster? First, response time isn&#039;t normally very important. For the vast majority of applications, 10ms versus 15ms isn&#039;t considered a big difference.</li><li>Where MySQL Cluster shines is in relation to the other two metrics: throughput and scalability.</li></ul></li><li>A typical MySQL cluster setup involves 3 components in at least this configuration:<ul><li>1 management (ndb_mgmd) node.<ul><li>Management nodes contain the cluster configuration.</li><li>A management node is only needed to connect new storage and query nodes to the cluster and do some arbitration.</li><li>Existing storage and query nodes continue to operate normally if the management node goes down.</li><li>Therefore, it&#039;s relatively safe to have only 1 management node running on a very low spec machine (configuring 2 management nodes is possible but is slightly more complex and less dynamic).</li><li>Interfacing with a management node is done via an ndb_mgm utility.</li><li>Management nodes are configured using config.ini.</li><li>My setup here involves 1 management node.</li></ul></li><li>2 storage (ndbd) nodes.<ul><li>You do not interface directly with those nodes, instead you go through SQL nodes, described next.</li><li>It is possible to have more storage nodes than SQL nodes.</li><li>It is possible to host storage nodes on the same machines as SQL nodes.</li><li>It is possible, although not recommended, to host storage nodes on the same machines as management nodes.</li><li>Storage nodes will split up the data between themselves automatically. For example, if you want to store each row on 2 machines for redundancy (<em>NoOfReplicas</em>=2) and you have 6 storage nodes, your data is going to be split up into 3 distinct non-intersecting chunks, called <em>node groups</em>.</li><li>Given a correctly formulated query, it is possible to make MySQL scan all 3 chunks in parallel, thus returning the result set quicker.</li><li>Node groups are formed implicitly, meaning you cannot assign a storage node to a specific node group. What you can do, however, is manipulate the IDs of the nodes in such a way that the servers you want will get assigned to the node groups you want. The nodes having consecutive IDs get assigned to the same node group until there are <em>NoOfReplicas</em> nodes in a node group, at which point a node group starts.</li><li>Storage nodes are configured using /etc/my.cnf. They are also affected by settings in config.ini on the management node.</li><li>My setup here involves 4 storage nodes.</li></ul></li><li>2 query (SQL) nodes.<ul><li>SQL nodes are regular mysqld processes that access data in the cluster. You guessed it right &#8211; the data sits in storage nodes, and SQL nodes just serve as gateways to them.</li><li>Your application will connect to these SQL node IPs and will have no knowledge of storage nodes.</li><li>It is possible to have more SQL nodes than storage nodes.</li><li>It is possible to host SQL nodes on the same machines as storage nodes.</li><li>It is possible, although not recommended, to host SQL nodes on the same machines as management nodes.</li><li>SQL nodes are configured using /etc/my.cnf. They are also affected by settings in config.ini on the management node.</li><li>My setup here involves 4 SQL nodes.</li></ul></li></ul></li><li>Normally a cluster doesn&#039;t want to start if not all the storage nodes are connected (from <a
href="http://www.amazon.com/dp/0672328550/?tag=beepla-20">MySQL Clustering</a>).<ul><li>Therefore, the cluster waits longer during the restart if the nodes aren&#039;t all connected so that the other storage nodes can connect. This period of time is specified in the setting StartPartialTimeout, which defaults to 30 seconds. If at the end of 30 seconds, a cluster is possible (that is, it has one node from each node group) and it can&#039;t be in a network partitioned situation (that is, it has all of one node group), the cluster will perform a partial cluster restart, in which it starts up even though storage nodes are missing.</li><li>If the cluster is in a potential network partitioned setup, where it doesn&#039;t have all of a single node group, then it will wait even longer, with a setting called StartPartitionedTimeout, which defaults to 60 seconds.</li></ul></li><li>Adding databases propagates to all SQL nodes (at least with the latest version of MySQL), so when you create a new database, you only need to do it once on any SQL node. However, users dont propagate, so each SQL node will need to have its own users set up. Warning: do NOT try to change the MySQL internal tables (the ones in database mysql) to type ndbcluster as the cluster will break.</li><li>I will think of something else to put here.</li></ul><p
align="center"><strong>My Setup</strong></p><p>This is my sample configuration with sample IPs:</p><ul><li>mysql-5.1.22-rc-linux-i686-icc-glibc23</li><li>1x management node (OpenSUSE): 10.0.0.1</li><li>4x storage (ndbd) nodes (OpenSUSE): 10.0.0.2, 10.0.0.3, 10.0.0.4, 10.0.0.5.</li><li>4x query (SQL) nodes (OpenSUSE): 10.0.0.2, 10.0.0.3, 10.0.0.4, 10.0.0.5.</li><li>NoOfReplicas = 2, meaning there will be 2 copies of all data and therefore 4/2=2 node groups.</li><li>Cluster data will sit in /var/lib/mysql-cluster.</li></ul><p
align="center"><strong>Sample Screenshot</strong></p><p
align="left">Here is a sample screenshot of another one of my configurations showing a similar setup. This is the output of <em>show</em> on the management node:</p><p
align="center"><a
href="http://beerpla.net/wp-content/uploads/SettingUpAMySQLCluster_7C68/image.png" class="lightview" rel="gallery['240']"><img
height="319" alt="image" src="http://beerpla.net/wp-content/uploads/SettingUpAMySQLCluster_7C68/image_thumb.png" width="509" border="0" /></a></p><p
align="center"><strong>Setup Instructions</strong></p><p><strong>On the management node (as root):</strong></p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td
class="code"><pre>groupadd mysql
useradd -g mysql mysql
mkdir -p /root/src/
cd /root/src/
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.22-rc-linux-i686-icc-glibc23.tar.gz/from/http://mysql.he.net/
tar xvzf mysql-*.tar.gz
rm mysql-*.tar.gz</pre></td></tr></table></div><ul><li>ndb_mgmd is the management server</li><li>ndb_mgm is the management client</li></ul><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
</pre></td><td
class="code"><pre>cp mysql-*/bin/ndb_mg* /usr/bin/
chmod +x /usr/bin/ndb_mg*
mkdir /var/lib/mysql-cluster
chown mysql:mysql /var/lib/mysql-cluster
vi /var/lib/mysql-cluster/config.ini</pre></td></tr></table></div><p> <br
/>Download <a
href="http://beerpla.net/wp-content/uploads/SettingUpAMySQLCluster_7C68/config_3.ini">/var/lib/mysql-cluster/config.ini</a></p><p></p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code"><pre>ndb_mgmd -f /var/lib/mysql-cluster/config.ini
ndb_mgm
show</pre></td></tr></table></div><p> <br
/><strong>On each storage and SQL node (as root):</strong></p><p></p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td
class="code"><pre>groupadd mysql
useradd -g mysql mysql
cd /usr/local
wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.22-rc-linux-i686-icc-glibc23.tar.gz/from/http://mysql.he.net/
tar xvzf mysql-*.tar.gz
rm mysql-*.tar.gz
ln -s `echo mysql-*` mysql
cd mysql
chown -R root .
chown -R mysql data
chgrp -R mysql .
scripts/mysql_install_db --user=mysql
cp support-files/mysql.server /etc/init.d/
chmod +x /etc/init.d/mysql.server
vi /etc/my.cnf</pre></td></tr></table></div><p> <br
/>Download <a
href="http://beerpla.net/wp-content/uploads/SettingUpAMySQLCluster_128EF/my.cnf" target="_self">/etc/my.cnf</a></p><p></p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td
class="code"><pre>mkdir /var/lib/mysql-cluster
chown mysql:mysql /var/lib/mysql-cluster
cd /var/lib/mysql-cluster
su mysql
/usr/local/mysql/bin/ndbd --initial # start the storage node and force it to (re)read the config
exit
echo &quot;/usr/local/mysql/bin/ndbd&quot; &gt; /etc/init.d/ndbd
chmod +x /etc/init.d/ndbd
/etc/init.d/mysql.server restart # start the query node</pre></td></tr></table></div><p> <br
/>SUSE:</p><p></p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
</pre></td><td
class="code"><pre>chkconfig --add mysql.server # this is SUSE's way of starting applications on system boot
chkconfig --add ndbd
chkconfig --list mysql.server
chkconfig --list ndbd</pre></td></tr></table></div><p> <br
/>Ubuntu:</p><p></p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
</pre></td><td
class="code"><pre>sudo apt-get install sysv-rc-conf # this is chkconfig's equivalent in Ubuntu
sysv-rc-conf mysql.server on
sysv-rc-conf ndbd on
sysv-rc-conf --list mysql.server
sysv-rc-conf --list ndbd</pre></td></tr></table></div><p>That&#039;s it! At this point you should go back to the management console that you logged into earlier (ndb_mgm) and issue the &#039;show&#039; command again. If everything is fine, you should see your data and SQL nodes connected. Now you can login to any SQL node, make some users, and create new ndb tables. If you&#039;re experiencing problems, do leave a message in the comments.</p><p>In the next mysql cluster article, I will explore various cluster error messages I have encountered as well as config file tweaking. Now go and spend some time outside in the sun &#8211; life is too short to waste it at a dark office.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Setting+Up+A+MySQL+Cluster&amp;link=http://beerpla.net/2008/03/26/setting-up-a-mysql-cluster/&amp;notes=%5Bwarning%5DAttention%3A%20Apparently%20since%20the%20release%20of%205.1.25%2C%20cluster%20is%20packaged%20separately.%20I%20need%20to%20do%20some%20reading%20and%20research%20first%20and%20then%20update%20the%20tutorial%20with%20the%20latest%20info.%20%20%20Here%20are%20some%20quick%20links%20for%20now%3A%20http%3A%2F%2Fblogs.mysql.com%2Fkaj%2F2008%2F05%2F23%2Fmysql-clusters-improved-release-model&amp;short_link=http://bit.ly/aYTA5e&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Setting+Up+A+MySQL+Cluster&amp;link=http://beerpla.net/2008/03/26/setting-up-a-mysql-cluster/&amp;notes=%5Bwarning%5DAttention%3A%20Apparently%20since%20the%20release%20of%205.1.25%2C%20cluster%20is%20packaged%20separately.%20I%20need%20to%20do%20some%20reading%20and%20research%20first%20and%20then%20update%20the%20tutorial%20with%20the%20latest%20info.%20%20%20Here%20are%20some%20quick%20links%20for%20now%3A%20http%3A%2F%2Fblogs.mysql.com%2Fkaj%2F2008%2F05%2F23%2Fmysql-clusters-improved-release-model&amp;short_link=http://bit.ly/aYTA5e&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Setting+Up+A+MySQL+Cluster&amp;link=http://beerpla.net/2008/03/26/setting-up-a-mysql-cluster/&amp;notes=%5Bwarning%5DAttention%3A%20Apparently%20since%20the%20release%20of%205.1.25%2C%20cluster%20is%20packaged%20separately.%20I%20need%20to%20do%20some%20reading%20and%20research%20first%20and%20then%20update%20the%20tutorial%20with%20the%20latest%20info.%20%20%20Here%20are%20some%20quick%20links%20for%20now%3A%20http%3A%2F%2Fblogs.mysql.com%2Fkaj%2F2008%2F05%2F23%2Fmysql-clusters-improved-release-model&amp;short_link=http://bit.ly/aYTA5e&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Setting+Up+A+MySQL+Cluster&amp;link=http://beerpla.net/2008/03/26/setting-up-a-mysql-cluster/&amp;notes=%5Bwarning%5DAttention%3A%20Apparently%20since%20the%20release%20of%205.1.25%2C%20cluster%20is%20packaged%20separately.%20I%20need%20to%20do%20some%20reading%20and%20research%20first%20and%20then%20update%20the%20tutorial%20with%20the%20latest%20info.%20%20%20Here%20are%20some%20quick%20links%20for%20now%3A%20http%3A%2F%2Fblogs.mysql.com%2Fkaj%2F2008%2F05%2F23%2Fmysql-clusters-improved-release-model&amp;short_link=http://bit.ly/aYTA5e&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Setting+Up+A+MySQL+Cluster&amp;link=http://beerpla.net/2008/03/26/setting-up-a-mysql-cluster/&amp;notes=%5Bwarning%5DAttention%3A%20Apparently%20since%20the%20release%20of%205.1.25%2C%20cluster%20is%20packaged%20separately.%20I%20need%20to%20do%20some%20reading%20and%20research%20first%20and%20then%20update%20the%20tutorial%20with%20the%20latest%20info.%20%20%20Here%20are%20some%20quick%20links%20for%20now%3A%20http%3A%2F%2Fblogs.mysql.com%2Fkaj%2F2008%2F05%2F23%2Fmysql-clusters-improved-release-model&amp;short_link=http://bit.ly/aYTA5e&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Setting+Up+A+MySQL+Cluster&amp;link=http://beerpla.net/2008/03/26/setting-up-a-mysql-cluster/&amp;notes=%5Bwarning%5DAttention%3A%20Apparently%20since%20the%20release%20of%205.1.25%2C%20cluster%20is%20packaged%20separately.%20I%20need%20to%20do%20some%20reading%20and%20research%20first%20and%20then%20update%20the%20tutorial%20with%20the%20latest%20info.%20%20%20Here%20are%20some%20quick%20links%20for%20now%3A%20http%3A%2F%2Fblogs.mysql.com%2Fkaj%2F2008%2F05%2F23%2Fmysql-clusters-improved-release-model&amp;short_link=http://bit.ly/aYTA5e&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Setting+Up+A+MySQL+Cluster&amp;link=http://beerpla.net/2008/03/26/setting-up-a-mysql-cluster/&amp;notes=%5Bwarning%5DAttention%3A%20Apparently%20since%20the%20release%20of%205.1.25%2C%20cluster%20is%20packaged%20separately.%20I%20need%20to%20do%20some%20reading%20and%20research%20first%20and%20then%20update%20the%20tutorial%20with%20the%20latest%20info.%20%20%20Here%20are%20some%20quick%20links%20for%20now%3A%20http%3A%2F%2Fblogs.mysql.com%2Fkaj%2F2008%2F05%2F23%2Fmysql-clusters-improved-release-model&amp;short_link=http://bit.ly/aYTA5e&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Setting%20Up%20A%20MySQL%20Cluster&amp;link=http://beerpla.net/2008/03/26/setting-up-a-mysql-cluster/&amp;notes=%5Bwarning%5DAttention%3A%20Apparently%20since%20the%20release%20of%205.1.25%2C%20cluster%20is%20packaged%20separately.%20I%20need%20to%20do%20some%20reading%20and%20research%20first%20and%20then%20update%20the%20tutorial%20with%20the%20latest%20info.%20%20%20Here%20are%20some%20quick%20links%20for%20now%3A%20http%3A%2F%2Fblogs.mysql.com%2Fkaj%2F2008%2F05%2F23%2Fmysql-clusters-improved-release-model&amp;short_link=http://bit.ly/aYTA5e&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2008/04/16/mysql-conference-liveblogging-portable-scale-out-benchmarks-for-mysql-wednesday-1050am/" rel="bookmark" title="April 16, 2008">MySQL Conference Liveblogging: Portable Scale-out Benchmarks For MySQL (Wednesday 10:50AM)</a></li><li><a
href="http://beerpla.net/2008/04/15/mysql-conference-liveblogging-performance-guide-for-mysql-cluster-tuesday-1050am/" rel="bookmark" title="April 15, 2008">MySQL Conference Liveblogging: Performance Guide For MySQL Cluster (Tuesday 10:50AM)</a></li><li><a
href="http://beerpla.net/2008/04/15/mysql-conference-liveblogging-the-future-of-mysql-tuesday-1155am-2/" rel="bookmark" title="April 15, 2008">MySQL Conference Liveblogging: The Future Of MySQL (Tuesday 11:55AM)</a></li><li><a
href="http://beerpla.net/2008/03/11/mysql-falcon-storage-engine-enters-beta-stage/" rel="bookmark" title="March 11, 2008">MySQL Falcon Storage Engine Enters Beta Stage.</a></li><li><a
href="http://beerpla.net/2008/09/05/mysql-slave-lag-delay-explained-and-7-ways-to-battle-it/" rel="bookmark" title="September 5, 2008">MySQL Slave Lag (Delay) Explained And 7 Ways To Battle It</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2008%2F03%2F26%2Fsetting-up-a-mysql-cluster%2F&amp;title=Setting%20Up%20A%20MySQL%20Cluster" id="wpa2a_2"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2008/03/26/setting-up-a-mysql-cluster/feed/</wfw:commentRss> <slash:comments>25</slash:comments> </item> <item><title>Make Screen and YaST Work Together</title><link>http://beerpla.net/2007/11/04/make-screen-and-yast-work-together/</link> <comments>http://beerpla.net/2007/11/04/make-screen-and-yast-work-together/#comments</comments> <pubDate>Mon, 05 Nov 2007 07:05:00 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[character encoding]]></category> <category><![CDATA[koi8r]]></category> <category><![CDATA[ncurses]]></category> <category><![CDATA[opensuse]]></category> <category><![CDATA[problems]]></category> <category><![CDATA[putty]]></category> <category><![CDATA[screen]]></category> <category><![CDATA[securecrt]]></category> <category><![CDATA[suse]]></category> <category><![CDATA[utf8]]></category> <category><![CDATA[yast]]></category> <guid
isPermaLink="false">http://beerpla.net/2007/11/04/make-screen-and-yast-work-together/</guid> <description><![CDATA[<p
align="left">I don&#039;t know about you but I&#039;ve had a lot of problems making <a
href="http://en.wikipedia.org/wiki/GNU_Screen">screen</a> work nicely with YaST. Both putty and SecureCRT had major problems displaying YaST&#039;s ncurses interface. The screenshots below depict the problem quite clearly. If at this point you don&#039;t see anything like this, you are most likely not affected and can go get a beer.</p><p
align="center"><a
href="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image.png" class="lightview" rel="gallery['259']"><img
src="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_thumb.png" alt="image" height="452" width="640" /></a></p><p
align="center"><a
href="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_3.png" class="lightview" rel="gallery['259']"><img
src="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_thumb_3.png" alt="image" height="480" width="552" /></a></p><p>If you are seeing similar problems, here&#039;s the fix. After digging around a bit, I have discovered that the problem was incorrect data encoding. My character set was set to KOI8-R while ncurses expected UTF-8. Here is how to change the corresponding setting in putty:</p><p
align="center"><a
href="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_4.png" class="lightview" rel="gallery['259']"><img
src="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_thumb_4.png" alt="image" height="435" width="457" /></a></p><p
align="center"><a
href="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_5.png" class="lightview" rel="gallery['259']"><img
src="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_thumb_5.png" alt="image" height="434" width="453" /></a></p><p
align="left">&#8230; and SecureCRT:</p><p
align="center"><a
href="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_6.png" class="lightview" rel="gallery['259']"><img
src="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_thumb_6.png" alt="image" height="494" width="541" /></a>...<div
class=clear></div> <a
href="http://beerpla.net/2007/11/04/make-screen-and-yast-work-together/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p
align="left">I don&#039;t know about you but I&#039;ve had a lot of problems making <a
href="http://en.wikipedia.org/wiki/GNU_Screen">screen</a> work nicely with YaST. Both putty and SecureCRT had major problems displaying YaST&#039;s ncurses interface. The screenshots below depict the problem quite clearly. If at this point you don&#039;t see anything like this, you are most likely not affected and can go get a beer.</p><p
align="center"><a
href="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image.png" class="lightview" rel="gallery['259']"><img
src="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_thumb.png" alt="image" height="452" width="640" /></a></p><p
align="center"><a
href="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_3.png" class="lightview" rel="gallery['259']"><img
src="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_thumb_3.png" alt="image" height="480" width="552" /></a></p><p>If you are seeing similar problems, here&#039;s the fix. After digging around a bit, I have discovered that the problem was incorrect data encoding. My character set was set to KOI8-R while ncurses expected UTF-8. Here is how to change the corresponding setting in putty:</p><p
align="center"><a
href="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_4.png" class="lightview" rel="gallery['259']"><img
src="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_thumb_4.png" alt="image" height="435" width="457" /></a></p><p
align="center"><a
href="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_5.png" class="lightview" rel="gallery['259']"><img
src="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_thumb_5.png" alt="image" height="434" width="453" /></a></p><p
align="left">&#8230; and SecureCRT:</p><p
align="center"><a
href="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_6.png" class="lightview" rel="gallery['259']"><img
src="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_thumb_6.png" alt="image" height="494" width="541" /></a></p><p
align="center"><a
href="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_7.png" class="lightview" rel="gallery['259']"><img
src="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_thumb_7.png" alt="image" height="493" width="539" /></a></p><p>Now restart YaST and voila:</p><p
align="center"><a
href="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_8.png" class="lightview" rel="gallery['259']"><img
src="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_thumb_8.png" alt="image" height="454" width="640" /></a></p><p
align="center"><a
href="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_9.png" class="lightview" rel="gallery['259']"><img
src="http://beerpla.net/wp-content/uploads/MakePuttyScreenandYaST_14094/image_thumb_9.png" alt="image" height="480" width="553" /></a></p><p>P.S. You may be wondering why my screen (the GNU one) has a handy footer bar and how to configure it. Not to worry, I will be posting more info on it soon.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Make+Screen+and+YaST+Work+Together&amp;link=http://beerpla.net/2007/11/04/make-screen-and-yast-work-together/&amp;notes=%0D%0AI%20don%27t%20know%20about%20you%20but%20I%27ve%20had%20a%20lot%20of%20problems%20making%20screen%20work%20nicely%20with%20YaST.%20Both%20putty%20and%20SecureCRT%20had%20major%20problems%20displaying%20YaST%27s%20ncurses%20interface.%20The%20screenshots%20below%20depict%20the%20problem%20quite%20clearly.%20If%20at%20this%20point%20you%20don%27t%20see%20anything%20like%20this%2C%20you%20are%20most%20likely&amp;short_link=http://bit.ly/dm1DCj&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Make+Screen+and+YaST+Work+Together&amp;link=http://beerpla.net/2007/11/04/make-screen-and-yast-work-together/&amp;notes=%0D%0AI%20don%27t%20know%20about%20you%20but%20I%27ve%20had%20a%20lot%20of%20problems%20making%20screen%20work%20nicely%20with%20YaST.%20Both%20putty%20and%20SecureCRT%20had%20major%20problems%20displaying%20YaST%27s%20ncurses%20interface.%20The%20screenshots%20below%20depict%20the%20problem%20quite%20clearly.%20If%20at%20this%20point%20you%20don%27t%20see%20anything%20like%20this%2C%20you%20are%20most%20likely&amp;short_link=http://bit.ly/dm1DCj&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Make+Screen+and+YaST+Work+Together&amp;link=http://beerpla.net/2007/11/04/make-screen-and-yast-work-together/&amp;notes=%0D%0AI%20don%27t%20know%20about%20you%20but%20I%27ve%20had%20a%20lot%20of%20problems%20making%20screen%20work%20nicely%20with%20YaST.%20Both%20putty%20and%20SecureCRT%20had%20major%20problems%20displaying%20YaST%27s%20ncurses%20interface.%20The%20screenshots%20below%20depict%20the%20problem%20quite%20clearly.%20If%20at%20this%20point%20you%20don%27t%20see%20anything%20like%20this%2C%20you%20are%20most%20likely&amp;short_link=http://bit.ly/dm1DCj&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Make+Screen+and+YaST+Work+Together&amp;link=http://beerpla.net/2007/11/04/make-screen-and-yast-work-together/&amp;notes=%0D%0AI%20don%27t%20know%20about%20you%20but%20I%27ve%20had%20a%20lot%20of%20problems%20making%20screen%20work%20nicely%20with%20YaST.%20Both%20putty%20and%20SecureCRT%20had%20major%20problems%20displaying%20YaST%27s%20ncurses%20interface.%20The%20screenshots%20below%20depict%20the%20problem%20quite%20clearly.%20If%20at%20this%20point%20you%20don%27t%20see%20anything%20like%20this%2C%20you%20are%20most%20likely&amp;short_link=http://bit.ly/dm1DCj&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Make+Screen+and+YaST+Work+Together&amp;link=http://beerpla.net/2007/11/04/make-screen-and-yast-work-together/&amp;notes=%0D%0AI%20don%27t%20know%20about%20you%20but%20I%27ve%20had%20a%20lot%20of%20problems%20making%20screen%20work%20nicely%20with%20YaST.%20Both%20putty%20and%20SecureCRT%20had%20major%20problems%20displaying%20YaST%27s%20ncurses%20interface.%20The%20screenshots%20below%20depict%20the%20problem%20quite%20clearly.%20If%20at%20this%20point%20you%20don%27t%20see%20anything%20like%20this%2C%20you%20are%20most%20likely&amp;short_link=http://bit.ly/dm1DCj&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Make+Screen+and+YaST+Work+Together&amp;link=http://beerpla.net/2007/11/04/make-screen-and-yast-work-together/&amp;notes=%0D%0AI%20don%27t%20know%20about%20you%20but%20I%27ve%20had%20a%20lot%20of%20problems%20making%20screen%20work%20nicely%20with%20YaST.%20Both%20putty%20and%20SecureCRT%20had%20major%20problems%20displaying%20YaST%27s%20ncurses%20interface.%20The%20screenshots%20below%20depict%20the%20problem%20quite%20clearly.%20If%20at%20this%20point%20you%20don%27t%20see%20anything%20like%20this%2C%20you%20are%20most%20likely&amp;short_link=http://bit.ly/dm1DCj&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Make+Screen+and+YaST+Work+Together&amp;link=http://beerpla.net/2007/11/04/make-screen-and-yast-work-together/&amp;notes=%0D%0AI%20don%27t%20know%20about%20you%20but%20I%27ve%20had%20a%20lot%20of%20problems%20making%20screen%20work%20nicely%20with%20YaST.%20Both%20putty%20and%20SecureCRT%20had%20major%20problems%20displaying%20YaST%27s%20ncurses%20interface.%20The%20screenshots%20below%20depict%20the%20problem%20quite%20clearly.%20If%20at%20this%20point%20you%20don%27t%20see%20anything%20like%20this%2C%20you%20are%20most%20likely&amp;short_link=http://bit.ly/dm1DCj&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Make%20Screen%20and%20YaST%20Work%20Together&amp;link=http://beerpla.net/2007/11/04/make-screen-and-yast-work-together/&amp;notes=%0D%0AI%20don%27t%20know%20about%20you%20but%20I%27ve%20had%20a%20lot%20of%20problems%20making%20screen%20work%20nicely%20with%20YaST.%20Both%20putty%20and%20SecureCRT%20had%20major%20problems%20displaying%20YaST%27s%20ncurses%20interface.%20The%20screenshots%20below%20depict%20the%20problem%20quite%20clearly.%20If%20at%20this%20point%20you%20don%27t%20see%20anything%20like%20this%2C%20you%20are%20most%20likely&amp;short_link=http://bit.ly/dm1DCj&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2008/07/23/how-to-check-if-the-local-svn-revision-is-up-to-date/" rel="bookmark" title="July 23, 2008">How To Check If The Local SVN Revision Is Up-To-Date</a></li><li><a
href="http://beerpla.net/2006/08/28/crazy-optical-illusion-that-makes-you-hallucinate-for-real/" rel="bookmark" title="August 28, 2006">Crazy Optical Illusion That Makes You Hallucinate &#8211; For Real</a></li><li><a
href="http://beerpla.net/2009/10/06/supercharge-your-gnu-screen-with-a-power-taskbar-and-never-feel-lost-again/" rel="bookmark" title="October 6, 2009">Supercharge Your GNU Screen With A Power &quot;Taskbar&quot; And Never Feel Lost Again</a></li><li><a
href="http://beerpla.net/2008/12/22/mastering-the-linux-shell-bash-shortcuts-explained/" rel="bookmark" title="December 22, 2008">Mastering The Linux Shell &#8211; Bash Shortcuts Explained (Now With Cheat Sheets)</a></li><li><a
href="http://beerpla.net/2009/07/14/how-to-fix-palm-pres-error-sending-mail-problem-7/" rel="bookmark" title="July 14, 2009">How To Fix Palm Pre&#039;s &quot;Error Sending Mail&quot; Problem</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2007%2F11%2F04%2Fmake-screen-and-yast-work-together%2F&amp;title=Make%20Screen%20and%20YaST%20Work%20Together" id="wpa2a_4"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2007/11/04/make-screen-and-yast-work-together/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>cpan &#8211; The Perl Module Manager</title><link>http://beerpla.net/2007/10/12/cpan-the-perl-module-manager/</link> <comments>http://beerpla.net/2007/10/12/cpan-the-perl-module-manager/#comments</comments> <pubDate>Sat, 13 Oct 2007 00:24:22 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[cpan]]></category> <category><![CDATA[make]]></category> <category><![CDATA[module]]></category> <category><![CDATA[Perl]]></category> <category><![CDATA[suse]]></category> <guid
isPermaLink="false">http://beerpla.net/2007/10/12/cpan-the-perl-module-manager/</guid> <description><![CDATA[<p>cpan is a perl module manager. To get into cpan, login as root and type in</p><div
class="wp_syntax"><div
class="code"><pre>cpan</pre></div></div><p>Install a module:</p><div
class="wp_syntax"><div
class="code"><pre>cpan install MODULE</pre></div></div><p>Upgrade a module:</p><div
class="wp_syntax"><div
class="code"><pre>cpan upgrade MODULE</pre></div></div><p>Reinstall a module or force install in case of failed tests:</p><div
class="wp_syntax"><div
class="code"><pre>force install MODULE</pre></div></div><p>See a list of upgradable modules:</p><div
class="wp_syntax"><div
class="code"><pre>r</pre></div></div><p>See cpan configuration (that&#039;s the letter &#039;o&#039;):</p><div
class="wp_syntax"><div
class="code"><pre>o conf</pre></div></div><p>Update an option in cpan configuration:</p><div
class="wp_syntax"><div
class="code"><pre>o conf OPTION_NAME OPTION_VALUE</pre></div></div><p>It is always nice to:</p><div
class="wp_syntax"><div
class="code"><pre>upgrade CPAN
install Bundle::CPAN</pre></div></div><p>If there&#039;s an error making a Perl module, it can be caused by a missing make path in cpan configuration. In cpan, type in:</p><div
class="wp_syntax"><div
class="code"><pre>o conf</pre></div></div><p>which will show all cpan options, then:...<div
class=clear></div> <a
href="http://beerpla.net/2007/10/12/cpan-the-perl-module-manager/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>cpan is a perl module manager. To get into cpan, login as root and type in</p><div
class="wp_syntax"><div
class="code"><pre>cpan</pre></div></div><p>Install a module:</p><div
class="wp_syntax"><div
class="code"><pre>cpan install MODULE</pre></div></div><p>Upgrade a module:</p><div
class="wp_syntax"><div
class="code"><pre>cpan upgrade MODULE</pre></div></div><p>Reinstall a module or force install in case of failed tests:</p><div
class="wp_syntax"><div
class="code"><pre>force install MODULE</pre></div></div><p>See a list of upgradable modules:</p><div
class="wp_syntax"><div
class="code"><pre>r</pre></div></div><p>See cpan configuration (that&#039;s the letter &#039;o&#039;):</p><div
class="wp_syntax"><div
class="code"><pre>o conf</pre></div></div><p>Update an option in cpan configuration:</p><div
class="wp_syntax"><div
class="code"><pre>o conf OPTION_NAME OPTION_VALUE</pre></div></div><p>It is always nice to:</p><div
class="wp_syntax"><div
class="code"><pre>upgrade CPAN
install Bundle::CPAN</pre></div></div><p>If there&#039;s an error making a Perl module, it can be caused by a missing make path in cpan configuration. In cpan, type in:</p><div
class="wp_syntax"><div
class="code"><pre>o conf</pre></div></div><p>which will show all cpan options, then:</p><div
class="wp_syntax"><div
class="code"><pre>o conf make /usr/bin/make
o conf commit</pre></div></div><p>A good option is:</p><div
class="wp_syntax"><div
class="code"><pre>o conf prerequisites_policy follow</pre></div></div><p>By default, cpan will prompt to install every dependecy while installing a module. This option will automatically install dependencies without prompting.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=cpan+-+The+Perl+Module+Manager&amp;link=http://beerpla.net/2007/10/12/cpan-the-perl-module-manager/&amp;notes=cpan%20is%20a%20perl%20module%20manager.%20To%20get%20into%20cpan%2C%20login%20as%20root%20and%20type%20in%0D%0Acpan%0D%0AInstall%20a%20module%3A%0D%0Acpan%20install%20MODULE%0D%0AUpgrade%20a%20module%3A%0D%0Acpan%20upgrade%20MODULE%0D%0AReinstall%20a%20module%20or%20force%20install%20in%20case%20of%20failed%20tests%3A%0D%0Aforce%20install%20MODULE%0D%0ASee%20a%20list%20of%20upgradable%20modules%3A%0D%0Ar%0D%0ASee%20cpan%20configu&amp;short_link=http://bit.ly/9bgziz&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=cpan+-+The+Perl+Module+Manager&amp;link=http://beerpla.net/2007/10/12/cpan-the-perl-module-manager/&amp;notes=cpan%20is%20a%20perl%20module%20manager.%20To%20get%20into%20cpan%2C%20login%20as%20root%20and%20type%20in%0D%0Acpan%0D%0AInstall%20a%20module%3A%0D%0Acpan%20install%20MODULE%0D%0AUpgrade%20a%20module%3A%0D%0Acpan%20upgrade%20MODULE%0D%0AReinstall%20a%20module%20or%20force%20install%20in%20case%20of%20failed%20tests%3A%0D%0Aforce%20install%20MODULE%0D%0ASee%20a%20list%20of%20upgradable%20modules%3A%0D%0Ar%0D%0ASee%20cpan%20configu&amp;short_link=http://bit.ly/9bgziz&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=cpan+-+The+Perl+Module+Manager&amp;link=http://beerpla.net/2007/10/12/cpan-the-perl-module-manager/&amp;notes=cpan%20is%20a%20perl%20module%20manager.%20To%20get%20into%20cpan%2C%20login%20as%20root%20and%20type%20in%0D%0Acpan%0D%0AInstall%20a%20module%3A%0D%0Acpan%20install%20MODULE%0D%0AUpgrade%20a%20module%3A%0D%0Acpan%20upgrade%20MODULE%0D%0AReinstall%20a%20module%20or%20force%20install%20in%20case%20of%20failed%20tests%3A%0D%0Aforce%20install%20MODULE%0D%0ASee%20a%20list%20of%20upgradable%20modules%3A%0D%0Ar%0D%0ASee%20cpan%20configu&amp;short_link=http://bit.ly/9bgziz&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=cpan+-+The+Perl+Module+Manager&amp;link=http://beerpla.net/2007/10/12/cpan-the-perl-module-manager/&amp;notes=cpan%20is%20a%20perl%20module%20manager.%20To%20get%20into%20cpan%2C%20login%20as%20root%20and%20type%20in%0D%0Acpan%0D%0AInstall%20a%20module%3A%0D%0Acpan%20install%20MODULE%0D%0AUpgrade%20a%20module%3A%0D%0Acpan%20upgrade%20MODULE%0D%0AReinstall%20a%20module%20or%20force%20install%20in%20case%20of%20failed%20tests%3A%0D%0Aforce%20install%20MODULE%0D%0ASee%20a%20list%20of%20upgradable%20modules%3A%0D%0Ar%0D%0ASee%20cpan%20configu&amp;short_link=http://bit.ly/9bgziz&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=cpan+-+The+Perl+Module+Manager&amp;link=http://beerpla.net/2007/10/12/cpan-the-perl-module-manager/&amp;notes=cpan%20is%20a%20perl%20module%20manager.%20To%20get%20into%20cpan%2C%20login%20as%20root%20and%20type%20in%0D%0Acpan%0D%0AInstall%20a%20module%3A%0D%0Acpan%20install%20MODULE%0D%0AUpgrade%20a%20module%3A%0D%0Acpan%20upgrade%20MODULE%0D%0AReinstall%20a%20module%20or%20force%20install%20in%20case%20of%20failed%20tests%3A%0D%0Aforce%20install%20MODULE%0D%0ASee%20a%20list%20of%20upgradable%20modules%3A%0D%0Ar%0D%0ASee%20cpan%20configu&amp;short_link=http://bit.ly/9bgziz&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=cpan+-+The+Perl+Module+Manager&amp;link=http://beerpla.net/2007/10/12/cpan-the-perl-module-manager/&amp;notes=cpan%20is%20a%20perl%20module%20manager.%20To%20get%20into%20cpan%2C%20login%20as%20root%20and%20type%20in%0D%0Acpan%0D%0AInstall%20a%20module%3A%0D%0Acpan%20install%20MODULE%0D%0AUpgrade%20a%20module%3A%0D%0Acpan%20upgrade%20MODULE%0D%0AReinstall%20a%20module%20or%20force%20install%20in%20case%20of%20failed%20tests%3A%0D%0Aforce%20install%20MODULE%0D%0ASee%20a%20list%20of%20upgradable%20modules%3A%0D%0Ar%0D%0ASee%20cpan%20configu&amp;short_link=http://bit.ly/9bgziz&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=cpan+-+The+Perl+Module+Manager&amp;link=http://beerpla.net/2007/10/12/cpan-the-perl-module-manager/&amp;notes=cpan%20is%20a%20perl%20module%20manager.%20To%20get%20into%20cpan%2C%20login%20as%20root%20and%20type%20in%0D%0Acpan%0D%0AInstall%20a%20module%3A%0D%0Acpan%20install%20MODULE%0D%0AUpgrade%20a%20module%3A%0D%0Acpan%20upgrade%20MODULE%0D%0AReinstall%20a%20module%20or%20force%20install%20in%20case%20of%20failed%20tests%3A%0D%0Aforce%20install%20MODULE%0D%0ASee%20a%20list%20of%20upgradable%20modules%3A%0D%0Ar%0D%0ASee%20cpan%20configu&amp;short_link=http://bit.ly/9bgziz&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=cpan%20-%20The%20Perl%20Module%20Manager&amp;link=http://beerpla.net/2007/10/12/cpan-the-perl-module-manager/&amp;notes=cpan%20is%20a%20perl%20module%20manager.%20To%20get%20into%20cpan%2C%20login%20as%20root%20and%20type%20in%0D%0Acpan%0D%0AInstall%20a%20module%3A%0D%0Acpan%20install%20MODULE%0D%0AUpgrade%20a%20module%3A%0D%0Acpan%20upgrade%20MODULE%0D%0AReinstall%20a%20module%20or%20force%20install%20in%20case%20of%20failed%20tests%3A%0D%0Aforce%20install%20MODULE%0D%0ASee%20a%20list%20of%20upgradable%20modules%3A%0D%0Ar%0D%0ASee%20cpan%20configu&amp;short_link=http://bit.ly/9bgziz&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2008/04/30/how-to-install-the-latest-soaplite-using-perl-cpan/" rel="bookmark" title="April 30, 2008">How To Install The Latest SOAP::Lite Using Perl CPAN</a></li><li><a
href="http://beerpla.net/2008/04/22/do-not-use-this-perl-module-passwdunix/" rel="bookmark" title="April 22, 2008">Do NOT Use This Perl Module: Passwd::Unix</a></li><li><a
href="http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/" rel="bookmark" title="June 9, 2009">How To Make Your Site Lightning Fast* By Compressing (deflate/gzip) Your HTML, Javascript, CSS, XML, etc In Apache</a></li><li><a
href="http://beerpla.net/2009/03/05/perl-how-to-get-the-path-of-an-included-library-pm-regardless-of-current-directory/" rel="bookmark" title="March 5, 2009">[Perl] How To Get The Path Of An Included Library (.pm), Regardless Of Current Directory</a></li><li><a
href="http://beerpla.net/2007/07/09/how-to-download-and-install-windows-media-player-11-bypassing-wga/" rel="bookmark" title="July 9, 2007">How To Download And Install Windows Media Player 11 Bypassing WGA</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2007%2F10%2F12%2Fcpan-the-perl-module-manager%2F&amp;title=cpan%20%26%238211%3B%20The%20Perl%20Module%20Manager" id="wpa2a_6"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2007/10/12/cpan-the-perl-module-manager/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>sysbench &#8211; Linux Test Bench</title><link>http://beerpla.net/2007/10/12/sysbench-linux-test-bench/</link> <comments>http://beerpla.net/2007/10/12/sysbench-linux-test-bench/#comments</comments> <pubDate>Fri, 12 Oct 2007 21:57:50 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Databases]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[benchmark]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[stress test]]></category> <category><![CDATA[suse]]></category> <category><![CDATA[sysbench]]></category> <guid
isPermaLink="false">http://beerpla.net/2007/10/12/sysbench-linux-test-bench/</guid> <description><![CDATA[<p>sysbench &#8211; Linux test bench. Easy as pie to test CPU, memory, threads, mysql, and disk performance.</p><p>Full description is available here: <a
href="http://sysbench.sourceforge.net/docs/">http://sysbench.sourceforge.net/docs/</a></p><div
class="wp_syntax"><div
class="code"><pre>install mysql, mysql-devel
wget http://downloads.sourceforge.net/project/sysbench/sysbench/0.4.12/sysbench-0.4.12.tar.gz
tar xvzf sysbench*gz
cd sysbench*
./configure &#38;&#38; make install</pre></div></div><p
align="center"><strong>mysql tests</strong></p><p>This will run 10 separate consecutive mysql tests using an InnoDB table type, each with 100 mysql threads, doing a total of 1000 various SQL operations per test. Then it will print the total time they took to finish:</p><div
class="wp_syntax"><div
class="code"><pre>sysbench --test=oltp --mysql-user=USER --mysql-password=PASS --mysql-db=test \
  --mysql-host='HOST' --mysql-table-engine=innodb prepare
&#160;
time perl -e &#34;foreach(1..10){print \`sysbench --max-requests=1000 --test=oltp \
  --mysql-user=USER --mysql-password=PASS --mysql-db=test --mysql-host='HOST' \
  --mysql-table-engine=innodb --num-threads=100 run\`}&#34;
&#160;
sysbench --test=oltp --mysql-user=USER --mysql-password=PASS --mysql-db=test \
  --mysql-host='HOST' cleanup</pre></div></div><div
class="shr-bookmarks shr-bookmarks-expand"></div><p>...<div
class=clear></div> <a
href="http://beerpla.net/2007/10/12/sysbench-linux-test-bench/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>sysbench &#8211; Linux test bench. Easy as pie to test CPU, memory, threads, mysql, and disk performance.</p><p>Full description is available here: <a
href="http://sysbench.sourceforge.net/docs/">http://sysbench.sourceforge.net/docs/</a></p><div
class="wp_syntax"><div
class="code"><pre>install mysql, mysql-devel
wget http://downloads.sourceforge.net/project/sysbench/sysbench/0.4.12/sysbench-0.4.12.tar.gz
tar xvzf sysbench*gz
cd sysbench*
./configure &amp;&amp; make install</pre></div></div><p
align="center"><strong>mysql tests</strong></p><p>This will run 10 separate consecutive mysql tests using an InnoDB table type, each with 100 mysql threads, doing a total of 1000 various SQL operations per test. Then it will print the total time they took to finish:</p><div
class="wp_syntax"><div
class="code"><pre>sysbench --test=oltp --mysql-user=USER --mysql-password=PASS --mysql-db=test \
  --mysql-host='HOST' --mysql-table-engine=innodb prepare
&nbsp;
time perl -e &quot;foreach(1..10){print \`sysbench --max-requests=1000 --test=oltp \
  --mysql-user=USER --mysql-password=PASS --mysql-db=test --mysql-host='HOST' \
  --mysql-table-engine=innodb --num-threads=100 run\`}&quot;
&nbsp;
sysbench --test=oltp --mysql-user=USER --mysql-password=PASS --mysql-db=test \
  --mysql-host='HOST' cleanup</pre></div></div><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=sysbench+-+Linux+Test+Bench&amp;link=http://beerpla.net/2007/10/12/sysbench-linux-test-bench/&amp;notes=sysbench%20-%20Linux%20test%20bench.%20Easy%20as%20pie%20to%20test%20CPU%2C%20memory%2C%20threads%2C%20mysql%2C%20and%20disk%20performance.%0D%0AFull%20description%20is%20available%20here%3A%20http%3A%2F%2Fsysbench.sourceforge.net%2Fdocs%2F%0D%0A%0D%0Ainstall%20mysql%2C%20mysql-devel%0D%0Awget%20http%3A%2F%2Fdownloads.sourceforge.net%2Fproject%2Fsysbench%2Fsysbench%2F0.4.12%2Fsysbench-0.4.12.tar.gz%0D&amp;short_link=http://bit.ly/cV9ynn&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=sysbench+-+Linux+Test+Bench&amp;link=http://beerpla.net/2007/10/12/sysbench-linux-test-bench/&amp;notes=sysbench%20-%20Linux%20test%20bench.%20Easy%20as%20pie%20to%20test%20CPU%2C%20memory%2C%20threads%2C%20mysql%2C%20and%20disk%20performance.%0D%0AFull%20description%20is%20available%20here%3A%20http%3A%2F%2Fsysbench.sourceforge.net%2Fdocs%2F%0D%0A%0D%0Ainstall%20mysql%2C%20mysql-devel%0D%0Awget%20http%3A%2F%2Fdownloads.sourceforge.net%2Fproject%2Fsysbench%2Fsysbench%2F0.4.12%2Fsysbench-0.4.12.tar.gz%0D&amp;short_link=http://bit.ly/cV9ynn&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=sysbench+-+Linux+Test+Bench&amp;link=http://beerpla.net/2007/10/12/sysbench-linux-test-bench/&amp;notes=sysbench%20-%20Linux%20test%20bench.%20Easy%20as%20pie%20to%20test%20CPU%2C%20memory%2C%20threads%2C%20mysql%2C%20and%20disk%20performance.%0D%0AFull%20description%20is%20available%20here%3A%20http%3A%2F%2Fsysbench.sourceforge.net%2Fdocs%2F%0D%0A%0D%0Ainstall%20mysql%2C%20mysql-devel%0D%0Awget%20http%3A%2F%2Fdownloads.sourceforge.net%2Fproject%2Fsysbench%2Fsysbench%2F0.4.12%2Fsysbench-0.4.12.tar.gz%0D&amp;short_link=http://bit.ly/cV9ynn&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=sysbench+-+Linux+Test+Bench&amp;link=http://beerpla.net/2007/10/12/sysbench-linux-test-bench/&amp;notes=sysbench%20-%20Linux%20test%20bench.%20Easy%20as%20pie%20to%20test%20CPU%2C%20memory%2C%20threads%2C%20mysql%2C%20and%20disk%20performance.%0D%0AFull%20description%20is%20available%20here%3A%20http%3A%2F%2Fsysbench.sourceforge.net%2Fdocs%2F%0D%0A%0D%0Ainstall%20mysql%2C%20mysql-devel%0D%0Awget%20http%3A%2F%2Fdownloads.sourceforge.net%2Fproject%2Fsysbench%2Fsysbench%2F0.4.12%2Fsysbench-0.4.12.tar.gz%0D&amp;short_link=http://bit.ly/cV9ynn&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=sysbench+-+Linux+Test+Bench&amp;link=http://beerpla.net/2007/10/12/sysbench-linux-test-bench/&amp;notes=sysbench%20-%20Linux%20test%20bench.%20Easy%20as%20pie%20to%20test%20CPU%2C%20memory%2C%20threads%2C%20mysql%2C%20and%20disk%20performance.%0D%0AFull%20description%20is%20available%20here%3A%20http%3A%2F%2Fsysbench.sourceforge.net%2Fdocs%2F%0D%0A%0D%0Ainstall%20mysql%2C%20mysql-devel%0D%0Awget%20http%3A%2F%2Fdownloads.sourceforge.net%2Fproject%2Fsysbench%2Fsysbench%2F0.4.12%2Fsysbench-0.4.12.tar.gz%0D&amp;short_link=http://bit.ly/cV9ynn&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=sysbench+-+Linux+Test+Bench&amp;link=http://beerpla.net/2007/10/12/sysbench-linux-test-bench/&amp;notes=sysbench%20-%20Linux%20test%20bench.%20Easy%20as%20pie%20to%20test%20CPU%2C%20memory%2C%20threads%2C%20mysql%2C%20and%20disk%20performance.%0D%0AFull%20description%20is%20available%20here%3A%20http%3A%2F%2Fsysbench.sourceforge.net%2Fdocs%2F%0D%0A%0D%0Ainstall%20mysql%2C%20mysql-devel%0D%0Awget%20http%3A%2F%2Fdownloads.sourceforge.net%2Fproject%2Fsysbench%2Fsysbench%2F0.4.12%2Fsysbench-0.4.12.tar.gz%0D&amp;short_link=http://bit.ly/cV9ynn&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=sysbench+-+Linux+Test+Bench&amp;link=http://beerpla.net/2007/10/12/sysbench-linux-test-bench/&amp;notes=sysbench%20-%20Linux%20test%20bench.%20Easy%20as%20pie%20to%20test%20CPU%2C%20memory%2C%20threads%2C%20mysql%2C%20and%20disk%20performance.%0D%0AFull%20description%20is%20available%20here%3A%20http%3A%2F%2Fsysbench.sourceforge.net%2Fdocs%2F%0D%0A%0D%0Ainstall%20mysql%2C%20mysql-devel%0D%0Awget%20http%3A%2F%2Fdownloads.sourceforge.net%2Fproject%2Fsysbench%2Fsysbench%2F0.4.12%2Fsysbench-0.4.12.tar.gz%0D&amp;short_link=http://bit.ly/cV9ynn&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=sysbench%20-%20Linux%20Test%20Bench&amp;link=http://beerpla.net/2007/10/12/sysbench-linux-test-bench/&amp;notes=sysbench%20-%20Linux%20test%20bench.%20Easy%20as%20pie%20to%20test%20CPU%2C%20memory%2C%20threads%2C%20mysql%2C%20and%20disk%20performance.%0D%0AFull%20description%20is%20available%20here%3A%20http%3A%2F%2Fsysbench.sourceforge.net%2Fdocs%2F%0D%0A%0D%0Ainstall%20mysql%2C%20mysql-devel%0D%0Awget%20http%3A%2F%2Fdownloads.sourceforge.net%2Fproject%2Fsysbench%2Fsysbench%2F0.4.12%2Fsysbench-0.4.12.tar.gz%0D&amp;short_link=http://bit.ly/cV9ynn&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2008/03/11/mysql-falcon-storage-engine-enters-beta-stage/" rel="bookmark" title="March 11, 2008">MySQL Falcon Storage Engine Enters Beta Stage.</a></li><li><a
href="http://beerpla.net/2010/02/03/how-not-to-implement-a-web-application-that-handles-external-authentication-using-betwittered-com-as-an-example/" rel="bookmark" title="February 3, 2010">How *Not* To Implement A Web Application That Handles External Authentication, Using BeTwittered.com As An Example</a></li><li><a
href="http://beerpla.net/2008/04/16/mysql-conference-liveblogging-introduction-to-the-blob-streaming-project-wednesday-300pm/" rel="bookmark" title="April 16, 2008">MySQL Conference Liveblogging: Introduction To The BLOB Streaming Project (Wednesday 3:00PM)</a></li><li><a
href="http://beerpla.net/2008/04/16/mysql-conference-liveblogging-benchmarking-tools-wednesday-425pm/" rel="bookmark" title="April 16, 2008">MySQL Conference Liveblogging: Benchmarking Tools (Wednesday 4:25PM)</a></li><li><a
href="http://beerpla.net/2008/04/16/mysql-conference-liveblogging-portable-scale-out-benchmarks-for-mysql-wednesday-1050am/" rel="bookmark" title="April 16, 2008">MySQL Conference Liveblogging: Portable Scale-out Benchmarks For MySQL (Wednesday 10:50AM)</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2007%2F10%2F12%2Fsysbench-linux-test-bench%2F&amp;title=sysbench%20%26%238211%3B%20Linux%20Test%20Bench" id="wpa2a_8"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2007/10/12/sysbench-linux-test-bench/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Linux openSUSE 10.2 Learning Experience #1: Introduction</title><link>http://beerpla.net/2006/12/26/linux-opensuse-102-learning-experience-1-introduction/</link> <comments>http://beerpla.net/2006/12/26/linux-opensuse-102-learning-experience-1-introduction/#comments</comments> <pubDate>Wed, 27 Dec 2006 01:33:02 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[installation]]></category> <category><![CDATA[layout]]></category> <category><![CDATA[opensuse]]></category> <category><![CDATA[partition]]></category> <category><![CDATA[proper]]></category> <category><![CDATA[suse]]></category> <guid
isPermaLink="false">http://beerpla.net/2006/12/26/linux-opensuse-102-learning-experience-1-introduction/</guid> <description><![CDATA[<p>The purpose of this article is to:</p><ul><li>introduce the new Linux section of the site (specifically dedicated to openSUSE).</li><li>provide a very short description of Linux and compare it to other operating systems.</li><li>answer some installation questions.</li></ul><p>I&#039;m a Windows user, I admit it. Not because I enjoy frequent reboots, freezes, and other unexplainable quirks. It&#039;s mostly because I have so many programs I&#039;m used to, it would be impossible to switch to anything else, and I know ins and outs that allow me to be very comfortable with the Windows. I&#039;m talking 20-30 programs I&#039;m not willing to give up any time soon.</p><p><img
src="http://beerpla.net/wp-content/uploads/opensuse.thumbnail.png" alt="opensuse.png" title="opensuse.png" align="left" border="1" hspace="10" vspace="10" /> However, I also have deep respect for *nix based systems. I started using...<div
class=clear></div> <a
href="http://beerpla.net/2006/12/26/linux-opensuse-102-learning-experience-1-introduction/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>The purpose of this article is to:</p><ul><li>introduce the new Linux section of the site (specifically dedicated to openSUSE).</li><li>provide a very short description of Linux and compare it to other operating systems.</li><li>answer some installation questions.</li></ul><p>I&#039;m a Windows user, I admit it. Not because I enjoy frequent reboots, freezes, and other unexplainable quirks. It&#039;s mostly because I have so many programs I&#039;m used to, it would be impossible to switch to anything else, and I know ins and outs that allow me to be very comfortable with the Windows. I&#039;m talking 20-30 programs I&#039;m not willing to give up any time soon.</p><p><img
src="http://beerpla.net/wp-content/uploads/opensuse.thumbnail.png" alt="opensuse.png" title="opensuse.png" align="left" border="1" hspace="10" vspace="10" /> However, I also have deep respect for *nix based systems. I started using them back in college and continued later on when I worked at Intel (Solaris) and other jobs. Stability and abundance of open-source software that just works attracted me to Linux. Finally, being a user just wasn&#039;t going to cut it: I had way too many questions about how things work, how the OS boots, what the conventions are, etc, etc, etc. So, finally, a couple of days ago I picked <strong>openSUSE 10.2</strong> as my distro (distribution) of choice to play around with. The Linux section here on the site has been empty for a while, so I&#039;m going to fill it up by documenting all my experiences and questions throughout the whole learning process as seen with the eyes of an amateur, which, I think, is what most tutorials are missing. So, let&#039;s begin.</p><p>OK, so&#8230; what are all these distributions? Ubuntu, who hasn&#039;t heard that by now? SUSE? Fedora? Why can&#039;t Linux be just Linux, just like Windows is just Windows? In short, in my opinion, because nobody but Microsoft has access to the Windows code (technically, after that leak a couple of years ago, everyone had a chance to see kernel source, but nobody can actually modify the OS or release another one based on it). Linux is open source, anybody can contribute to its development. That&#039;s the beauty of Linux: collaboration of <strike>hundreds</strike> thousands of people often working on their own time with passion no employee on payroll can match. Some motivated individuals go even further: they compile a set of Linux components that they think would work best together and release it as a distribution. <strong>openSUSE </strong>is a fine example of that. A bunch of smart people over at Novell got together and produced openSUSE a while ago, with its main goals being:</p><ul><li> Make openSUSE the easiest Linux distribution for anyone to obtain and the most widely used open source platform.</li><li> Provide an environment for open source collaboration that makes openSUSE the world&#039;s best Linux distribution for new and experienced Linux users.</li><li> Dramatically simplify and open the development and packaging processes to make openSUSE the platform of choice for Linux hackers and application developers.</li></ul><p>See this <a
href="http://en.opensuse.org/Project_overview">openSUSE.org about page</a> for more info.</p><p><a
href="http://beerpla.net/wp-content/uploads/yast2-finish.jpg" class="lightview" rel="gallery['153']"><img
src="http://beerpla.net/wp-content/uploads/thumb-yast2-finish.jpg" align="left" border="1" height="135" hspace="10" vspace="10" width="180" /></a> Installing Linux is easier than ever. Back in the day, Linux puzzled average users. Nowadays, for everyday activities Linux is as easy to use as Windows (or Mac if you&#039;re into big shiny objects). A short installation guide by Novel is available <a
href="http://www.novell.com/products/opensuse/installation.html">here</a> and a very nice long guide by HowToForge is available <a
href="http://www.howtoforge.com/perfect_setup_opensuse_10.2">here</a>. If you breeze through the installation steps, you should have a shiny desktop ready to rock and roll in about 30 minutes. While the installation itself is very easy (just burn a CD/DVD from <a
href="http://download.opensuse.org">http://download.opensuse.org</a> and reboot the computer), I had a couple of questions about things I wasn&#039;t quite sure about. Here they are:</p><ul><li>You&#039;re prompted to select your Desktop. The choices are <span
style="font-weight: bold">KDE</span>, <span
style="font-weight: bold">GNOME</span>, and Other (the Other menu has serveral options, one being no graphical desktop, which you would use if you didn&#039;t want a GUI at all, for example for server installs or if you imagined myself as an uber leet hax0r). A graphical desktop is a bit like a skin for the OS. Each also includes different sets of tools, for example KDE&#039;s default editor is KEdit while GNOME&#039;s is gedit. There are other differences, but for now we have to pick one. The good news is that you can install both later via the software update tool called YaST (actually it&#039;s yast2 in SUSE 10.2, yast is just a symlink to /sbin/yast2) and switch between them with ease. For my particular installation, I picked KDE as the desktop manager, which I ended up enjoying quite a lot.</li></ul><ul><li>Correct partitioning of my 110GB hard drive raised the most questions out of all the installation prompts. After consulting with a friendly sysadmin from work, I ended up with<ul><li><strong>1.0GB swap partition</strong> with <em>swap</em> filesystem. I have 2GB RAM, so 1GB swap in case I run out of RAM should suffice.</li><li><strong>100MB /boot partition</strong> with <em>ext3</em> filesystem. /boot is where a boot loader like GRUB will reside. We don&#039;t want to piss off GRUB, so we&#039;ll give it a separate partition.</li><li><strong>###MB /tmp partition</strong> with <em>ext3</em> filesystem. /tmp stores temp files for all users. It is better to assign a separate partition to it so that malicious users cannot potentially flood it with useless data and cause the server to run out of space. Don&#039;t make this space too small though, so that legitimate users don&#039;t run out of temp space.</li><li><strong>###MB /var partition</strong> with <em>ext3</em> filesystem. /var can also run the server out of space quickly if a runaway log file fills it up (normally, in /var/log). Assign a few gigs to this dir depending on total space.</li><li><strong>The rest of the drive I assigned to /</strong> with <em>ext3 </em>filesystem. Some people also recommend assigning a separate partition to /home, which is probably a good idea if you&#039;re planning on having multiple users on the box. I picked ext3 after reading up online about various filesystem types. ReiserFS was not really an option anymore, since it wasn&#039;t too stable yet, and the creator of Reiser was recently arrested for murdering his wife. 2 days after the news broke out, SUSE creators officially announced ext3 as the recommended SUSE filesystem. When ext4 comes out, ext3 partitions will be easily upgradeable to ext4 without the need for repartitioning. The only drawback that I could find for ext3 is the ~32k directory and file limit in a single directory. Oh well, as long as I know about it, I&#039;ll be able to craft my applications with that in mind.</li><li><strong>Update 3/20/2008: </strong>I found a great Filesystem Hierarchy Standard document that explains all the dirs in detail <a
href="http://www.pathname.com/fhs/pub/fhs-2.3.html">here</a>.</li></ul></li></ul><ul><li>Since I was planning on letting my router (Linksys WRT54G with HyperWRT firmware) handle the firewall duties, I disabled the firewall in the Network part of the installation. It&#039;s probably a good idea to leave it on and open ports like SSH (22), FTP (20-21), or HTTP (80) manually. I&#039;m probably going to turn the firewall back on after a couple of weeks once I get the hang of everything.</li></ul><p>Well, that should do it for this introduction. In the following articles, I will share my experiences dealing with something something specific, writing as I learn myself. They may be dedicated to software installation and usage, for example, proftpd ftp server. In other articles I may visit Linux concepts, like how to make programs start up at boot time.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Linux+openSUSE+10.2+Learning+Experience+%231%3A+Introduction&amp;link=http://beerpla.net/2006/12/26/linux-opensuse-102-learning-experience-1-introduction/&amp;notes=The%20purpose%20of%20this%20article%20is%20to%3A%0D%0A%0D%0A%09introduce%20the%20new%20Linux%20section%20of%20the%20site%20%28specifically%20dedicated%20to%20openSUSE%29.%0D%0A%09provide%20a%20very%20short%20description%20of%20Linux%20and%20compare%20it%20to%20other%20operating%20systems.%0D%0A%09answer%20some%20installation%20questions.%0D%0A%0D%0AI%27m%20a%20Windows%20user%2C%20I%20admit%20it.%20Not%20because%20I%20enjoy&amp;short_link=http://bit.ly/dzqDRS&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Linux+openSUSE+10.2+Learning+Experience+%231%3A+Introduction&amp;link=http://beerpla.net/2006/12/26/linux-opensuse-102-learning-experience-1-introduction/&amp;notes=The%20purpose%20of%20this%20article%20is%20to%3A%0D%0A%0D%0A%09introduce%20the%20new%20Linux%20section%20of%20the%20site%20%28specifically%20dedicated%20to%20openSUSE%29.%0D%0A%09provide%20a%20very%20short%20description%20of%20Linux%20and%20compare%20it%20to%20other%20operating%20systems.%0D%0A%09answer%20some%20installation%20questions.%0D%0A%0D%0AI%27m%20a%20Windows%20user%2C%20I%20admit%20it.%20Not%20because%20I%20enjoy&amp;short_link=http://bit.ly/dzqDRS&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Linux+openSUSE+10.2+Learning+Experience+%231%3A+Introduction&amp;link=http://beerpla.net/2006/12/26/linux-opensuse-102-learning-experience-1-introduction/&amp;notes=The%20purpose%20of%20this%20article%20is%20to%3A%0D%0A%0D%0A%09introduce%20the%20new%20Linux%20section%20of%20the%20site%20%28specifically%20dedicated%20to%20openSUSE%29.%0D%0A%09provide%20a%20very%20short%20description%20of%20Linux%20and%20compare%20it%20to%20other%20operating%20systems.%0D%0A%09answer%20some%20installation%20questions.%0D%0A%0D%0AI%27m%20a%20Windows%20user%2C%20I%20admit%20it.%20Not%20because%20I%20enjoy&amp;short_link=http://bit.ly/dzqDRS&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Linux+openSUSE+10.2+Learning+Experience+%231%3A+Introduction&amp;link=http://beerpla.net/2006/12/26/linux-opensuse-102-learning-experience-1-introduction/&amp;notes=The%20purpose%20of%20this%20article%20is%20to%3A%0D%0A%0D%0A%09introduce%20the%20new%20Linux%20section%20of%20the%20site%20%28specifically%20dedicated%20to%20openSUSE%29.%0D%0A%09provide%20a%20very%20short%20description%20of%20Linux%20and%20compare%20it%20to%20other%20operating%20systems.%0D%0A%09answer%20some%20installation%20questions.%0D%0A%0D%0AI%27m%20a%20Windows%20user%2C%20I%20admit%20it.%20Not%20because%20I%20enjoy&amp;short_link=http://bit.ly/dzqDRS&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Linux+openSUSE+10.2+Learning+Experience+%231%3A+Introduction&amp;link=http://beerpla.net/2006/12/26/linux-opensuse-102-learning-experience-1-introduction/&amp;notes=The%20purpose%20of%20this%20article%20is%20to%3A%0D%0A%0D%0A%09introduce%20the%20new%20Linux%20section%20of%20the%20site%20%28specifically%20dedicated%20to%20openSUSE%29.%0D%0A%09provide%20a%20very%20short%20description%20of%20Linux%20and%20compare%20it%20to%20other%20operating%20systems.%0D%0A%09answer%20some%20installation%20questions.%0D%0A%0D%0AI%27m%20a%20Windows%20user%2C%20I%20admit%20it.%20Not%20because%20I%20enjoy&amp;short_link=http://bit.ly/dzqDRS&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Linux+openSUSE+10.2+Learning+Experience+%231%3A+Introduction&amp;link=http://beerpla.net/2006/12/26/linux-opensuse-102-learning-experience-1-introduction/&amp;notes=The%20purpose%20of%20this%20article%20is%20to%3A%0D%0A%0D%0A%09introduce%20the%20new%20Linux%20section%20of%20the%20site%20%28specifically%20dedicated%20to%20openSUSE%29.%0D%0A%09provide%20a%20very%20short%20description%20of%20Linux%20and%20compare%20it%20to%20other%20operating%20systems.%0D%0A%09answer%20some%20installation%20questions.%0D%0A%0D%0AI%27m%20a%20Windows%20user%2C%20I%20admit%20it.%20Not%20because%20I%20enjoy&amp;short_link=http://bit.ly/dzqDRS&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Linux+openSUSE+10.2+Learning+Experience+%231%3A+Introduction&amp;link=http://beerpla.net/2006/12/26/linux-opensuse-102-learning-experience-1-introduction/&amp;notes=The%20purpose%20of%20this%20article%20is%20to%3A%0D%0A%0D%0A%09introduce%20the%20new%20Linux%20section%20of%20the%20site%20%28specifically%20dedicated%20to%20openSUSE%29.%0D%0A%09provide%20a%20very%20short%20description%20of%20Linux%20and%20compare%20it%20to%20other%20operating%20systems.%0D%0A%09answer%20some%20installation%20questions.%0D%0A%0D%0AI%27m%20a%20Windows%20user%2C%20I%20admit%20it.%20Not%20because%20I%20enjoy&amp;short_link=http://bit.ly/dzqDRS&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Linux%20openSUSE%2010.2%20Learning%20Experience%20%231%3A%20Introduction&amp;link=http://beerpla.net/2006/12/26/linux-opensuse-102-learning-experience-1-introduction/&amp;notes=The%20purpose%20of%20this%20article%20is%20to%3A%0D%0A%0D%0A%09introduce%20the%20new%20Linux%20section%20of%20the%20site%20%28specifically%20dedicated%20to%20openSUSE%29.%0D%0A%09provide%20a%20very%20short%20description%20of%20Linux%20and%20compare%20it%20to%20other%20operating%20systems.%0D%0A%09answer%20some%20installation%20questions.%0D%0A%0D%0AI%27m%20a%20Windows%20user%2C%20I%20admit%20it.%20Not%20because%20I%20enjoy&amp;short_link=http://bit.ly/dzqDRS&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2007/08/10/how-to-resizegrow-vmware-linux-disks-and-partitions/" rel="bookmark" title="August 10, 2007">How To Resize/Grow VMware Linux Disks and Partitions</a></li><li><a
href="http://beerpla.net/2006/06/07/ubuntu-laptop-installation/" rel="bookmark" title="June 7, 2006">Ubuntu Laptop Installation</a></li><li><a
href="http://beerpla.net/2007/07/09/the-repositories-for-apt-get-in-suse-102/" rel="bookmark" title="July 9, 2007">The Repositories For apt-get In SUSE 10.2</a></li><li><a
href="http://beerpla.net/2006/06/12/beer-planet-is-fast-again/" rel="bookmark" title="June 12, 2006">Beer Planet is Fast Again</a></li><li><a
href="http://beerpla.net/2010/03/01/the-most-awesome-vpn-tip-how-to-make-windows-automatically-use-your-local-wifilan-connection-directly-for-requests-that-dont-need-to-go-through-vpn/" rel="bookmark" title="March 1, 2010">The Most Awesome VPN Tip: How To Make Windows Automatically Use Your Local WiFi/LAN Connection Directly For Requests That Don&#039;t Need To Go Through VPN</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2006%2F12%2F26%2Flinux-opensuse-102-learning-experience-1-introduction%2F&amp;title=Linux%20openSUSE%2010.2%20Learning%20Experience%20%231%3A%20Introduction" id="wpa2a_10"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2006/12/26/linux-opensuse-102-learning-experience-1-introduction/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
