openzfs / zfs

OpenZFS on Linux and FreeBSD
https://openzfs.github.io/openzfs-docs
Other
10.55k stars 1.74k forks source link

Wrong error message for zpool create #11087

Open thoro opened 3 years ago

thoro commented 3 years ago

System information

Type Version/Name
Distribution Name CentOS
Distribution Version 7
Linux Kernel 5.4.60
Architecture x86_64
ZFS Version 0.8.4
SPL Version 0.8.4

Describe the problem you're observing

When executing zpool create I get an error message that's wrong:

/sbin/zpool create -m none v-55e18e36-0d33-4dcf-b985-968ca78cf957 mirror /dev/mapper/v-55e18e36-0d33-4dcf-b985-968ca78cf957-0 /dev/mapper/v-55e18e36-0d33-4dcf-b985-968ca78cf957-1
cannot create 'v-55e18e36-0d33-4dcf-b985-968ca78cf957': one or more devices is currently unavailable

It's actually failing because of "block size out of range or does not match" but doesn't say so.

If I add -o ashift=9 or -o ashift=12 the creation works fine.

Describe how to reproduce the problem

Use two disks with different blocksizes to create a zpool.

(I actually used 2 iscsi disks, one provided via ZFS VolBlock and one via LVM - bit exotic ... )

Include any warning/errors/backtraces from the system logs

no other warnings or errors

stale[bot] commented 2 years ago

This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions.