<?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>gugaBSD &#187; zfs</title>
	<atom:link href="http://www.luizgustavo.pro.br/blog/tag/zfs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.luizgustavo.pro.br/blog</link>
	<description>Software Livre, BSD e outras coisas mais...</description>
	<lastBuildDate>Fri, 13 Jan 2012 13:05:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ZFS na Raiz com FreeBSD 9</title>
		<link>http://www.luizgustavo.pro.br/blog/2011/12/01/zfs-na-raiz-com-freebsd-9/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2011/12/01/zfs-na-raiz-com-freebsd-9/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 20:31:44 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[FreeBSD9]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=653</guid>
		<description><![CDATA[Este guia irá mostrar como você pode instalar um ambiente completo e funcional com ZFS usando o esquema de particionamento GPT no FreeBSD 9, nós também iremos usar SWAP em ZFS. Você pode usar este guia como referencia para uma instalação simples ou em espelhamento (mirror). &#160; Este guia é uma tradução do excelente artigo [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2011/12/daemon_girl.jpg"><img class="alignright size-medium wp-image-654" title="daemon_girl" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2011/12/daemon_girl-300x257.jpg" alt="" width="300" height="257" /></a>Este guia irá mostrar como você pode instalar um ambiente completo e funcional com ZFS usando o esquema de particionamento GPT no FreeBSD 9, nós também iremos usar SWAP em ZFS.</p>
<p>Você pode usar este guia como referencia para uma instalação simples ou em espelhamento (mirror).</p>
<p>&nbsp;</p>
<h4><strong>Este guia é uma tradução do excelente artigo do blog <a href="http://aisecure.net/" target="_blank">aisecure.net</a>, você pode visualiza-lo na integra neste <a href="http://www.aisecure.net/2011/11/28/root-zfs-freebsd9/" target="_blank">link</a>.</strong></h4>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span id="more-653"></span><strong><a href="http://mundounix.com.br/wp/consultoria-pfsense/"><img class="aligncenter size-full wp-image-638" title="Consultoria Pfsense" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2009/10/text4162.png" alt="Consultoria Pfsense" width="542" height="130" /></a><br />
(1) Inicialize o FreeBSD9 através do DVD de instalação ou pelo o &#8220;memstick&#8221; e selecione a opção “Live CD”.</strong></p>
<p><strong>(2) Crie um /tmp gravavél</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md1
mdmfs <span style="color: #660033;">-s</span> 512M md1 <span style="color: #000000; font-weight: bold;">/</span>tmp</pre></div></div>

<p><strong>(3) Crie as partições necessárias no(s) disco(s) e adcione o ambiente de boot do ZFS.</strong></p>
<p>a) Para uma instalação de disco simples.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gpart create <span style="color: #660033;">-s</span> gpt ada0
gpart add <span style="color: #660033;">-b</span> <span style="color: #000000;">34</span> <span style="color: #660033;">-s</span> 64k <span style="color: #660033;">-t</span> freebsd-boot ada0
gpart add <span style="color: #660033;">-t</span> freebsd-zfs <span style="color: #660033;">-l</span> disk0 ada0
gpart bootcode <span style="color: #660033;">-b</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>pmbr <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>gptzfsboot <span style="color: #660033;">-i</span> <span style="color: #000000;">1</span> ada0</pre></div></div>

<p>b) Repita o procedimento para o segundo disco se você for usar uma instalação em espelhamento (mirror).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gpart create <span style="color: #660033;">-s</span> gpt ada1
gpart add <span style="color: #660033;">-b</span> <span style="color: #000000;">34</span> <span style="color: #660033;">-s</span> 64k <span style="color: #660033;">-t</span> freebsd-boot ada1
gpart add <span style="color: #660033;">-t</span> freebsd-zfs <span style="color: #660033;">-l</span> disk1 ada1
gpart bootcode <span style="color: #660033;">-b</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>pmbr <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>gptzfsboot <span style="color: #660033;">-i</span> <span style="color: #000000;">1</span> ada1</pre></div></div>

<p><strong>(4) Crie o pool do ZFS.</strong></p>
<p>a) Para uma instalação simples.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">zpool create zroot <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>gpt<span style="color: #000000; font-weight: bold;">/</span>disk0</pre></div></div>

<p>b) Para uma instalação em espelhamento.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">zpool create zroot mirror <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>gpt<span style="color: #000000; font-weight: bold;">/</span>disk0 <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>gpt<span style="color: #000000; font-weight: bold;">/</span>disk1</pre></div></div>

<p><strong>(5) Configure corretamente o bootfs, checksums e os pontos de montagem. (ignore qualquer mensagem de erro relacionada a somente leitura &#8220;read only&#8221;)</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">zpool <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">bootfs</span>=zroot zroot
zfs <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">checksum</span>=fletcher4 zroot
zfs <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">mountpoint</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt zroot</pre></div></div>

<p><strong>(6)) Neste ponto, iremos exportar e importar o pool do ZFS enquanto estamos preservando o zroot.cache no /tmp.</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">zpool <span style="color: #7a0874; font-weight: bold;">export</span> zroot
zpool import <span style="color: #660033;">-o</span> <span style="color: #007800;">cachefile</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zpool.cache zroot</pre></div></div>

<p><strong>(7) Crie o sistema de arquivo apropriado (Seja livre para improvisar).</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">zfs create zroot<span style="color: #000000; font-weight: bold;">/</span>usr
zfs create zroot<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>home
zfs create zroot<span style="color: #000000; font-weight: bold;">/</span>var
zfs create <span style="color: #660033;">-o</span> <span style="color: #007800;">compression</span>=on <span style="color: #660033;">-o</span> <span style="color: #007800;">exec</span>=on <span style="color: #660033;">-o</span> <span style="color: #007800;">setuid</span>=off zroot<span style="color: #000000; font-weight: bold;">/</span>tmp
zfs create <span style="color: #660033;">-o</span> <span style="color: #007800;">compression</span>=lzjb <span style="color: #660033;">-o</span> <span style="color: #007800;">setuid</span>=off zroot<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports
zfs create <span style="color: #660033;">-o</span> <span style="color: #007800;">compression</span>=off <span style="color: #660033;">-o</span> <span style="color: #007800;">exec</span>=off <span style="color: #660033;">-o</span> <span style="color: #007800;">setuid</span>=off zroot<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>distfiles
zfs create <span style="color: #660033;">-o</span> <span style="color: #007800;">compression</span>=off <span style="color: #660033;">-o</span> <span style="color: #007800;">exec</span>=off <span style="color: #660033;">-o</span> <span style="color: #007800;">setuid</span>=off zroot<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>packages
zfs create <span style="color: #660033;">-o</span> <span style="color: #007800;">compression</span>=lzjb <span style="color: #660033;">-o</span> <span style="color: #007800;">exec</span>=off <span style="color: #660033;">-o</span> <span style="color: #007800;">setuid</span>=off zroot<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src
zfs create <span style="color: #660033;">-o</span> <span style="color: #007800;">compression</span>=lzjb <span style="color: #660033;">-o</span> <span style="color: #007800;">exec</span>=off <span style="color: #660033;">-o</span> <span style="color: #007800;">setuid</span>=off zroot<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>crash
zfs create <span style="color: #660033;">-o</span> <span style="color: #007800;">exec</span>=off <span style="color: #660033;">-o</span> <span style="color: #007800;">setuid</span>=off zroot<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>db
zfs create <span style="color: #660033;">-o</span> <span style="color: #007800;">compression</span>=lzjb <span style="color: #660033;">-o</span> <span style="color: #007800;">exec</span>=on <span style="color: #660033;">-o</span> <span style="color: #007800;">setuid</span>=off zroot<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>db<span style="color: #000000; font-weight: bold;">/</span>pkg
&nbsp;
zfs create <span style="color: #660033;">-o</span> <span style="color: #007800;">exec</span>=off <span style="color: #660033;">-o</span> <span style="color: #007800;">setuid</span>=off zroot<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>empty
zfs create <span style="color: #660033;">-o</span> <span style="color: #007800;">compression</span>=lzjb <span style="color: #660033;">-o</span> <span style="color: #007800;">exec</span>=off <span style="color: #660033;">-o</span> <span style="color: #007800;">setuid</span>=off zroot<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log
zfs create <span style="color: #660033;">-o</span> <span style="color: #007800;">compression</span>=<span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #660033;">-o</span> <span style="color: #007800;">exec</span>=off <span style="color: #660033;">-o</span> <span style="color: #007800;">setuid</span>=off zroot<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>mail
zfs create <span style="color: #660033;">-o</span> <span style="color: #007800;">exec</span>=off <span style="color: #660033;">-o</span> <span style="color: #007800;">setuid</span>=off zroot<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run
zfs create <span style="color: #660033;">-o</span> <span style="color: #007800;">compression</span>=lzjb <span style="color: #660033;">-o</span> <span style="color: #007800;">exec</span>=on <span style="color: #660033;">-o</span> <span style="color: #007800;">setuid</span>=off zroot<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>tmp</pre></div></div>

