<?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>andremiller.net &#187; Disk Space</title>
	<atom:link href="http://www.andremiller.net/tag/disk-space/feed" rel="self" type="application/rss+xml" />
	<link>http://www.andremiller.net</link>
	<description>Andre Miller</description>
	<lastBuildDate>Tue, 24 Mar 2009 13:08:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Recovering reserved space in ext2 and ext3 filesystems</title>
		<link>http://www.andremiller.net/content/recovering-reserved-space-ext2-and-ext3-filesystems</link>
		<comments>http://www.andremiller.net/content/recovering-reserved-space-ext2-and-ext3-filesystems#comments</comments>
		<pubDate>Fri, 11 Jan 2008 12:34:16 +0000</pubDate>
		<dc:creator>andre</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Disk Space]]></category>
		<category><![CDATA[Filesystem]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[When using the ext2 or ext3 filesystem by default 5% of the available blocks is reserved for use by the root user. This allows the system to continue running if non-root users fill up the file system and also assists in preventing file fragmentation because the filesystem does not fill up completely.

]]></description>
			<content:encoded><![CDATA[<p>When using the ext2 or ext3 filesystem by default 5% of the available blocks is reserved for use by the root user. This allows the system to continue running if non-root users fill up the file system and also assists in preventing file fragmentation because the filesystem does not fill up completely.</p>
<p>Under certain circumstances this extra protection is not required or desired. For example, I have a 1TB ext3 array specifically to store media on seperate from my operating system and other file systems. The root user will never write to this file system so reserving 5% (50GB) is wasted space.</p>
<p>To recover this space you can use the tune2fs command and specify the <code>-m 0</code> option. Here is an example.</p>
<p>Before the tune with the default 5% reserve:</p>
<pre>
root@pooh:/data# df -h /data
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/data_vol_grp-data_vol
921G  867G  7.2G 100% /data
</pre>
<p>The tune2fs command to adjust the reserved percentage to 0.</p>
<pre>
root@pooh:/data# tune2fs -m 0 /dev/data_vol_grp/data_vol
</pre>
<p>The available space after adjusting the reserved space.</p>
<pre>
root@pooh:/data# df -h /data
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/data_vol_grp-data_vol
921G  867G   54G  95% /data
</pre>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.andremiller.net%2Fcontent%2Frecovering-reserved-space-ext2-and-ext3-filesystems&amp;linkname=Recovering%20reserved%20space%20in%20ext2%20and%20ext3%20filesystems"><img src="http://www.andremiller.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.andremiller.net/content/recovering-reserved-space-ext2-and-ext3-filesystems/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

