[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#690246: debian-installer: initial install reboot failure to find lvm devices when hostname has a - in it



On Thu, Oct 11, 2012 at 10:39:40AM -0400, Eli wrote:
> Package: debian-installer
> Version: 6.0.1a
> Severity: important
> Tags: d-i
> 
> Standard debian 6 install, hostname has a dash in it, ie this-name. The lvm volume group then uses this-name
> for the volume group name. Install goes fine, but on reboot it dumps into initram shell saying it can't
> find root /dev/mapper/this-name-root. Not sure where the 2nd dash came from. lvm lvscan shows the volumes
> as inactive. lvchange -a y this-name/root activates the volume and creates /dev/mapper/this--name-root.
> System still won't boot 'cause it's confused about the mapper device name.
> 
> -- System Information:
> Debian Release: 6.0.6
>   APT prefers stable
>   APT policy: (800, 'stable'), (500, 'stable-updates')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 3.2.0-0.bpo.3-amd64 (SMP w/16 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> The information transmitted in this email and any of its attachments is intended only for the person or entity to which it is addressed and may contain GeneDx proprietary information, which is privileged, confidential, or subject to copyright belonging to GeneDx. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this in error, please contact the sender immediately and delete and destroy the communication and all of the attachments you have received and all copies thereof.

The method lvm uses for naming is:

Use volumegroupname-volumename

if the names have dashes in them, double up the dashes so that the only
place with a single dash is the one seperating the volumegroupname from
the volumename.

I think they do this to make sure hey stay unique.

After all if you had a volume group named 'a-b' with a volume named 'c'
and a nother volume group named 'a' with a volume named 'b-c' you would
end up with:

a-b-c for both of them if you didn't do the doubling thing.  Instead you get get:

a--b-c (VG a-b with LV c)
a-b--c (VG A with LV b-c)

So the installer must double the dash in any volumegroup name or
volumename when generating the name in /dev/mapper to expect.

-- 
Len Sorensen


Reply to: