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

Logical devices names can get jumbled on Ubuntu. #8040

Closed
ericbets opened this issue Oct 18, 2018 · 3 comments
Closed

Logical devices names can get jumbled on Ubuntu. #8040

ericbets opened this issue Oct 18, 2018 · 3 comments

Comments

@ericbets
Copy link

System information

Distribution Name | Ubuntu
Distribution Version | 18.04.01 LTS
Linux Kernel | 4.15.0-36-generic #39-Ubuntu SMP
Architecture | amd64
ZFS Version | 0.7.5-1ubuntu16.3
SPL Version | 0.7.5-1ubuntu1

Describe the problem you're observing

OS boots from a USB-3 stick, and all the caddies are filled with zfs data drives.
Sometimes the /dev/sdX entries get jumbled w/no hardware changes and zfs looks for a zfs vdev where the OS is now sitting and the corresponding vdev in that pool cannot be found and thus goes offline. The rest of the pool is fine. For example, on the last boot OS= /dev/sdb1, a vdev=/dev/sdc1, but on this boot their device names have been logically swapped. It would be good if zfs could do the right thing here and automatically search for the vdev that corresponds to the one that was originally inserted in it's catalog (via it's id), or introduce a way of human naming vdevs.

@bunder2015
Copy link
Contributor

FWIW, zfs can already use /dev/disk/by-id

@behlendorf
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@ericbets @behlendorf @bunder2015 and others