Changes

Jump to navigation Jump to search
449 bytes added ,  00:17, 24 February 2020
m
pretty format
ZFS is the filesystem we're using for the data partition on [[Stratholme]], see [[wikipedia:ZFS]] for more information.__toc__== Setup ==After Setting Up [[Zombi:HDD Encryption]] boot into the new system and install zfs using [https://github.com/zfsonlinux/zfs/wiki/Debian this manual]. Then Create new Partitions that use the free space on all disks using <code>cfdisk</code> or the partitioning tool of your choice. <div class="mw-collapsible mw-collapsed"style="width:50%;">Your Partition Table should look more or less like this by now:''(click Expand)''<preclass="mw-collapsible-content" style="overflow:auto;">
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 2.7T 0 disk
|-sdd3 8:51 0 1M 0 part
`-sdd4 8:52 0 2.7T 0 part
</pre></div>Execute this command to create the ZFS Pool:<br /><codesyntaxhighlight lang="bash">zpool create data raidz /dev/sda4 /dev/sdb4 /dev/sdc4 /dev/sdd4</code><br /syntaxhighlight>and prevent it from mounting:<br /><codesyntaxhighlight lang="bash">zfs set mountpoint=none data</code><br /syntaxhighlight>Create the encrypted zfs filesystem:<br /><codesyntaxhighlight lang="bash">
zfs create data/encrypted -o mountpoint=/data -o encryption=aes-256-gcm -o keyformat=passphrase -o compression=lz4
</code><br /syntaxhighlight>
=== Useful commands ===
After a reboot, ZFS can be mounted using this command:<br />
<codesyntaxhighlight lang="bash">zfs load-key data/encryptedzfs mount data/encrypted</codesyntaxhighlight>
Display IO Bandwith for all blockdevices and update every 10 seconds:<br /><codesyntaxhighlight lang="bash">zpool iostat -v 10</code><br /syntaxhighlight>
Show Information about the Cache every five seconds:<br /><codesyntaxhighlight lang="bash">arcstat 5</code><br /syntaxhighlight>Show loads of information about ZFS<br /><codesyntaxhighlight lang="bash">arc_summary</codesyntaxhighlight>
[[Category:Documentation]]

Navigation menu