Replies: 1 comment 8 replies
-
If it says more than one matching, your problem isn't that you have multiple devices with distinct names and the same pool, it's that you have multiple pools named that, almost certainly, because by-id almost always has multiple names for the same device, and that's not a problem for most people. No, it's not a bug, unless you show more evidence.
It's not just hardcoded because, among other reasons, some systems, by-id or by-partuuid or by-uuid don't work in some or all cases. One of the wiki articles goes into detail about the pros and cons of each. |
Beta Was this translation helpful? Give feedback.
-
I don't really understand the
-d
option. And i never used it. But in NixOS it's used.The docs state:
I would just assume it uses the disks in this dir to find pools on it to limit the search space.
If i use
-d /dev/disk/by-id
with is the default on NixOS the dir looks something like this:And if I check
zpool import
it shows my pool correctly:(And only one pool as expected)
If I try to import this pool now with
It fails to import the pool because it is not unique.
Note: import works fine with
-d by-uuid
where the disk shows up only once or without the-d
param.by-id
dir)-d
be used and why? (I don't really understand the usecase for this feature or what it is suppose to do)Beta Was this translation helpful? Give feedback.
All reactions