<p><strong>(8) Adicione um espaço de SWAP e desabilite a opção de checksums. Neste caso eu adicionei 4GB de SWAP.</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">zfs create <span style="color: #660033;">-V</span> 4G zroot<span style="color: #000000; font-weight: bold;">/</span>swap
zfs <span style="color: #000000; font-weight: bold;">set</span> org.freebsd:<span style="color: #007800;">swap</span>=on zroot<span style="color: #000000; font-weight: bold;">/</span>swap
zfs <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">checksum</span>=off zroot<span style="color: #000000; font-weight: bold;">/</span>swap</pre></div></div>

<p><strong>(9) Crie um link simbólico para o /home e corrija algumas permissões.</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">1777</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>mnt ; <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> usr<span style="color: #000000; font-weight: bold;">/</span>home home
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">1777</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>tmp</pre></div></div>

<p><strong>(10) Instale o FreeBSD.</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sh</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>freebsd-dist
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">DESTDIR</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #000000; font-weight: bold;">in</span> base.txz lib32.txz kernel.txz doc.txz ports.txz src.txz;
<span style="color: #000000; font-weight: bold;">do</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$file</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">--unlink</span> <span style="color: #660033;">-xpJf</span> - <span style="color: #660033;">-C</span> <span style="color: #800000;">${DESTDIR:-/}</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>; <span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p><strong>(11) Copie o zpool.cache (MUITO IMPORTANTE!!!)</strong></p>
<pre>cp /tmp/zpool.cache /mnt/boot/zfs/zpool.cache</pre>
<p><strong>(12) Crie o arquivo rc.conf, loader.conf e um arquivo vazio do fstab (Caso contrário, o sistema irá reclamar).</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'zfs_enable=&quot;YES&quot;'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.conf
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'zfs_load=&quot;YES&quot;'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>loader.conf
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'vfs.root.mountfrom=&quot;zfs:zroot&quot;'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>loader.conf
<span style="color: #c20cb9; font-weight: bold;">touch</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>fstab</pre></div></div>

<p><strong>(13) Desmonte tudo e corrija os pontos de montagem para a inicialização do sistema.</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">zfs <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">readonly</span>=on zroot<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>empty
zfs <span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #660033;">-a</span>
zfs <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">mountpoint</span>=legacy zroot
zfs <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">mountpoint</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp zroot<span style="color: #000000; font-weight: bold;">/</span>tmp
zfs <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">mountpoint</span>=<span style="color: #000000; font-weight: bold;">/</span>usr zroot<span style="color: #000000; font-weight: bold;">/</span>usr
zfs <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">mountpoint</span>=<span style="color: #000000; font-weight: bold;">/</span>var zroot<span style="color: #000000; font-weight: bold;">/</span>var</pre></div></div>

