diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-09-09 10:19:01 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-09-09 10:22:00 +0200 |
commit | 6d7fa6eff28c2ba8bb87bf19e02f4de1b94701b9 (patch) | |
tree | b02b24d8344f41080af78db632b7e99bead476f7 /src/linux | |
parent | 1d4828b87da9837fc3df81e81da1763d337fc420 (diff) | |
download | notes-6d7fa6eff28c2ba8bb87bf19e02f4de1b94701b9.tar.gz notes-6d7fa6eff28c2ba8bb87bf19e02f4de1b94701b9.zip |
zfs: add note about lsof and minor fixes in encrytion notes
Diffstat (limited to 'src/linux')
-rw-r--r-- | src/linux/zfs.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/linux/zfs.md b/src/linux/zfs.md index e52874d..800d3d9 100644 --- a/src/linux/zfs.md +++ b/src/linux/zfs.md @@ -108,6 +108,8 @@ active host and `imported` on the new host. ```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 @@ -152,11 +154,12 @@ zfs unmount moose/foo Encryption is a readonly property, can only be set when creating a dataset. ```bash -# 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 |