ZFS should prefer the most specific... or something.
Allan Jude
allanjude at FreeBSD.org
Mon Feb 27 06:24:51 UTC 2017
On February 26, 2017 3:31:54 PM PST, Zaphod Beeblebrox <zbeeble at gmail.com> wrote:
>So, my experience is that I added two drives (that showed up as ada0
>and
>ada1) ... something odd with the raid card added a da0 ... which is
>unreadable ... seems to be a bogon.
>
>... and ZFS, in it's infinite wisdom changes my nice, neat da0s2a zfs
>to
>diskid/<blahblahblah>s2a.
>
>... this is doubly bad, because then the /dev/da0s1a cannot mount as
>swap.
>
>I realize that this is can be somewhat fixed for non-root zfs with
>import/export, but for root ZFS ... you're stuck.
>
>Can we have ZFS prefer the shortest (rather than longest)? Can we have
>it
>prefer labels, if they exist (have a priority field in the different
>types
>of geom ... an order in which they are tasted)?
>
>The current situation has been annoying multiple distinct times.
>_______________________________________________
>freebsd-hackers at freebsd.org mailing list
>https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>To unsubscribe, send any mail to
>"freebsd-hackers-unsubscribe at freebsd.org"
Zfs has no Control over this, it is GEOM that decides the device names. There are multiple for each disk, and once one is used, geom hides the rest. As Alan Somers pointed out, you can disable the names you do not want.
Disk ID can be useful as it is the serial number of the disk
--
Allan Jude
More information about the freebsd-hackers
mailing list