<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://openzfsonosx.org/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://openzfsonosx.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=84.114.59.37</id>
		<title>OpenZFS on OS X - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://openzfsonosx.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=84.114.59.37"/>
		<link rel="alternate" type="text/html" href="https://openzfsonosx.org/wiki/Special:Contributions/84.114.59.37"/>
		<updated>2026-05-09T21:14:47Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.22.3</generator>

	<entry>
		<id>https://openzfsonosx.org/wiki/Documentation</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="https://openzfsonosx.org/wiki/Documentation"/>
				<updated>2014-04-01T19:22:05Z</updated>
		
		<summary type="html">&lt;p&gt;84.114.59.37: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:About O3X]]&lt;br /&gt;
[[Category:Getting and installing O3X]]&lt;br /&gt;
&lt;br /&gt;
== Documentation ==&lt;br /&gt;
&lt;br /&gt;
General OpenZFS usage can be found on the [http://open-zfs.org OpenZFS wiki]. But we do need to document some Apple OS X specific things.&lt;br /&gt;
&lt;br /&gt;
=== Getting started ===&lt;br /&gt;
&lt;br /&gt;
* [[zpool|Creating a pool]]&lt;br /&gt;
&lt;br /&gt;
=== Integration ===&lt;br /&gt;
&lt;br /&gt;
* [[Suppressing the annoying popup]]&lt;br /&gt;
&lt;br /&gt;
* [[Autoimport|Automatically importing pools]]&lt;br /&gt;
&lt;br /&gt;
=== Trouble Shooting ===&lt;br /&gt;
&lt;br /&gt;
* [[DegradedPool|Degraded pool]]&lt;br /&gt;
&lt;br /&gt;
* [[panic|Kernel panic]]&lt;/div&gt;</summary>
		<author><name>84.114.59.37</name></author>	</entry>

	<entry>
		<id>https://openzfsonosx.org/wiki/DegradedPool</id>
		<title>DegradedPool</title>
		<link rel="alternate" type="text/html" href="https://openzfsonosx.org/wiki/DegradedPool"/>
				<updated>2014-04-01T19:18:05Z</updated>
		
		<summary type="html">&lt;p&gt;84.114.59.37: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In case you have a degraded pool due to corrupted data on one drive, zpool status will show something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;sudo zpool status&lt;br /&gt;
 pool: tank&lt;br /&gt;
     id: 4167705491194610230&lt;br /&gt;
  state: DEGRADED&lt;br /&gt;
 status: One or more devices contains corrupted data.&lt;br /&gt;
 action: The pool can be imported despite missing or damaged devices.  The&lt;br /&gt;
        fault tolerance of the pool may be compromised if imported.&lt;br /&gt;
   see: http://zfsonlinux.org/msg/ZFS-8000-4J&lt;br /&gt;
 config:&lt;br /&gt;
 &lt;br /&gt;
        tank                                      DEGRADED&lt;br /&gt;
          fs                                        DEGRADED&lt;br /&gt;
            disk1s2                             ONLINE&lt;br /&gt;
            disk2s2                             ONLINE&lt;br /&gt;
            2735026605872377559   FAULTED  corrupted data&lt;br /&gt;
            disk4s2                             ONLINE&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, look into DiskUtility and find the disk number of the disk which is missing. (In our case disk3).&lt;br /&gt;
If you are certain that the corrupted data was not due to a bad disk, (for example if just the labels were messed up), we would like to delete the partition table of that disk and afterwards format the drive.&lt;br /&gt;
&lt;br /&gt;
If the disk is faulty, take a new disk and skip this step, going directly to the format.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo gpt destroy disk3&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, format in DiskUtility as one partition, using GUID partition table, as hfs+ and look up the new disk partition id in the lower part of the DiskUtility-window. (in our case disk3s2)&lt;br /&gt;
Replace the now missing drive in the pool with the newly formatted disk:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo zpool replace tank 2735026605872377559 /dev/disk3s2&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The number you see is the one which you saw above at the position of the faulted drive in '''sudo zpool status'''.&lt;br /&gt;
&lt;br /&gt;
The system now starts resilvering the drive. This takes a long time. With '''sudo zpool status''' you can see the progress.&lt;/div&gt;</summary>
		<author><name>84.114.59.37</name></author>	</entry>

	<entry>
		<id>https://openzfsonosx.org/wiki/DegradedPool</id>
		<title>DegradedPool</title>
		<link rel="alternate" type="text/html" href="https://openzfsonosx.org/wiki/DegradedPool"/>
				<updated>2014-04-01T19:16:30Z</updated>
		
		<summary type="html">&lt;p&gt;84.114.59.37: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In case you have a degraded pool due to corrupted data on one drive, zpool status will show something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;sudo zpool status&lt;br /&gt;
 pool: tank&lt;br /&gt;
     id: 4167705491194610230&lt;br /&gt;
  state: DEGRADED&lt;br /&gt;
 status: One or more devices contains corrupted data.&lt;br /&gt;
 action: The pool can be imported despite missing or damaged devices.  The&lt;br /&gt;
        fault tolerance of the pool may be compromised if imported.&lt;br /&gt;
   see: http://zfsonlinux.org/msg/ZFS-8000-4J&lt;br /&gt;
 config:&lt;br /&gt;
 &lt;br /&gt;
        tank                                      DEGRADED&lt;br /&gt;
          fs                                        DEGRADED&lt;br /&gt;
            disk1s2                             ONLINE&lt;br /&gt;
            disk2s2                             ONLINE&lt;br /&gt;
            2735026605872377559   FAULTED  corrupted data&lt;br /&gt;
            disk4s2                             ONLINE&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, look into DiskUtility and find the disk number of the disk which is missing. (In our case disk3).&lt;br /&gt;
If you are certain that the corrupted data was not due to a bad disk, (for example if just the labels were messed up), we would like to delete the partition table of that disk and afterwards format the drive.&lt;br /&gt;
&lt;br /&gt;
If the disk is faulty, take a new disk and skip this step, going directly to the format.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo gpt destroy disk3&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, format in DiskUtility as one partition, using GUID partition table, as hfs+ and look up the new disk partition id in the lower part of the DiskUtility-window. (in our case disk3s2)&lt;br /&gt;
Replace the now missing drive in the pool with the newly formatted disk:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo zpool replace tank 2735026605872377559 /dev/disk3s2&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The number you see is the one which you saw above at the position of the faulted drive in &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;sudo zpool status&amp;lt;/syntaxhighlight&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The system now starts resilvering the drive. This takes a long time. With &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;sudo zpool status&amp;lt;/syntaxhighlight&amp;gt; you can see the progress.&lt;/div&gt;</summary>
		<author><name>84.114.59.37</name></author>	</entry>

	<entry>
		<id>https://openzfsonosx.org/wiki/DegradedPool</id>
		<title>DegradedPool</title>
		<link rel="alternate" type="text/html" href="https://openzfsonosx.org/wiki/DegradedPool"/>
				<updated>2014-04-01T19:15:23Z</updated>
		
		<summary type="html">&lt;p&gt;84.114.59.37: replace drive in degraded pool&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In case you have a degraded pool due to corrupted data on one drive, zpool status will show something like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;sudo zpool status&lt;br /&gt;
 pool: tank&lt;br /&gt;
     id: 4167705491194610230&lt;br /&gt;
  state: DEGRADED&lt;br /&gt;
 status: One or more devices contains corrupted data.&lt;br /&gt;
 action: The pool can be imported despite missing or damaged devices.  The&lt;br /&gt;
        fault tolerance of the pool may be compromised if imported.&lt;br /&gt;
   see: http://zfsonlinux.org/msg/ZFS-8000-4J&lt;br /&gt;
 config:&lt;br /&gt;
 &lt;br /&gt;
        tank                                      DEGRADED&lt;br /&gt;
          fs                                        DEGRADED&lt;br /&gt;
            disk1s2                             ONLINE&lt;br /&gt;
            disk2s2                             ONLINE&lt;br /&gt;
            2735026605872377559   FAULTED  corrupted data&lt;br /&gt;
            disk4s2                             ONLINE&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, look into DiskUtility and find the disk number of the disk which is missing. (In our case disk3).&lt;br /&gt;
If you are certain that the corrupted data was not due to a bad disk, (for example if just the labels were messed up), we would like to delete the partition table of that disk and afterwards format the drive.&lt;br /&gt;
&lt;br /&gt;
If the disk is faulty, take a new disk and skip this step, going directly to the format.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo gpt destroy disk3&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, format in DiskUtility as one partition, using GUID as hfs+ and look up the new disk partition id in the lower part of the DiskUtility-window. (in our case disk3s2)&lt;br /&gt;
Replace the now missing drive in the pool with the newly formatted disk:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo zpool replace tank 2735026605872377559 /dev/disk3s2&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The number you see is the one which you saw above at the position of the faulted drive in &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;sudo zpool status&amp;lt;/syntaxhighlight&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The system now starts resilvering the drive. This takes a long time. With &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;sudo zpool status&amp;lt;/syntaxhighlight&amp;gt; you can see the progress.&lt;/div&gt;</summary>
		<author><name>84.114.59.37</name></author>	</entry>

	<entry>
		<id>https://openzfsonosx.org/wiki/Documentation</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="https://openzfsonosx.org/wiki/Documentation"/>
				<updated>2014-04-01T18:51:42Z</updated>
		
		<summary type="html">&lt;p&gt;84.114.59.37: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:About O3X]]&lt;br /&gt;
