Re: Please shorten ZFS disk names.

From: Allan Jude <freebsd_at_allanjude.com>
Date: Tue, 15 Oct 2013 20:05:27 -0400
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_at_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
Received on Tue Oct 15 2013 - 22:05:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:43 UTC