From 3839b5e390c53b74f58003cf082030df02391f9a Mon Sep 17 00:00:00 2001
From: johannst imported
on the new host.
# 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
Encryption is a readonly property, can only be set when creating a dataset.
-# Create encrypted dataset ENC on pool MOOSE.
+# 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
--
cgit v1.2.3