[[Category:Getting and installing O3X]]&lt;br /&gt;
&lt;br /&gt;
== Documentation ==&lt;br /&gt;
&lt;br /&gt;
General OpenZFS usage can be found on the [http://open-zfs.org OpenZFS wiki]. But we do need to document some Apple OS X specific things.&lt;br /&gt;
&lt;br /&gt;
=== Getting started ===&lt;br /&gt;
&lt;br /&gt;
* [[zpool|Creating a pool]]&lt;br /&gt;
&lt;br /&gt;
=== Integration ===&lt;br /&gt;
&lt;br /&gt;
* [[Suppressing the annoying popup]]&lt;br /&gt;
&lt;br /&gt;
* [[Autoimport|Automatically importing pools]]&lt;br /&gt;
&lt;br /&gt;
=== Trouble Shooting ===&lt;br /&gt;
&lt;br /&gt;
* [[DegradedPool|Degraded pool]]&lt;br /&gt;
&lt;br /&gt;
=== Kernel panics ===&lt;br /&gt;
&lt;br /&gt;
* [[panic|Kernel panic]]&lt;/div&gt;</summary>
		<author><name>84.114.59.37</name></author>	</entry>

	<entry>
		<id>https://openzfsonosx.org/wiki/Documentation</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="https://openzfsonosx.org/wiki/Documentation"/>
				<updated>2014-04-01T18:50:34Z</updated>
		
		<summary type="html">&lt;p&gt;84.114.59.37: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:About O3X]]&lt;br /&gt;
