From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zdenek Kabelac Subject: Re: Controlling the sequence of dm-* creation Date: Wed, 28 Nov 2012 11:07:43 +0100 Message-ID: <50B5E26F.7040501@redhat.com> References: Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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 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. Zdenek