Bug 265647 - zpool attach gives misleading error message on block size mismatch
Summary: zpool attach gives misleading error message on block size mismatch
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 13.1-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-05 13:34 UTC by Matthias Pfaller
Modified: 2022-08-11 02:06 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Pfaller 2022-08-05 13:34:06 UTC
I tried to attach a new ssd to an existing zpool to upgrade the pool to a mirrored pool.

bash# zpool attach root gpt/root0 gpt/root1
will output the error message "cannot attach gpt/root1 to gpt/root0: can only attach to mirrors and top-level disks"

bash# zpool attach -o ashift=9 root gpt/root0 gpt/root1

worked in my case, but it took some googling to get to this point.
With a better error message some frustration could have been avoided.