[[Category:Getting and installing O3X]]&lt;br /&gt;
&lt;br /&gt;
== Documentation ==&lt;br /&gt;
&lt;br /&gt;
General OpenZFS usage can be found on the [http://open-zfs.org OpenZFS wiki]. But we do need to document some Apple OS X specific things.&lt;br /&gt;
&lt;br /&gt;
=== Getting started ===&lt;br /&gt;
&lt;br /&gt;
* [[zpool|Creating a pool]]&lt;br /&gt;
&lt;br /&gt;
=== Integration ===&lt;br /&gt;
&lt;br /&gt;
* [[Suppressing the annoying popup]]&lt;br /&gt;
&lt;br /&gt;
* [[Autoimport|Automatically importing pools]]&lt;br /&gt;
&lt;br /&gt;
=== Trouble Shooting ===&lt;br /&gt;
&lt;br /&gt;
* [[zpool|Degraded pool]]&lt;br /&gt;
&lt;br /&gt;
=== Kernel panics ===&lt;br /&gt;
&lt;br /&gt;
* [[panic|Kernel panic]]&lt;/div&gt;</summary>
		<author><name>84.114.59.37</name></author>	</entry>

	<entry>
		<id>https://openzfsonosx.org/wiki/Install</id>
		<title>Install</title>
		<link rel="alternate" type="text/html" href="https://openzfsonosx.org/wiki/Install"/>
				<updated>2014-03-28T21:52:38Z</updated>
		
		<summary type="html">&lt;p&gt;84.114.59.37: adding a paragraph about importing pools when migrating ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:About O3X]]&lt;br /&gt;
