From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MlLs2-0008UL-RW for mharc-grub-devel@gnu.org; Wed, 09 Sep 2009 08:01:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlLrt-0008Sd-O9 for grub-devel@gnu.org; Wed, 09 Sep 2009 08:01:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MlLro-0008R3-QI for grub-devel@gnu.org; Wed, 09 Sep 2009 08:01:45 -0400 Received: from [199.232.76.173] (port=55866 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlLro-0008Qs-3d for grub-devel@gnu.org; Wed, 09 Sep 2009 08:01:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33326) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MlLrn-0003oG-Ge for grub-devel@gnu.org; Wed, 09 Sep 2009 08:01:39 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n89C1cTF015304 for ; Wed, 9 Sep 2009 08:01:38 -0400 Received: from alatyr.englab.brq.redhat.com (alatyr.englab.brq.redhat.com [10.34.33.30]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n89C1bVZ020549 for ; Wed, 9 Sep 2009 08:01:38 -0400 Message-ID: <4AA79920.9030506@redhat.com> Date: Wed, 09 Sep 2009 14:01:36 +0200 From: Peter Rajnoha User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3 MIME-Version: 1.0 To: The development of GRUB 2 References: <4AA77CFD.3000806@redhat.com> <1252491992.2998.11.camel@fz.local> In-Reply-To: <1252491992.2998.11.camel@fz.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: Changes in device-mapper and LVM2 that can affect grub's functionality X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Sep 2009 12:01:46 -0000 On 09/09/2009 12:26 PM, Felix Zielcke wrote: > What's the point in having the /dev/dm-X devices at all? > Does anything use them? ...nothing uses them and nothing ever should! These names are not stable (the number depends on the activation sequence of those devices). Not usable for anything, really, just to keep udev guys happy :) Actually, we wanted to abandon these nodes first, so they would never be visible under /dev. And keep the old way instead. But when we discussed this with Kay Sievers from udev: "In general we do not want any unneeded disconnect from kernel names and /dev names, and dm block devices should stay as /dev/dm-* device nodes." "Please do not rename kernel devices, they should match the kernel names. Only create SYMLINK+= to the kernel names..." "Sure, but there is still not enough reason to be different from the kernel name. You support rename, that should never happen, that a device node needs to be renamed, if the kernel does not change the device name." "Sounds fine, as long as the /dev names match the kernel devices." "There is the rule, that kernel block device names and /dev names match, and the kernel log shows device names which translate directly to the primary device nodes. DM is not an exception here, all block device behave like that , and we like to continue that, and not make needless rules just to be special here." ...and so on and on... (the whole discussion is at http://markmail.org/message/bj4zkjo2peeocnhq) > Currently all symlinks are ignored. > If we use the target of the /dev/mapper/* symlinks, i.e. a /dev/dm-X > device this would at least with the default Debian initrd not work and I > doubt the responding persons for this will change this ever. Even > root=UUID= isn't working for LVM devices, because only the root LV is > activated and not all inside the initrd. > > If we would use the symlink itself for root= it could break if there > were symlinks which aren't inside the initrd too. > > I personally don't like this change at all. > Why not just remove the dm-X devices and make the /dev/mapper/ ones the > only and real ones? ...we would like to, but... > Maybe the udev maintainers just prefer cryptic numbers for every real > device and only accept symlinks for descriptive ones. Yes, that's the case. OK, I'll try to talk with Kay again and discuss all the problems that this "udev law" brings in real-life situations for dm devices and everything using it. I just needed your opinion, too, thanks! So maybe we have one more argument against such layout for udev guys... Peter