From owner-freebsd-current@FreeBSD.ORG Wed Oct 16 00:05:30 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C5249A0F for ; Wed, 16 Oct 2013 00:05:30 +0000 (UTC) (envelope-from freebsd@allanjude.com) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id A1A8D21DA for ; Wed, 16 Oct 2013 00:05:30 +0000 (UTC) Received: from [10.1.1.1] (S01060001abad1dea.hm.shawcable.net [50.70.108.129]) (Authenticated sender: allan.jude@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id CCD9E3E790 for ; Wed, 16 Oct 2013 00:05:28 +0000 (UTC) Message-ID: <525DD847.4080209@allanjude.com> Date: Tue, 15 Oct 2013 20:05:27 -0400 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: Please shorten ZFS disk names. References: <525DC662.6030002@jrv.org> <20131015230747.GT23579@glenbarber.us> In-Reply-To: <20131015230747.GT23579@glenbarber.us> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Oct 2013 00:05:30 -0000 On 2013-10-15 19:07, Glen Barber wrote: > On Tue, Oct 15, 2013 at 05:49:06PM -0500, James R. Van Artsdalen wrote: >> BLACKIE:/root# uname -a >> FreeBSD BLACKIE.housenet.jrv 10.0-BETA1 FreeBSD 10.0-BETA1 #0 r256428M: >> Sun Oct 13 23:46:54 CDT 2013 >> root@CLANK.housenet.jrv:/usr/obj/usr/src/sys/GENERIC amd64 >> >> This pool is on da{0,1,2,3,4,5,6,7} - I think, only da4 is sure >> >> NAME >> STATE READ WRITE CKSUM >> z03 >> ONLINE 0 0 0 >> raidz2-0 >> ONLINE 0 0 0 >> diskid/DISK-%20%20%20%20%20%20%20%20%20%20%20%20Z300HSTK >> >> [...] >> >> Based on the hardware config that's either ada0p3 or ada1p3. Whichever >> it is I want to mirror it onto the other but I don't the names to use >> for src and dst. > You can set kern.geom.label.gptid.enable=0 in loader.conf(5), which will > use the gptid. > > Glen > In this case, it is the disk_ident that is being used, not the GPT label, so you want to set: kern.geom.label.disk_ident.enable=0 in /boot/loader.conf and then zfs won't see that device alias, and will show the expected device name -- Allan Jude