<?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>MrBrown blob &#187; tune2fs</title>
	<atom:link href="http://charles.lescampeurs.org/tag/tune2fs/feed" rel="self" type="application/rss+xml" />
	<link>http://charles.lescampeurs.org</link>
	<description>random bits.</description>
	<lastBuildDate>Sat, 10 Apr 2010 09:02:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Set the number of reserved filesystem blocks of a disk</title>
		<link>http://charles.lescampeurs.org/2009/06/30/set-the-number-of-reserved-filesystem-blocks-of-a-disk</link>
		<comments>http://charles.lescampeurs.org/2009/06/30/set-the-number-of-reserved-filesystem-blocks-of-a-disk#comments</comments>
		<pubDate>Tue, 30 Jun 2009 07:55:25 +0000</pubDate>
		<dc:creator>CharlyBr</dc:creator>
				<category><![CDATA[Optimization]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[tune2fs]]></category>

		<guid isPermaLink="false">http://charles.lescampeurs.org/?p=188</guid>
		<description><![CDATA[The default value of &#8220;Reserved block count&#8221; takes 5% of usable disk. On a large fs like 813G, it represents about 40G. These blocks are reserved to the super user to recover from situations where user processes fill up filesystems. It is absolutely safe to reduce this space to one hundred or so MB. check [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2009%2F06%2F30%2Fset-the-number-of-reserved-filesystem-blocks-of-a-disk"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fcharles.lescampeurs.org%2F2009%2F06%2F30%2Fset-the-number-of-reserved-filesystem-blocks-of-a-disk&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>The default value of &#8220;Reserved block count&#8221; takes 5% of usable disk. On a large fs like 813G, it represents about 40G.</p>
<p>These blocks are reserved to the super user to recover from situations where user processes fill up filesystems.<br />
It is absolutely safe to reduce this space to one hundred or so MB.</p>
<ul>
<li>check disk space of our filesystem:</li>
</ul>
<pre>$ df -h /dev/sda4
/dev/sda4             813G  418G  354G  55% /home</pre>
<p>Before the tuning, we have 354G free.</p>
<ul>
<li>check the current number of reserved blocks:</li>
</ul>
<pre>$ tune2fs -l /dev/sda4
...
Reserved block count:     10816865
...</pre>
<p>Change this number to 20000.<br />
The blocksize is 4096, 20000 blocks represent about 80MB.</p>
<pre>$ tune2fs -r20000 /dev/sda4
...
Reserved block count:     20000
...</pre>
<ul>
<li>check disk space of our filesystem:</li>
</ul>
<pre>$ df -h /dev/sda4
/dev/sda4             813G  418G  395G  52% /home</pre>
<p>We now have a gain of 40GB of free space!</p>
]]></content:encoded>
			<wfw:commentRss>http://charles.lescampeurs.org/2009/06/30/set-the-number-of-reserved-filesystem-blocks-of-a-disk/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
