[Pkg-zfsonlinux-devel] Bug#940678: Please import pools by stable device label

Antonio Russo antonio.e.russo at gmail.com
Fri Sep 27 12:09:55 BST 2019


Could you please clarify: did you experience any data loss, or were you simply unable to import your pool at one point?

As a second note, you should have done something like

zpool import -d /dev/disks/by-id -a

so that your import is done by labels that are stable across boots (names like /dev/sdX are not necessarily stable). This is a "well-known" best
practice with ZFS [1] (you should always create pools using these symlinks as well).

If you have only experienced an inability to import your pool at boot, my guess is that you had (and continue to have) the inappropriate
import by device node setup. This configuration error will lead to you continuing to have problems importing your pool at later times,
and is not a bug. To fix that problem you should zpool export all your pools (this might be tricky, especially if you are zfs on root),
and then run the above command. As always, double check all this!

If you did NOT experience any data loss, could you please lower the severity of this bug? And if my above analysis of your pool setup is
correct, could you please close this bug report?

Thank you,
Antonio

[1] https://github.com/zfsonlinux/zfs/wiki/faq#selecting-dev-names-when-creating-a-pool



More information about the Pkg-zfsonlinux-devel mailing list