[[Category:Getting and installing O3X]]&lt;br /&gt;
== Installing the official release ==&lt;br /&gt;
&lt;br /&gt;
Download the most recent dmg from the [[Downloads]] page.&lt;br /&gt;
&lt;br /&gt;
Verify the checksums.&lt;br /&gt;
&lt;br /&gt;
 $ md5 OpenZFS_on_OS_X_*.dmg&lt;br /&gt;
 $ sha1sum OpenZFS_on_OS_X_*.dmg&lt;br /&gt;
 $ openssl dgst -sha256 OpenZFS_on_OS_X_*.dmg&lt;br /&gt;
&lt;br /&gt;
Open the .dmg file.&lt;br /&gt;
&lt;br /&gt;
Read ReadMe.rtf.&lt;br /&gt;
&lt;br /&gt;
Start the installer by opening OpenZFS_on_OS_X_x.y.z.pkg.&lt;br /&gt;
&lt;br /&gt;
Follow the prompts.&lt;br /&gt;
&lt;br /&gt;
If you ever want to uninstall, follow the instructions for [[Uninstall#Uninstalling_a_release_version|uninstalling a release version]].&lt;br /&gt;
&lt;br /&gt;
== Installing from source ==&lt;br /&gt;
(Adapted from an [http://zerobsd.tumblr.com/post/62586498252/os-x-with-zfs article by ZeroBSD].)&lt;br /&gt;
&lt;br /&gt;
If you have any other implementation of ZFS installed, you must uninstall it and reboot before proceeding further.&lt;br /&gt;
&lt;br /&gt;
We'll need to fetch the latest source from the [https://github.com/openzfsonosx repository on GitHub] and then compile it.&lt;br /&gt;
&lt;br /&gt;
For this, we'll need some prerequisites:&lt;br /&gt;
&lt;br /&gt;
* [https://developer.apple.com/xcode/ Xcode] (from [http://itunes.apple.com/us/app/xcode/id497799835?ls=1&amp;amp;mt=12 Mac App Store] or https://developer.apple.com/downloads/index.action)&lt;br /&gt;
* Xcode Command Line Tools (https://developer.apple.com/downloads/index.action)&lt;br /&gt;
* [http://brew.sh/ Homebrew] (or [http://www.macports.org/‎ MacPorts])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To install Homebrew:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
ruby -e &amp;quot;$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Paste that at a Terminal prompt.&lt;br /&gt;
&lt;br /&gt;
Once Homebrew is installed, we need a couple of things first:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
brew install automake libtool gawk&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create two folders in your home directory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
mkdir ~/Developer&lt;br /&gt;
mkdir ~/bin&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the ~/bin directory to your PATH.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
echo 'export PATH=$HOME/bin:$PATH' &amp;gt;&amp;gt; ~/.bash_profile&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and update your environment by sourcing your profile.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
source ~/.bash_profile&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To acquire the sources and build ZFS, we'll need the [[zfsadm]] script found [https://gist.github.com/ilovezfs/7713854#file-zfsadm here].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/Developer/&lt;br /&gt;
git clone https://gist.github.com/7713854.git zfsadm-repo&lt;br /&gt;
cp zfsadm-repo/zfsadm ~/bin/&lt;br /&gt;
chmod +x ~/bin/zfsadm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All set. Let's go cloning and building ZFS:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
zfsadm&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let it work. This should take a few minutes depending on the speed of your machine.&lt;br /&gt;
&lt;br /&gt;
Before using ZFS, we need to actually install it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/Developer/zfs&lt;br /&gt;
sudo make install&lt;br /&gt;
cd ~/Developer/spl&lt;br /&gt;
sudo make install&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can check to see if the kernel extensions loaded automatically with &lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo kextstat | grep lundman&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something similar to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
137    1 0xffffff803f61a800 0x20c      0x20c      net.lundman.kernel.dependencies (10.0.0)&lt;br /&gt;
144    1 0xffffff7f82720000 0xd000     0xd000     net.lundman.spl (1.0.0) &amp;lt;137 7 5 4 3 1&amp;gt;&lt;br /&gt;
145    0 0xffffff7f8272d000 0x202000   0x202000   net.lundman.zfs (1.0.0) &amp;lt;144 13 7 5 4 3 1&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If not, make sure kextd is aware of them.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo touch /System/Library/Extensions&lt;br /&gt;
sudo killall -HUP kextd&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And check again.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo kextstat | grep lundman&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If not, you can load the kexts manually.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /System/Library/Extensions&lt;br /&gt;
sudo kextload spl.kext&lt;br /&gt;
sudo kextload -d spl.kext zfs.kext&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now add /usr/local/sbin to your PATH. This is where you will find the command binaries (zpool, zfs, zdb, etc.).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
echo 'export PATH=$PATH:/usr/local/sbin' &amp;gt;&amp;gt; ~/.bash_profile&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and update your environment by sourcing your profile again.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
source ~/.bash_profile&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Try running&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo zpool&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to see if everything is installed and configured properly.&lt;br /&gt;
&lt;br /&gt;
You can go ahead and [[zpool#Creating_a_pool|create your pools]] at this point.&lt;br /&gt;
&lt;br /&gt;
When you want to get the [https://github.com/openzfsonosx/zfs/commits/master latest commits] from the GitHub, here's a quick overview of things you need to run.&lt;br /&gt;
&lt;br /&gt;
First make sure you have exported all of your pools.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo zpool list&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For every pool listed, run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo zpool export $poolname&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
in order to prevent a kernel panic when the kexts are unloaded.&lt;br /&gt;
&lt;br /&gt;
Make sure they have exported successfully.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo zpool status&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It should say, &amp;quot;no pools available.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Now you should be able to upgrade your ZFS installation safely.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/Developer&lt;br /&gt;
&lt;br /&gt;
cd spl&lt;br /&gt;
make clean&lt;br /&gt;
cd ..&lt;br /&gt;
&lt;br /&gt;
cd zfs&lt;br /&gt;
make clean&lt;br /&gt;
cd ..&lt;br /&gt;
&lt;br /&gt;
zfsadm&lt;br /&gt;
&lt;br /&gt;
# Assuming the build completed successfully,&lt;br /&gt;
# unload the kexts. If you did not export all of&lt;br /&gt;
# your pools this will panic:&lt;br /&gt;
&lt;br /&gt;
zfsadm -u&lt;br /&gt;
&lt;br /&gt;
# Now install the upgrade.&lt;br /&gt;
&lt;br /&gt;
cd spl&lt;br /&gt;
sudo make install&lt;br /&gt;
cd ..&lt;br /&gt;
&lt;br /&gt;
cd zfs&lt;br /&gt;
sudo make install&lt;br /&gt;
&lt;br /&gt;
# And verify they reloaded automatically&lt;br /&gt;
&lt;br /&gt;
sudo kextstat | grep lundman&lt;br /&gt;
&lt;br /&gt;
# If not, make sure kextd is aware of them&lt;br /&gt;
&lt;br /&gt;
sudo touch /System/Library/Extensions&lt;br /&gt;
sudo killall -HUP kextd&lt;br /&gt;
&lt;br /&gt;
# and check again&lt;br /&gt;
&lt;br /&gt;
sudo kextstat | grep lundman&lt;br /&gt;
&lt;br /&gt;
# if they they still have not loaded automatically&lt;br /&gt;
&lt;br /&gt;
cd /System/Library/Extensions&lt;br /&gt;
sudo kextload spl.kext&lt;br /&gt;
sudo kextload -d spl.kext zfs.kext&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If net.lundman.kernel.dependencies has been updated (quite rare) a reboot would be necessary.&lt;br /&gt;
&lt;br /&gt;
If you ever want to uninstall, follow the instructions for [[Uninstall#Uninstalling_a_source_install|uninstalling a source install]].&lt;br /&gt;
&lt;br /&gt;
== Installing a development build DMG ==&lt;br /&gt;
&lt;br /&gt;
Development build DMGs are often released here: http://lundman.net/ftp/osx.zfs/&lt;br /&gt;
&lt;br /&gt;
* Export your pools and unload the kexts.&lt;br /&gt;
&lt;br /&gt;
* Download one of the builds.&lt;br /&gt;
&lt;br /&gt;
* Open the .dmg file&lt;br /&gt;
&lt;br /&gt;
* cd into either 64 or 32 depending on whether your architecture is i386 or x86_64&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /Volumes/osx.zfs*/64&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Run install_zfs.sh&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo ./install_zfs.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you ever want to uninstall, follow the instructions for [[Uninstall#Uninstalling_a_development_build_DMG|uninstalling a development build dmg]].&lt;br /&gt;
&lt;br /&gt;
== Using without actually installing (development) ==&lt;br /&gt;
This method is usually appropriate only for Developers.&lt;br /&gt;
&lt;br /&gt;
The procedure is the same as found in the section [[Install#Installing_from_source|installing from source]] except that you never run &amp;quot;make install.&amp;quot; Instead you load the kexts manually, and execute the binaries directly from the source tree.&lt;br /&gt;
&lt;br /&gt;
You can load the kexts manually by running&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
zfsadm -k&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, zfsadm -k will create the directory ~/Library/Extensions if it doesn't exist, remove ~/Library/Extensions/spl.kext and ~/Library/Extensions/zfs.kext if they are present, copy spl.kext and zfs.kext from the source where they were built to ~/Library/Extenions, recursively change the ownership of everything in ~/Library/Extensions/spl.kext and ~/Library/Extensions/zfs.kext to be owned to be owned by the user &amp;quot;root&amp;quot; and the group &amp;quot;wheel,&amp;quot; and then load the kexts directly from ~/Library/Extensions. If you prefer to use a different directory, use the -i option in zfsadm or edit zfsadm to hard code a different directory.&lt;br /&gt;
&lt;br /&gt;
If you do not wish to use zfsadm, you can do all of this yourself, using whatever target directory you'd like. For example, you might do the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd /tmp&lt;br /&gt;
sudo rm -rf o3x&lt;br /&gt;
sudo mkdir o3x&lt;br /&gt;
&lt;br /&gt;
cd ~/Developer&lt;br /&gt;
sudo cp -r zfs/module/zfs/zfs.kext /tmp/o3x/ &lt;br /&gt;
sudo cp -r spl/module/spl/spl.kext /tmp/o3x/&lt;br /&gt;
&lt;br /&gt;
cd /tmp/o3x&lt;br /&gt;
sudo chown -R *&lt;br /&gt;
sudo kextload spl.kext&lt;br /&gt;
sudo kextload -d spl.kext zfs.kext&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once the kexts have been loaded, you can test the commands.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cd ~/Developer/zfs&lt;br /&gt;
sudo ./cmd.sh zfs status&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Migrating old Pools (from MacZFS or ZEVO) ==&lt;br /&gt;
When migrating to OpenZFS for MacOSX without exporting the pools, first with your old ZFS system, this is the fastest method to find out pool names and import the pools.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo zpool import&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will tell you what pools are available to be imported, but will not actually import anything. You can see that nothing has been imported yet using the zpool status command.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo zpool status&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now that you know what pools are available to be imported, you can actually import a pool by supplying the name or guid that you saw during pool discovery.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo zpool import -f poolname (or guid)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To access the information you saw during pool discovery, you will now need to use zpool status instead.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo zpool status&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If all pools have been imported, the pool discovery command— zpool import with no pool or guid specified— will return without any output.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo zpool import&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>84.114.59.37</name></author>	</entry>

	</feed>