<p>Reinicie, ajuste a informação de fuso horário (tzsetup), configure uma senha para o usuário root, adicione um usuário comum no sistema e divirta-se!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizgustavo.pro.br/blog/2011/12/01/zfs-na-raiz-com-freebsd-9/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>ZFS: Auto-complete para bash e tcsh</title>
		<link>http://www.luizgustavo.pro.br/blog/2009/10/24/zfs-auto-complete-para-bash-e-tcsh/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2009/10/24/zfs-auto-complete-para-bash-e-tcsh/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 03:08:01 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[mundo BSD]]></category>
		<category><![CDATA[mundoUnix]]></category>
		<category><![CDATA[Software Livre]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[tcsh]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=281</guid>
		<description><![CDATA[Nas andanças da internet, encontrei um post sobre alguns scripts para bash e tcsh para auto-completar comandos do ZFS. Achei muito interessante, vale a visita: http://haim-tzadok.blogspot.com/2009/06/zfs-bash-and-tcsh-completion.html]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2009/10/zfs_feature_2.jpg"><img class="alignright size-full wp-image-282" title="zfs_feature_2" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2009/10/zfs_feature_2.jpg" alt="zfs_feature_2" width="176" height="140" /></a>Nas andanças da internet, encontrei um post sobre alguns scripts para bash e tcsh para auto-completar comandos do ZFS. Achei muito interessante, vale a visita:</p>
<p><a href="http://haim-tzadok.blogspot.com/2009/06/zfs-bash-and-tcsh-completion.html" target="_blank">http://haim-tzadok.blogspot.com/2009/06/zfs-bash-and-tcsh-completion.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizgustavo.pro.br/blog/2009/10/24/zfs-auto-complete-para-bash-e-tcsh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD: Installworld em uma partição ZFS</title>
		<link>http://www.luizgustavo.pro.br/blog/2009/10/08/freebsd-installworld-em-uma-particao-zfs/</link>
		<comments>http://www.luizgustavo.pro.br/blog/2009/10/08/freebsd-installworld-em-uma-particao-zfs/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 03:35:09 +0000</pubDate>
		<dc:creator>luizgustavo</dc:creator>
				<category><![CDATA[mundo BSD]]></category>
		<category><![CDATA[dicas]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://www.luizgustavo.pro.br/blog/?p=181</guid>
		<description><![CDATA[Essa dica é para quem tem uma montagem ZFS nativa no /usr e precisa fazer uma atualização à partir do source do FreeBSD. ]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2009/10/tips.jpg"><img class="size-full wp-image-182 alignright" title="tips" src="http://www.luizgustavo.pro.br/blog/wp-content/uploads/2009/10/tips.jpg" alt="tips" width="89" height="89" /></a>Essa dica é para quem tem uma montagem ZFS nativa no /usr e precisa fazer uma atualização à partir do source do FreeBSD.</p>
<p>Ao tentar fazer a instalação do sistema base pelo comando &#8220;installworld&#8221;, se depara com um erro semelhante à este:</p>
<pre><span>install -s -o root -g wheel -m 444   -fschg -S  libc.so.7 /mnt/test/lib </span>
<span>install: /mnt/test/lib/libc.so.7: chflags: Invalid argument </span></pre>
<p><span>Isso acontece porque uma montagem ZFS nativa ainda não suporta as flags UFS, portanto, o script do installworld ao tentar executar um chflag retorna esse erro.</span></p>
<p><span>Para contornar isso, pesquisando na internet, encontrei uma <a href="http://www.nabble.com/zfs,-installworld-and-chflags-td20635162.html" target="_blank">mensagem</a> do autor do port do ZFS que aconselha à usar uma entrada de variável no momento de iniciar o installworld, é setar a variavel &#8220;NO_FSCHG&#8221; que evita que o mesmo tente executar um chflag</span><span><strong>.</strong></span></p>
<p><span>Para facilitar a vida, coloque essa chamada da variável no arquivo &#8220;/etc/make.conf&#8221;</span></p>
<pre><span>echo "NO_FSCHG=yes" &gt;&gt; /etc/make.conf</span></pre>
<p><span>é isso ai !</span></p>
<p><span>abraços<strong><br />
</strong></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.luizgustavo.pro.br/blog/2009/10/08/freebsd-installworld-em-uma-particao-zfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

