<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>openATTIC (Posts about zfs)</title><link>/</link><description></description><atom:link href="https://openattic.org/categories/zfs.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Thu, 22 Aug 2019 20:00:52 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Unlock Geli-encrypted ZFS Volume - FreeNAS</title><link>https://openattic.org/posts/unlock-geli-ecrypted-zfs-volume-freenas/</link><dc:creator>Kai Wagner</dc:creator><description>&lt;div&gt;&lt;p&gt;Today an old friend of mine wrote me a message and asked me if I could help him with his home nas.
His problem was that his FreeNAS system could no longer mount and decrypt his disks. He wasn't quite familiar with the commandline and storage tools, so he asked me for help.&lt;/p&gt;
&lt;p&gt;After 15 minutes of frustrating and testing with my first FreeBSD I found a solution. For everybody how wants toor needs to decrypt a Geli-encrypted ZFS volume on FreeNAS - here's what I did:&lt;/p&gt;
&lt;p&gt;To decrypt the volumes - first find out which one is the geli crypted - just testing every fu**ing partition:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
geli attach -k [geli_key_file] [dev_to_unlock]

HINT: FreeNAS key-file location /data/geli/masterkeyofdoom.key
&lt;/pre&gt;
&lt;p&gt;After that you have to import the zpool:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
zpool import -&amp;gt; list all existing zpools

zpool import $POOLNAME -&amp;gt; import the named pool from above
&lt;/pre&gt;
&lt;p&gt;In our scenario it wasn't possible to mount the zfs volumes after the zpool import, because the default mountpath was wrong and the main path is read-only within FreeNAS. To change the default mount path from zfs:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
zfs set mountpoint=/mnt poolname
&lt;/pre&gt;
&lt;p&gt;Afterwards we could mount all existing zfs volumes to /mnt. To mount all existing volumes at a time:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
zfs mount -a
&lt;/pre&gt;
&lt;p&gt;That's it. Now we could access his data again. I learned alot and now waiting for my crate beer as a reward :-).&lt;/p&gt;&lt;/div&gt;</description><category>decrypt</category><category>encrypt</category><category>freenas</category><category>raid</category><category>zfs</category><guid>https://openattic.org/posts/unlock-geli-ecrypted-zfs-volume-freenas/</guid><pubDate>Wed, 13 Jul 2016 20:46:12 GMT</pubDate></item></channel></rss>