mirror_zfs/cmd
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
..
raidz_test build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
zdb Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
zed build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
zfs Include missing newline in 'man' error 2026-02-09 10:19:08 -08:00
zinject build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
zpool Improve misleading error messages for ZPOOL_STATUS_CORRUPT_POOL 2026-02-23 09:41:24 -08:00
zpool_influxdb build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
zstream build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00
dbufstat.in SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
fsck.zfs.in cmd: move single-file binaries up, extract udev programs to udev/ 2022-05-10 10:20:34 -07:00
Makefile.am Move range_tree, btree, highbit64 to common code 2026-02-22 11:43:51 -08:00
mount_zfs.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zarcstat.in cmd: rename arcstat to zarcstat 2025-09-10 10:45:21 -07:00
zarcsummary cmd: rename arc_summary to zarcsummary 2025-09-10 10:45:13 -07:00
zfs_ids_to_path.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zgenhostid.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zhack.c zhack: add "action idle" subcommand 2026-02-09 09:36:14 -08:00
zilstat.in ZIL: "crash" the ZIL if the pool suspends during fallback 2025-08-08 16:43:26 -07:00
ztest.c cmd/ztest: avoid PATH_MAX stack allocation in ztest_get_zdb_bin() (#18085) 2025-12-29 11:16:34 -08:00
zvol_wait zvol_wait logic may terminate prematurely 2022-10-11 12:12:04 -07:00