<?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>am3n portfolio &#187; partition</title>
	<atom:link href="http://am3n.net/tag/partition/feed/" rel="self" type="application/rss+xml" />
	<link>http://am3n.net</link>
	<description>career, freelance and some stupid thing I do</description>
	<lastBuildDate>Thu, 09 Sep 2010 12:15:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>MySQL partition is full</title>
		<link>http://am3n.net/2009/09/05/mysql-partition-is-full/</link>
		<comments>http://am3n.net/2009/09/05/mysql-partition-is-full/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 09:07:38 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Freelance]]></category>
		<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[full]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[partition]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=176</guid>
		<description><![CDATA[MySQL databases are located on /var/lib/mysql, if you create a partition for /var and and big enough to hold your databases MySQL will stop working because not enough space to put the data. Below is the easy way to fix it: Assume you have /home partition which is far more bigger than /var, we&#8217;ll move [...]


Related posts:<ol><li><a href='http://am3n.net/2010/09/09/automatically-purge-mysql-master-log/' rel='bookmark' title='Permanent Link: Automatically Purge MySQL Master Log'>Automatically Purge MySQL Master Log</a> <small>My Friend Andre Hartawan is troubling due to his mysql...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>MySQL databases are located on /var/lib/mysql, if you create a partition for /var and and big enough to hold your databases MySQL will stop working because not enough space to put the data. Below is the easy way to fix it:<br />
<span id="more-176"></span></p>
<p>Assume you have /home partition which is far more bigger than /var, we&#8217;ll move to /home/mysql<br />
<code><br />
service mysql stop<br />
cd /var/lib<br />
mv mysql /home<br />
ln -s /home/mysql .<br />
chown -R mysql.mysql mysql<br />
service mysql start<br />
</code></p>
<p>The lesson in here is: please do research how much your data will grow, or it will be pain in the ass</p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fam3n.net%2F2009%2F09%2F05%2Fmysql-partition-is-full%2F', 'MySQL+partition+is+full')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fam3n.net%2F2009%2F09%2F05%2Fmysql-partition-is-full%2F', title: 'MySQL+partition+is+full' });"/></a>

<p>Related posts:<ol><li><a href='http://am3n.net/2010/09/09/automatically-purge-mysql-master-log/' rel='bookmark' title='Permanent Link: Automatically Purge MySQL Master Log'>Automatically Purge MySQL Master Log</a> <small>My Friend Andre Hartawan is troubling due to his mysql...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://am3n.net/2009/09/05/mysql-partition-is-full/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Swap on Linux</title>
		<link>http://am3n.net/2009/06/23/add-swap-on-linux/</link>
		<comments>http://am3n.net/2009/06/23/add-swap-on-linux/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 12:59:32 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[hdd partition]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[partition]]></category>
		<category><![CDATA[swap]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=146</guid>
		<description><![CDATA[From: FelipeCruz To add swap partition use command # mkswap /dev/hdb2 # swapon /dev/hdb2 # vi /etc/fstab # /dev/hdb2 swap swap defaults 0 0 With assuming you already create /dev/hdb2 partition before using fdisk and chose swap filesystem. To add a swap file: # dd if=/dev/zero of=/swapfile bs=1024 count=65536 # mkswap /swapfile # swapon /swapfile [...]


Related posts:<ol><li><a href='http://am3n.net/2010/05/26/check-the-first-time-you-install-linux-os/' rel='bookmark' title='Permanent Link: Check the first time you install Linux OS'>Check the first time you install Linux OS</a> <small>If you forgot when you deploying (installing) a server (or...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>From: <a href="http://felipecruz.com/adding-linux-swap-space.php" target="_blank">FelipeCruz</a></p>
<p>To add swap partition use command</p>
<pre># mkswap /dev/hdb2
# swapon /dev/hdb2
# vi /etc/fstab
# /dev/hdb2   swap   swap   defaults   0 0</pre>
<p>With assuming you already create /dev/hdb2 partition before using fdisk and chose swap filesystem.</p>
<p><span id="more-146"></span></p>
<p>To add a swap file:</p>
<pre># dd if=/dev/zero of=/swapfile bs=1024 count=65536
# mkswap /swapfile
# swapon /swapfile
# vi /etc/fstab
#  /swapfile   swap   swap    defaults        0 0</pre>
<p>Check swap status:</p>
<pre># cat /proc/swaps
# free</pre>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fam3n.net%2F2009%2F06%2F23%2Fadd-swap-on-linux%2F', 'Add+Swap+on+Linux')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fam3n.net%2F2009%2F06%2F23%2Fadd-swap-on-linux%2F', title: 'Add+Swap+on+Linux' });"/></a>

<p>Related posts:<ol><li><a href='http://am3n.net/2010/05/26/check-the-first-time-you-install-linux-os/' rel='bookmark' title='Permanent Link: Check the first time you install Linux OS'>Check the first time you install Linux OS</a> <small>If you forgot when you deploying (installing) a server (or...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://am3n.net/2009/06/23/add-swap-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
