[dm-devel] Controlling the sequence of dm-* creation

Peter Rajnoha prajnoha at redhat.com
Wed Nov 28 10:45:38 UTC 2012


On 11/28/2012 11:07 AM, Zdenek Kabelac wrote:
> Dne 28.11.2012 01:52, Lupin Deterd napsal(a):
>> Hi,
>>
>> Is there a way to control how a dm- # devices created? e.g by udev or
>> multipath?
>>
>> Let say, I wanted to have my dm- devices created for multipath devices
>> to start only on dm-7 to dm-9, instead of using lower numbered
>> dm-[0-8] as it's been mapped to a different lun. Is this possible?
> 
> You cannot control the order of 'dm-X' devices (they are created in
> kernel).
> 
> Actually you should never ever use these names in userspace anywhere -
> since they are pretty random.
> 
> You should reference your devices via UUID or VG/LV names in case you
> are using lvm.
> 

...or just the device-mapper name (/dev/mapper/*). Also, node rename
is not supported by udev anymore, so it's not even possible these days
(the only exception are network devices).

Peter




More information about the dm-devel mailing list