From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Rajnoha Subject: Re: Controlling the sequence of dm-* creation Date: Wed, 28 Nov 2012 11:45:38 +0100 Message-ID: <50B5EB52.3010800@redhat.com> References: <50B5E26F.7040501@redhat.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <50B5E26F.7040501@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development Cc: Lupin Deterd List-Id: dm-devel.ids 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