<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.freebsdwiki.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.freebsdwiki.net/index.php?action=history&amp;feed=atom&amp;title=ZFS%2C_creating_datasets_for_the_FreeBSD_system</id>
		<title>ZFS, creating datasets for the FreeBSD system - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.freebsdwiki.net/index.php?action=history&amp;feed=atom&amp;title=ZFS%2C_creating_datasets_for_the_FreeBSD_system"/>
		<link rel="alternate" type="text/html" href="http://www.freebsdwiki.net/index.php?title=ZFS,_creating_datasets_for_the_FreeBSD_system&amp;action=history"/>
		<updated>2026-04-10T11:25:29Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.18.0</generator>

	<entry>
		<id>http://www.freebsdwiki.net/index.php?title=ZFS,_creating_datasets_for_the_FreeBSD_system&amp;diff=11718&amp;oldid=prev</id>
		<title>Jimbo: Created page with 'Some admins may wish to create a customized set of datasets tailored to the FreeBSD system itself; ie configuring compression for the ports directory (but not distfiles!), turnin…'</title>
		<link rel="alternate" type="text/html" href="http://www.freebsdwiki.net/index.php?title=ZFS,_creating_datasets_for_the_FreeBSD_system&amp;diff=11718&amp;oldid=prev"/>
				<updated>2010-05-15T14:55:26Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;Some admins may wish to create a customized set of datasets tailored to the FreeBSD system itself; ie configuring compression for the ports directory (but not distfiles!), turnin…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Some admins may wish to create a customized set of datasets tailored to the FreeBSD system itself; ie configuring compression for the ports directory (but not distfiles!), turning execution off on directories like /var/db, etc.&lt;br /&gt;
&lt;br /&gt;
Be warned that, should you choose to do this, you will create additional complexity you must maintain and wade through when monitoring the system - for one relatively trivial example, you will have an additional ''sixteen'' filesystems showing up in the output of '''df'''!&lt;br /&gt;
&lt;br /&gt;
 Fixit# zfs create -o compression=on    -o exec=on      -o setuid=off   zroot/tmp&lt;br /&gt;
 Fixit# chmod 1777 /zroot/tmp&lt;br /&gt;
 &lt;br /&gt;
 Fixit# zfs create zroot/usr&lt;br /&gt;
 Fixit# zfs create zroot/usr/home&lt;br /&gt;
 Fixit# zfs create -o compression=lzjb  -o setuid=off   zroot/usr/ports &lt;br /&gt;
 Fixit# zfs create -o compression=off   -o exec=off     -o setuid=off   zroot/usr/ports/distfiles&lt;br /&gt;
 Fixit# zfs create -o compression=off   -o exec=off     -o setuid=off   zroot/usr/ports/packages&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
If you use nullfs or nfs to mount /usr/ports to different locations/servers, you will also need to nullfs/nfs mount /usr/ports/distfiles and/or /usr/ports/packages.&lt;br /&gt;
&lt;br /&gt;
 Fixit# zfs create zroot/var&lt;br /&gt;
 Fixit# zfs create -o exec=off     -o setuid=off   zroot/var/empty&lt;br /&gt;
 Fixit# zfs create -o exec=off     -o setuid=off   zroot/var/db&lt;br /&gt;
 Fixit# zfs create -o exec=off     -o setuid=off   zroot/var/run&lt;br /&gt;
 Fixit# zfs create -o compression=lzjb  -o exec=off     -o setuid=off   zroot/usr/src&lt;br /&gt;
 Fixit# zfs create -o compression=lzjb  -o exec=off     -o setuid=off   zroot/var/crash&lt;br /&gt;
 Fixit# zfs create -o compression=lzjb  -o exec=on      -o setuid=off   zroot/var/db/pkg&lt;br /&gt;
 Fixit# zfs create -o compression=lzjb  -o exec=off     -o setuid=off   zroot/var/log&lt;br /&gt;
 Fixit# zfs create -o compression=gzip  -o exec=off     -o setuid=off   zroot/var/mail&lt;br /&gt;
 Fixit# zfs create -o compression=lzjb  -o exec=on      -o setuid=off   zroot/var/tmp&lt;br /&gt;
 Fixit# chmod 1777 /zroot/var/tmp&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
Compression may be set to on, off, lzjb, gzip, gzip-N (where N is an integer from 1 (fastest) to 9 (best compresion ratio. gzip is equivalent to gzip-6).&lt;br /&gt;
Compression will cause some latency when accessing files on the ZFS filesystems. Use compression on ZFS filesystems which will not be accessed that often. &lt;br /&gt;
&lt;br /&gt;
[[Category:ZFS]]&lt;/div&gt;</summary>
		<author><name>Jimbo</name></author>	</entry>

	</feed>