<?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>Christopher J. Umina &#187; FreeBSD</title>
	<atom:link href="http://uminac.com/category/computers/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://uminac.com</link>
	<description>I'm not creative enough for this, and you can't help me.</description>
	<lastBuildDate>Tue, 01 Jun 2010 16:54:37 +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>Headless FreeBSD Install</title>
		<link>http://uminac.com/2010/06/01/headless-freebsd-install/</link>
		<comments>http://uminac.com/2010/06/01/headless-freebsd-install/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 16:54:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://uminac.com/?p=268</guid>
		<description><![CDATA[Ever wanted to install without a keyboard and mouse on the system? Do it over serial console! Here&#8217;s how to make a CD that can do it. Extract the ISO Get your install ISO from somewhere and extract it to some directory. mkdir ./iso tar -C ./iso -pxf 8.0-RELEASE-i386-disc1.iso cd ./iso loader.conf Next thing to [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to install without a keyboard and mouse on the system?  Do it over serial console!  Here&#8217;s how to make a CD that can do it.</p>
<h3>Extract the ISO</h3>
<p>Get your install ISO from somewhere and extract it to some directory.</p>
<pre>
mkdir ./iso
tar -C ./iso -pxf 8.0-RELEASE-i386-disc1.iso
cd ./iso
</pre>
<h3>loader.conf</h3>
<p>Next thing to do is to tell the boot loader to start using the serial port.  This can be done by putting:</p>
<pre>console="comconsole"</pre>
<p>somewhere inside boot/loader.conf (obviously inside the iso directory)</p>
<h3>Make the ISO!</h3>
<p>Now wrap it all up into an iso using:</p>
<pre>mkisofs -J -r -b boot/cdboot -no-emul-boot -o 8.0-RELEASE-i386-disc1-serial.iso ./iso</pre>
<p>or something of the sort.</p>
<h3>You&#8217;re done!</h3>
<p>Go burn the ISO file and boot a system off the CD.  Set your terminal&#8217;s baud rate to 9600 and you&#8217;ll eventually see things booting up!</p>
]]></content:encoded>
			<wfw:commentRss>http://uminac.com/2010/06/01/headless-freebsd-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using portdowngrade</title>
		<link>http://uminac.com/2010/02/09/using-portdowngrade/</link>
		<comments>http://uminac.com/2010/02/09/using-portdowngrade/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 17:31:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[downgrade]]></category>
		<category><![CDATA[old version]]></category>
		<category><![CDATA[portaudit]]></category>
		<category><![CDATA[portdowngrade]]></category>
		<category><![CDATA[ports]]></category>
		<category><![CDATA[portsdb]]></category>
		<category><![CDATA[portupgrade]]></category>

		<guid isPermaLink="false">http://uminac.com/?p=263</guid>
		<description><![CDATA[Recently, I needed to roll a port back to a much older revision. While I usually dislike this type of thing, I found it to be necessary this time. Somebody recommended that I use portdowngrade to revert the ports tree to the older version, so I could install it. Here&#8217;s my process: Verify Anonymous CVS [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I needed to roll a port back to a much older revision.  While I usually dislike this type of thing, I found it to be necessary this time.  Somebody recommended that I use portdowngrade to revert the ports tree to the older version, so I could install it.</p>
<p>Here&#8217;s my process:</p>
<h3>Verify Anonymous CVS Connectivity</h3>
<p>First, you must verify that you can connect to the anoncvs server.  You can find instructions in the <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/anoncvs.html">FreeBSD Handbook</a> for this process.</p>
<p>One thing you should probably be aware of is that there are a very limited number of anoncvs mirrors, which is why I chose the .tw one.</p>
<h3>Prepare Your Ports Tree</h3>
<p>You need to be sure that you have an updated portsdb installed so portdowngrade is able to find the matching ports with a search.</p>
<pre>portsdb -u</pre>
<h3>Installing &#038; Using portdowngrade</h3>
<pre>cd /usr/ports/*/portdowngrade &#038;&#038; make DEFAULT_CVS_SERVER=\":pserver:anoncvs@anoncvs.tw.freebsd.org:/home/ncvs\" install clean</pre>
<p>Note that you may replace the server name with whichever mirror you chose in the earlier step.</p>
<p>Once installed, you may now downgrade the port using:</p>
<pre>portdowngrade devel/bugzilla</pre>
<p>for instance.  From here the <a href="http://portdowngrade.sourceforge.net/documentation.html">documentation</a> will be more than enough to show you how to get the downgraded port checked out and installed.</p>
<h3>The Missing Step: Making portupgrade Ignore the Port!</h3>
<p>This is easy as pie, but there are two ways to do it.  I chose to do both.</p>
<h4>Option 1: Edit the pkgtools.conf file</h4>
<p>Usually located in /usr/local/etc/, pkgtools.conf will allow you to specify an additional port in the HOLD_PKGS array like such:</p>
<pre>
HOLD_PKGS = [
    'bsdpan-*',
    'devel/bugzilla*'
]
</pre>
<h4>Option 2: +IGNOREME</h4>
<p>Creating a +IGNOREME file in the package directory will stop both portaudit and portmaster from upgrading the port.</p>
<pre>touch /var/db/pkg/bugzilla/+IGNOREME</pre>
]]></content:encoded>
			<wfw:commentRss>http://uminac.com/2010/02/09/using-portdowngrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update: FreeBSD&#8217;s iSCSI Initiator</title>
		<link>http://uminac.com/2009/08/03/update-freebsds-iscsi-initiator/</link>
		<comments>http://uminac.com/2009/08/03/update-freebsds-iscsi-initiator/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 19:55:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[initiator]]></category>
		<category><![CDATA[IO]]></category>
		<category><![CDATA[iscsi]]></category>
		<category><![CDATA[iscsi.conf]]></category>
		<category><![CDATA[reads]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[writes]]></category>

		<guid isPermaLink="false">http://uminac.com/?p=224</guid>
		<description><![CDATA[Well worth mentioning: There&#8217;s a way more updated version of the iSCSI Initiator on the developer&#8217;s public FTP site. ftp://ftp.cs.huji.ac.il/users/danny/freebsd/ With this version I&#8217;m now seeing acceptable IO (around 65MB/s reads/writes) after setting tags=256 in iscsi.conf. All credits to the developer. Because I&#8217;m in the US, I have fairly bad connectivity to that site. I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>Well worth mentioning:</p>
<p>There&#8217;s a way more updated version of the iSCSI Initiator on the developer&#8217;s public FTP site.</p>
<p><a href="ftp://ftp.cs.huji.ac.il/users/danny/freebsd/">ftp://ftp.cs.huji.ac.il/users/danny/freebsd/</a></p>
<p>With this version I&#8217;m now seeing acceptable IO (around 65MB/s reads/writes) after setting tags=256 in iscsi.conf.</p>
<p>All credits to the developer.</p>
<p>Because I&#8217;m in the US, I have fairly bad connectivity to that site.  I&#8217;ve mirrored it here:</p>
<p><a href="http://uminac.com/mirror/ftp.cs.huji.ac.il/users/danny/freebsd/">http://uminac.com/mirror/ftp.cs.huji.ac.il/users/danny/freebsd/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://uminac.com/2009/08/03/update-freebsds-iscsi-initiator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Scoop on FreeBSD &amp; iSCSI (Currently)</title>
		<link>http://uminac.com/2009/07/17/the-scoop-on-freebsd-iscsi-currently/</link>
		<comments>http://uminac.com/2009/07/17/the-scoop-on-freebsd-iscsi-currently/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 12:44:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[8.0-BETA1]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[iscontrol]]></category>
		<category><![CDATA[iscsi]]></category>
		<category><![CDATA[iscsi-target]]></category>
		<category><![CDATA[iscsi_initiator]]></category>
		<category><![CDATA[rc]]></category>

		<guid isPermaLink="false">http://uminac.com/?p=209</guid>
		<description><![CDATA[Please see the update to this post As A Target (Server) The only available iSCSI target software in FreeBSD is the /net/iscsi-target port. This is the iSCSI target from OpenBSD and is absolutely not suitable for production use (or even most non-production uses). Problems I&#8217;ve come across: Does not support CHAP. Will not allow multiple [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://uminac.com/2009/08/03/update-freebsds-iscsi-initiator/"><b><font color="red">Please see the update to this post</font></b></a></p>
<h3>As A Target (Server)</h3>
<p>The only available iSCSI target software in FreeBSD is the <a href="http://www.freebsd.org/cgi/url.cgi?ports/net/iscsi-target/pkg-descr">/net/iscsi-target</a> port.  This is the iSCSI target from OpenBSD and is absolutely not suitable for production use (or even most non-production uses).</p>
<p><b>Problems I&#8217;ve come across:</b></p>
<ul>
<li>Does not support CHAP.</li>
<li>Will not allow multiple connections to the same target (LUN).  This is useful in the case of VMWare ESX/ESXi.</li>
<li>Cannot rehash configuration file.  If you add/remove a target you must restart the daemon completely, ending all current connections.</li>
</ul>
<h3>As An Initiator (Client)</h3>
<p>The iSCSI initiator in FreeBSD 7.2 (currently) suffers from many issues.  These issues prevent it from being suitable for production use.  There is, however, a newer version of the iscsi_initiator kernel module shipping in 8.0-BETA1 and the -current branch (HEAD).  By nature these versions of the FreeBSD operating system are not suitable for production use.</p>
<p><b>Problems I&#8217;ve come across in FreeBSD 7.2:</b></p>
<ul>
<li>No official documentation.  While it is a simple configuration, you have to find procedures strewn about the web.</li>
<li>Poor performance without tags tweak.  I achieved no better than 2MB/s transfer rate without setting <i>tags = 256</i> in <a href="http://www.freebsd.org/cgi/man.cgi?query=iscsi.conf&#038;apropos=0&#038;sektion=0&#038;manpath=FreeBSD+7.2-RELEASE&#038;format=html">iscsi.conf</a>.</li>
<li>No <a href="http://www.freebsd.org/cgi/man.cgi?query=rc&#038;apropos=0&#038;sektion=0&#038;manpath=FreeBSD+7.2-RELEASE&#038;format=html">rc</a> scripts.  Devices must be attached after boot by admin or <a href="http://www.freebsd.org/cgi/man.cgi?query=cron&#038;apropos=0&#038;sektion=0&#038;manpath=FreeBSD+7.2-RELEASE&#038;format=html">cron</a>.</li>
<li>System lockups under loads.  Copying files to the iSCSI array via gigabit has repeatedly locked the system up.  To test I copied the files from a local disk to the array and had the same result.</li>
</ul>
<p><b>Problems I&#8217;ve come across in FreeBSD 8.0-BETA2:</b></p>
<ul>
<li>It includes an updated version, but it just flat out doesn&#8217;t work.  When attaching the target with <a href="http://www.freebsd.org/cgi/man.cgi?query=iscontrol&#038;apropos=0&#038;sektion=0&#038;manpath=FreeBSD+7.2-RELEASE&#038;format=html">iscontrol</a> -n targetname the <a href="http://www.freebsd.org/cgi/man.cgi?query=iscontrol&#038;apropos=0&#038;sektion=0&#038;manpath=FreeBSD+7.2-RELEASE&#038;format=html">iscontrol</a> process hangs forever and cannot be <a href="http://www.freebsd.org/cgi/man.cgi?query=kill&#038;apropos=0&#038;sektion=0&#038;manpath=FreeBSD+7.2-RELEASE&#038;format=html">kill</a>ed with a -9.</li>
<li>Still no <a href="http://www.freebsd.org/cgi/man.cgi?query=rc&#038;apropos=0&#038;sektion=0&#038;manpath=FreeBSD+7.2-RELEASE&#038;format=html">rc</a> scripts of any kind.</li>
</ul>
<p>Comments are welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://uminac.com/2009/07/17/the-scoop-on-freebsd-iscsi-currently/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PowerEdge 2900 iSCSI Performance Problems w/ FreeBSD</title>
		<link>http://uminac.com/2009/06/19/poweredge-2900-iscsi-performance-problems-w-freebsd/</link>
		<comments>http://uminac.com/2009/06/19/poweredge-2900-iscsi-performance-problems-w-freebsd/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 12:30:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Anger]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[7.2]]></category>
		<category><![CDATA[BIOS]]></category>
		<category><![CDATA[Broadcom]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[horrific]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[iscsi]]></category>
		<category><![CDATA[iscsi_initiator]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[LAN]]></category>
		<category><![CDATA[PCI]]></category>
		<category><![CDATA[poweredge]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[write speed]]></category>

		<guid isPermaLink="false">http://uminac.com/?p=206</guid>
		<description><![CDATA[Got a new storage server, it&#8217;s a PE2900 from Dell. Installed FreeBSD 7.2 on it, rebuilt the kernel with all the updates and included: options iscsi_initiator connected to the iSCSI target across the LAN, then I used: dd if=/dev/zero of=/mnt/testiscsi/file.out bs=65536 to test the speeds after mounting it. I observed horrific speeds (in the range [...]]]></description>
			<content:encoded><![CDATA[<p>Got a new storage server, it&#8217;s a PE2900 from Dell.  Installed FreeBSD 7.2 on it, rebuilt the kernel with all the updates and included:</p>
<pre>options iscsi_initiator</pre>
<p>connected to the iSCSI target across the LAN, then I used:</p>
<pre>dd if=/dev/zero of=/mnt/testiscsi/file.out bs=65536</pre>
<p>to test the speeds after mounting it.  I observed horrific speeds (in the range of 300-500KB/s).</p>
<p>To make a long story short, I discovered that using the extra Intel NIC I put in the system&#8217;s PCI slots fixed the problem.  So I tried to upgrade firmware, but they all seem to be up to date.  Looks like I&#8217;ll be disabling them in the BIOS and ordering some more Intel cards.</p>
<p>Damn Dell for putting those crappy Broadcoms in there.</p>
]]></content:encoded>
			<wfw:commentRss>http://uminac.com/2009/06/19/poweredge-2900-iscsi-performance-problems-w-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mod_security FTW</title>
		<link>http://uminac.com/2009/03/20/mod_security-ftw/</link>
		<comments>http://uminac.com/2009/03/20/mod_security-ftw/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 21:43:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Anger]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[WWW]]></category>
		<category><![CDATA[angry]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[bot]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[mailq]]></category>
		<category><![CDATA[mod_security]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[popsicle]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://uminac.com/?p=148</guid>
		<description><![CDATA[The other night, I noticed that popsicle.easymac.org&#8217;s mailq was >22,000 message. I figured that was a problem. Turns out one of my users (who&#8217;s account I deleted without hesitation) was running a PHP proxy from his ~ directory. Looks like the stupid thing allowed some idiot to download some obnoxious looking perl scripts into the [...]]]></description>
			<content:encoded><![CDATA[<p>The other night, I noticed that popsicle.easymac.org&#8217;s mailq was >22,000 message.  I figured that was a problem.  Turns out one of my users (who&#8217;s account I deleted without hesitation) was running a PHP proxy from his ~ directory.  Looks like the stupid thing allowed some idiot to download some obnoxious looking perl scripts into the /tmp directory, and execute them repeatedly, while making periodic connections to an IRC server hosted at theplanet&#8217;s shitty facilities (which I hope have the chance to explode&#8230; again).</p>
<p>Anyway, somebody who I take very seriously told me, very seriously, that I should consider mod_security.  So I did.  It&#8217;s awesome.  I&#8217;ll never look back.</p>
]]></content:encoded>
			<wfw:commentRss>http://uminac.com/2009/03/20/mod_security-ftw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finally, Control-Z gets some work!</title>
		<link>http://uminac.com/2008/11/25/finally-control-z-gets-some-work/</link>
		<comments>http://uminac.com/2008/11/25/finally-control-z-gets-some-work/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 05:33:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[control z]]></category>
		<category><![CDATA[ctrl-z]]></category>
		<category><![CDATA[migrate]]></category>
		<category><![CDATA[migrated]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[popsicle]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[z]]></category>
		<category><![CDATA[zee]]></category>

		<guid isPermaLink="false">http://uminac.com/?p=133</guid>
		<description><![CDATA[The first thing migrated to the new server was popsicle.easymac.org.  It used to be an old P4 machine with no RAM, and some crappy amount of storage, and it&#8217;s now something nice! Everyone who is a user on popsicle should check that everything they had going before is still going!  If not, you know who [...]]]></description>
			<content:encoded><![CDATA[<p>The first thing migrated to the new server was popsicle.easymac.org.  It used to be an old P4 machine with no RAM, and some crappy amount of storage, and it&#8217;s now something nice!</p>
<p>Everyone who is a user on popsicle should check that everything they had going before is still going!  If not, you know who to contact.</p>
]]></content:encoded>
			<wfw:commentRss>http://uminac.com/2008/11/25/finally-control-z-gets-some-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenBSD iscsi-target</title>
		<link>http://uminac.com/2008/11/12/openbsd-iscsi-target/</link>
		<comments>http://uminac.com/2008/11/12/openbsd-iscsi-target/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 17:59:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[freenas]]></category>
		<category><![CDATA[iscsi]]></category>
		<category><![CDATA[openbsd]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[target]]></category>

		<guid isPermaLink="false">http://uminac.com/?p=126</guid>
		<description><![CDATA[A while back, I had a random interest to see if FreeBSD could be used as an iSCSI target.  Since FreeNAS could do it, I figured the ability would be built into FreeBSD, but I was wrong.  After a bit of Googling, I found that somebody ported the OpenBSD version of iscsi-target over to FreeBSD. [...]]]></description>
			<content:encoded><![CDATA[<p>A while back, I had a random interest to see if FreeBSD could be used as an iSCSI target.  Since FreeNAS could do it, I figured the ability would be built into FreeBSD, but I was wrong.  After a bit of Googling, I found that somebody ported the OpenBSD version of iscsi-target over to FreeBSD.</p>
<p>I decided to play with it a bit, and found that it functioned.  It&#8217;s got a few problems though (can&#8217;t rehash config files to add/remove lun&#8217;s without killing all open connections, and restarting).</p>
<p>My ability to code in c is very weak, but I guess maybe I&#8217;ll try to investigate how it works, and see if I can&#8217;t at least come up with a patch for that specific thing.  The other problems with the code are way above my head, having to do with authentication, and encryption.</p>
<p>Who knows&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://uminac.com/2008/11/12/openbsd-iscsi-target/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>named inside a FreeBSD jail</title>
		<link>http://uminac.com/2008/09/29/named-inside-a-freebsd-jail/</link>
		<comments>http://uminac.com/2008/09/29/named-inside-a-freebsd-jail/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 16:13:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[jail]]></category>
		<category><![CDATA[named]]></category>

		<guid isPermaLink="false">http://uminac.com/?p=72</guid>
		<description><![CDATA[If you&#8217;ve ever tried to run named inside a FreeBSD jail you&#8217;ve seen this error: /etc/rc.d/named: WARNING: devfs_domount(): Unable to mount devfs on /var/named/dev devfs rule: ioctl DEVFSIO_RAPPLY: Operation not permitted devfs rule: ioctl DEVFSIO_RAPPLY: Operation not permitted The reason for this is that by default in FreeBSD named tries to run within a chroot. [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve ever tried to run named inside a FreeBSD jail you&#8217;ve seen this error:</p>
<pre>
/etc/rc.d/named: WARNING: devfs_domount(): Unable to mount devfs on /var/named/dev
devfs rule: ioctl DEVFSIO_RAPPLY: Operation not permitted
devfs rule: ioctl DEVFSIO_RAPPLY: Operation not permitted
</pre>
<p>The reason for this is that by default in FreeBSD named tries to run within a chroot.  The chroot for named requires /dev/zero, and /dev/random, so the rc script that starts named tries to mount a devfs for named.  The problem is that jails cannot mount, for obvious reasons.</p>
<p>The quick solution is to tell FreeBSD not to try to run named within a chroot.  The idea is that a jail is good enough.  You can do this by seting:</p>
<pre>named_chrootdir=""</pre>
<p>within the <b>JAIL&#8217;S</b> /etc/rc.conf.</p>
<p>The other option is to create the chroot dir for named from the host system for the jail before you start it.  This really doesn&#8217;t have too much of a benefit.  But it&#8217;s possible by issuing the following commands from the host system for your jail:</p>
<pre>
# mount -t devfs devfs /jails/jailhost.whatever.com/var/named/dev/
# devfs -m /jails/jailhost.whatever.com/var/named/dev/ rule -s 1 applyset
# devfs -m /jails/jailhost.whatever.com/var/named/dev/ rule apply path null unhide
# devfs -m /jails/jailhost.whatever.com/var/named/dev/ rule apply path random unhide
</pre>
<p>Once you&#8217;ve done that, you can start named in the jail, and you&#8217;ll have named running inside a chroot within a jail.  This doesn&#8217;t quell the error messages, but you can trust that they&#8217;re irrelevant, or if you feel like it, you can patch /etc/rc.d/named within the jail to not try to create/destroy chroots.  Find these lines of code:</p>
<pre>
# Mount a devfs in the chroot directory if needed
#
umount ${named_chrootdir}/dev 2>/dev/null
devfs_domount ${named_chrootdir}/dev devfsrules_hide_all
devfs -m ${named_chrootdir}/dev rule apply path null unhide
devfs -m ${named_chrootdir}/dev rule apply path random unhide
</pre>
<p>and make them look like this:</p>
<pre>
# Mount a devfs in the chroot directory if needed
#
#umount ${named_chrootdir}/dev 2>/dev/null
#devfs_domount ${named_chrootdir}/dev devfsrules_hide_all
#devfs -m ${named_chrootdir}/dev rule apply path null unhide
#devfs -m ${named_chrootdir}/dev rule apply path random unhide
</pre>
<p>Now you have to maintain this stupidity, if your mergemaster changes /etc/rc.d/named, but I guess it&#8217;s nice not to see errors.  You also can&#8217;t start your jails automatically at boot, because the chroot won&#8217;t exist yet&#8230;  So&#8230;. whatever.</p>
]]></content:encoded>
			<wfw:commentRss>http://uminac.com/2008/09/29/named-inside-a-freebsd-jail/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Buildworld Benchmark: My New Server (ULE)</title>
		<link>http://uminac.com/2008/09/22/buildworld-benchmark-my-new-server-ule/</link>
		<comments>http://uminac.com/2008/09/22/buildworld-benchmark-my-new-server-ule/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 16:17:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[buildworld]]></category>
		<category><![CDATA[scheduler]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ule]]></category>

		<guid isPermaLink="false">http://www.uminac.com/?p=109</guid>
		<description><![CDATA[Buildworld Benchmark: My New Server Continued. The same benchmark as previously done was redone with the ULE Scheduler. The results were quite odd, as the times were actually slightly higher than recorded without the ULE Scheduler. This leads me to believe that I probably screwed up somewhere, but I just don&#8217;t want to spend more [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.uminac.com/2008/09/19/buildworld-benchmark-my-new-server/">Buildworld Benchmark: My New Server</a> Continued.</p>
<p><a href="http://www.imgfixr.com/image/241"><img src="http://www.imgfixr.com/image/245" border="0" alt="" align="left" /></a> The same benchmark as previously done was redone with the ULE Scheduler.  The results were quite odd, as the times were actually slightly higher than recorded without the ULE Scheduler.</p>
<p>This leads me to believe that I probably screwed up somewhere, but I just don&#8217;t want to spend more time doing something this &#8230; boring.</p>
]]></content:encoded>
			<wfw:commentRss>http://uminac.com/2008/09/22/buildworld-benchmark-my-new-server-ule/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
