Sitelet https://web.archive.org/web/20201201225538/https://github.com/openzfs/zfs/issues/11087
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong error message for zpool create #11087

Open
Thoro opened this issue Oct 19, 2020 · 0 comments
Open

Wrong error message for zpool create #11087

Thoro opened this issue Oct 19, 2020 · 0 comments

Comments

@Thoro
Copy link

@Thoro Thoro commented Oct 19, 2020 •

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.