From ced5f71eecc3b1443109d5c17c5b0608a7b0ea4d Mon Sep 17 00:00:00 2001 From: grodik Date: Thu, 17 Sep 2020 20:19:13 -0400 Subject: [PATCH] Note that keys must be loaded for 'zpool remove' The error returned by `zpool remove` when the encryption keys aren't loaded isn't very helpful. Furthermore, the man pages make no mention that the keys need to be loaded. This change doesn't resolve the error message but it does update the man page to mention this requirement. Authored-by: grodik Reviewed-by: Matthew Ahrens Reviewed-by: Brian Behlendorf Signed-off-by: Brian Behlendorf Closes #10939 Closes #10948 --- man/man8/zpool-remove.8 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/man/man8/zpool-remove.8 b/man/man8/zpool-remove.8 index 055f852fc7..cd394f107e 100644 --- a/man/man8/zpool-remove.8 +++ b/man/man8/zpool-remove.8 @@ -55,6 +55,8 @@ This command supports removing hot spare, cache, log, and both mirrored and non-redundant primary top-level vdevs, including dedup and special vdevs. When the primary pool storage includes a top-level raidz vdev only hot spare, cache, and log devices can be removed. +Note that keys for all encrypted datasets must be loaded for top-level vdevs +to be removed. .sp Removing a top-level vdev reduces the total amount of space in the storage pool. The specified device will be evacuated by copying all allocated space from it to