mirror_zfs/cmd/zpool
Christos Longros 6a717f31e6
Improve misleading error messages for ZPOOL_STATUS_CORRUPT_POOL
When devices are missing or claimed by another subsystem (e.g.
mdadm, LVM), zpool import reports "The pool metadata is corrupted"
and suggests destroying the pool. This is misleading because the
metadata is not necessarily corrupted -- it may simply be incomplete
due to inaccessible devices.

Update the status, action, and recovery messages to acknowledge
that missing devices can trigger this status, and suggest checking
device availability before resorting to pool destruction.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chris Longros <chris.longros@gmail.com>
Closes #18251
Closes #8236
2026-02-23 09:41:24 -08:00
..
compatibility.d Update compatibility.d files 2025-08-25 16:47:19 -07:00
os GCC 15: Fix unterminated-string-initialization (#17244) 2025-04-16 09:33:29 -07:00
zpool.d zed: misc vdev_enc_sysfs_path fixes 2023-11-07 09:09:24 -08:00
Makefile.am build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
zpool_iter.c zfs: replace tpool with taskq 2025-11-19 08:16:51 -08:00
zpool_main.c Improve misleading error messages for ZPOOL_STATUS_CORRUPT_POOL 2026-02-23 09:41:24 -08:00
zpool_util.c Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
zpool_util.h Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
zpool_vdev.c cmd/zpool cstyle issues 2025-11-14 15:58:50 -08:00