From owner-freebsd-hackers@freebsd.org Mon Feb 27 06:24:51 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8D49BCEF0C8 for ; Mon, 27 Feb 2017 06:24:51 +0000 (UTC) (envelope-from allanjude@FreeBSD.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 67C8DC82 for ; Mon, 27 Feb 2017 06:24:50 +0000 (UTC) (envelope-from allanjude@FreeBSD.org) Received: from [10.145.2.129] (unknown [209.171.88.129]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 4233A1360F; Mon, 27 Feb 2017 06:24:48 +0000 (UTC) Date: Sun, 26 Feb 2017 22:24:43 -0800 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: ZFS should prefer the most specific... or something. To: freebsd-hackers@freebsd.org,Zaphod Beeblebrox From: Allan Jude Message-ID: <94827A0B-2F42-4D6D-8112-29FCD7DBF122@FreeBSD.org> X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2017 06:24:51 -0000 On February 26, 2017 3:31:54 PM PST, Zaphod Beeblebrox wrote: >So, my experience is that I added two drives (that showed up as ada0 >and >ada1) =2E=2E=2E something odd with the raid card added a da0 =2E=2E=2E wh= ich is >unreadable =2E=2E=2E seems to be a bogon=2E > >=2E=2E=2E and ZFS, in it's infinite wisdom changes my nice, neat da0s2a z= fs >to >diskid/s2a=2E > >=2E=2E=2E this is doubly bad, because then the /dev/da0s1a cannot mount a= s >swap=2E > >I realize that this is can be somewhat fixed for non-root zfs with >import/export, but for root ZFS =2E=2E=2E you're stuck=2E > >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 =2E=2E=2E an order in which they are tasted)? > >The current situation has been annoying multiple distinct times=2E >_______________________________________________ >freebsd-hackers@freebsd=2Eorg mailing list >https://lists=2Efreebsd=2Eorg/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to >"freebsd-hackers-unsubscribe@freebsd=2Eorg" Zfs has no Control over this, it is GEOM that decides the device names=2E = There are multiple for each disk, and once one is used, geom hides the rest= =2E As Alan Somers pointed out, you can disable the names you do not want= =2E Disk ID can be useful as it is the serial number of the disk --=20 Allan Jude