Please shorten ZFS disk names.

Allan Jude freebsd at allanjude.com
Wed Oct 16 00:05:30 UTC 2013


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



More information about the freebsd-current mailing list