<?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>My Galagzee! &#187; moving</title>
	<atom:link href="http://my.galagzee.com/tag/moving/feed/" rel="self" type="application/rss+xml" />
	<link>http://my.galagzee.com</link>
	<description>Tech in a Galagzee, Not So Far Away.</description>
	<lastBuildDate>Wed, 28 Jul 2010 17:09:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Moving var, tmp Off the Root in FreeBSD</title>
		<link>http://my.galagzee.com/2008/06/28/moving-var-tmp-off-the-root-in-freebsd/</link>
		<comments>http://my.galagzee.com/2008/06/28/moving-var-tmp-off-the-root-in-freebsd/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 21:41:44 +0000</pubDate>
		<dc:creator>Ville Walveranta</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[/tmp]]></category>
		<category><![CDATA[/var]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[moving]]></category>

		<guid isPermaLink="false">http://my.galagzee.com/?p=76</guid>
		<description><![CDATA[One one of the first things I do on a newly installed FreeBSD system is to move /var and /tmp to under /usr. Since I usually allocate about 4Gb for the root slice and the rest of a disk—usually several hundred gigabytes—goes to /usr (well, there&#8217;s also the swap slice that takes few gigabytes) having]]></description>
			<content:encoded><![CDATA[<p>One one of the first things I do on a newly installed FreeBSD system is to move <strong>/var</strong> and <strong>/tmp</strong> to under <strong>/usr</strong>. Since I usually allocate about 4Gb for the root slice and the rest of a disk—usually several hundred gigabytes—goes to <strong>/usr</strong> (well, there&#8217;s also the swap slice that takes few gigabytes) having <strong>/var</strong> and <strong>/tmp</strong> there is more comfortable as some log files, database files, or some temp files can sometimes grow to multi-gigabyte size and exhaust the root space.</p>
<p>Below is a simple procedure to move the <strong>/var</strong> to <strong>/usr/var</strong> and <strong>/tmp</strong> to <strong>/usr/var/tmp</strong>. This is best to do early on in a new system installation since many services tend to hook into <strong>/tmp</strong> and/or <strong>/var</strong>, and may thus lock files in those directories making the move more difficult. If you&#8217;re making this move on an established system, at least stop all the services that might interfere with the process (such as database services). It might even be a good idea to boot into a single user mode (if you do so, remember to correctly mount your disks before proceeding). I usually do this early in a new system install, before installing any major services, or at least before scripting them to run.</p>
<ol>
<li><strong>Move /var to /usr/var</strong><br />
<code><br />
mkdir /usr/var<br />
cd /var<br />
tar cvf - . | (cd /usr/var; tar xvf - )<br />
cd /<br />
chflags -R noschg /var<br />
rm -rf /var<br />
ln -s /usr/var /var<br />
</code></li>
<p></p>
<li><strong>Move /tmp to /usr/var/tmp</strong><br />
<code><br />
mkdir /usr/var/tmp<br />
cd /tmp<br />
tar cvf - . | (cd /usr/var/tmp; tar xvf - )<br />
cd /<br />
chflags -R noschg /tmp<br />
rm -rf /tmp<br />
ln -s /usr/var/tmp /tmp<br />
chmod -h 777 /tmp<br />
chmod 1777 /usr/var/tmp<br />
</code></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://my.galagzee.com/2008/06/28/moving-var-tmp-off-the-root-in-freebsd/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
