diff options
author | johannst <johannst@users.noreply.github.com> | 2023-09-09 08:32:23 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2023-09-09 08:32:23 +0000 |
commit | 3839b5e390c53b74f58003cf082030df02391f9a (patch) | |
tree | feb4c3e7c3e6674200e49594b49bd4be7bd1bd89 /linux/zfs.html | |
parent | f0cf514eb3ca30c5170e534c3861ad73996c7726 (diff) | |
download | notes-3839b5e390c53b74f58003cf082030df02391f9a.tar.gz notes-3839b5e390c53b74f58003cf082030df02391f9a.zip |
deploy: 30bc89f36a0310eb5c9c710f0544577b3688fd77
Diffstat (limited to 'linux/zfs.html')
-rw-r--r-- | linux/zfs.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/linux/zfs.html b/linux/zfs.html index 0da0103..fd76c12 100644 --- a/linux/zfs.html +++ b/linux/zfs.html @@ -271,6 +271,8 @@ zpool status active host and <code>imported</code> on the new host.</p> <pre><code class="language-bash"># Export a pool called MOOSE. zpool export moose +# If datasets are busy, use lsof to check which processes keep it busy. +# lsof <mntpoint> # List pools that can be imported using BY-ID deivce names (for example). zpool import -d /dev/disk/by-id @@ -307,11 +309,12 @@ zfs unmount moose/foo </code></pre> <h3 id="encrypted-datasets"><a class="header" href="#encrypted-datasets">Encrypted datasets</a></h3> <p>Encryption is a readonly property, can only be set when creating a dataset.</p> -<pre><code class="language-bash"># Create encrypted dataset ENC on pool MOOSE. +<pre><code class="language-bash"># Create encrypted dataset FOO on pool MOOSE. zfs create -o encryption=on -o keyformat=passphrase moose/foo -# Mount encrypte dataset (if key is not loaded). +# Mount encrypte dataset and load encryption key (if not loaded). zfs mount -l moose/foo +# -l is equivalent to first loading the key via zfs load-key moose/foo. # Unmount dataset and unload encryption key (unload is optional). zfs umount -u moose/foo |