FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 12-16-2008, 01:37 PM
Eugene Paskevich
 
Default Bug#508906: Doesn't detect LVM for root=/dev/dm-X

Package: initramfs-tools
Version: 0.92l
Severity: important

--- Please enter the report below this line. ---
Let me start with some additional relevant info.

The root fs is located on LVM and is described in
/etc/fstab with LABEL= notation, which leads
to the following mount output for root filesystem:

> mount | grep "on / "
/dev/dm-0 on / type ext3 (rw,noatime,errors=remount-ro)

> e2label /dev/dm-0
ROOT

The /dev/dm-0 itself isn't a symlink to /dev/mapper/, therefore root var
remains /dev/dm-0 after readlink -f attempt.

> ls -l /dev/dm-0
brw-rw---- 1 root disk 254, 0 Dec 15 15:46 /dev/dm-0

All this consequently leads to failure in detecting the LVM root.

Please let me know if any additional info is needed.

--- System information. ---
Architecture: i386
Kernel: Linux 2.6.26-1-686

Debian Release: 5.0
500 unstable www.debian-multimedia.org
500 unstable ftp.de.debian.org
500 unstable debian.ejohansson.se
500 unstable deb.opera.com
500 testing security.debian.org

--- Package information. ---
Depends (Version) | Installed
==================================-+-=============
klibc-utils (>= 1.5.9-1) | 1.5.12-2
cpio | 2.9-14
module-init-tools | 3.4-1
udev (>= 0.086-1) | 0.125-7
findutils (>= 4.2.24) | 4.4.0-2

--- Output from package bug script ---
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-2.6.26-1-686 root=/dev/mapper/VG000-LV000 ro vga=773

-- /proc/filesystems
ext3

-- lsmod
Module Size Used by
nfs 213896 2
lockd 54248 1 nfs
nfs_acl 2912 1 nfs
sunrpc 162144 15 nfs,lockd,nfs_acl
i915 25280 2
drm 65256 3 i915
autofs4 16420 1
ipv6 235300 29
rfkill_input 3520 0
loop 12748 0
ide_cd_mod 27652 0
cdrom 30176 1 ide_cd_mod
ata_generic 4676 0
arc4 1824 2
usbhid 35904 0
ecb 2624 2
crypto_blkcipher 15236 1 ecb
hid 33184 1 usbhid
ff_memless 4392 1 usbhid
b43 110748 0
rfkill 5652 3 rfkill_input,b43
rng_core 3940 1 b43
mac80211 139680 1 b43
hci_usb 12252 0
bluetooth 44900 1 hci_usb
cfg80211 21576 1 mac80211
led_class 3908 1 b43
joydev 8480 0
input_polldev 3752 1 b43
piix 6568 0 [permanent]
snd_hda_intel 324248 0
snd_pcm_oss 32800 0
snd_pcm 62596 2 snd_hda_intel,snd_pcm_oss
snd_mixer_oss 12320 1 snd_pcm_oss
pcspkr 2432 0
ide_pci_generic 3908 0 [permanent]
serio_raw 4740 0
psmouse 32336 0
ide_core 96168 3 ide_cd_mod,piix,ide_pci_generic
ssb 33476 1 b43
snd_seq_dummy 2660 0
pcmcia 29548 2 b43,ssb
pcmcia_core 31892 3 b43,ssb,pcmcia
iTCO_wdt 9508 0
snd_seq_oss 24992 0
firmware_class 6816 2 b43,pcmcia
snd_seq_midi_event 6432 1 snd_seq_oss
snd_seq 41456 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_timer 17800 2 snd_pcm,snd_seq
snd_seq_device 6380 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd 45604 8 snd_hda_intel,snd_pcm_oss,snd_pcm,snd_mixer_oss,sn d_seq_oss,snd_seq,snd_timer,snd_seq_device
soundcore 6368 1 snd
container 3456 0
uhci_hcd 18672 0
snd_page_alloc 7816 2 snd_hda_intel,snd_pcm
ehci_hcd 28428 0
e1000e 84612 0
battery 10180 0
wmi 6440 0
ac 4196 0
usbcore 118160 5 usbhid,hci_usb,uhci_hcd,ehci_hcd
button 6096 0
intel_agp 22332 1
agpgart 28776 3 drm,intel_agp
evdev 8000 0
ext3 105512 2
jbd 39444 1 ext3
mbcache 7108 1 ext3
dm_mirror 15104 0
dm_log 8452 1 dm_mirror
dm_snapshot 14340 0
dm_mod 46184 8 dm_mirror,dm_log,dm_snapshot
sd_mod 22200 3
thermal 15228 0
processor 32576 3 thermal
fan 4164 0
thermal_sys 10856 3 thermal,processor,fan
ahci 23176 2
libata 140384 2 ata_generic,ahci
scsi_mod 129356 2 sd_mod,libata
dock 8304 1 libata

-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook = update-grub

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto


--
Eugene Paskevich | *==)----------- | Plug me into
eugene@raptor.kiev.ua | -----------(==* | The Matrix



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-16-2008, 02:19 PM
maximilian attems
 
Default Bug#508906: Doesn't detect LVM for root=/dev/dm-X

On Tue, Dec 16, 2008 at 04:37:01PM +0200, Eugene Paskevich wrote:
> Let me start with some additional relevant info.
>
> The root fs is located on LVM and is described in
> /etc/fstab with LABEL= notation, which leads
> to the following mount output for root filesystem:
>
> > mount | grep "on / "
> /dev/dm-0 on / type ext3 (rw,noatime,errors=remount-ro)

just as quick head on.
this seems pretty much related to #489008

haven't had the time yet to look at it, so patches are welcome

just uploaded 0.92m with bunch of fixes, so that one is on todo
for next days.

kind regards

--
maks



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-16-2008, 02:44 PM
"Eugene Paskevich"
 
Default Bug#508906: Doesn't detect LVM for root=/dev/dm-X

On Tue, 16 Dec 2008 17:19:31 +0200, maximilian attems <max@stro.at> wrote:


On Tue, Dec 16, 2008 at 04:37:01PM +0200, Eugene Paskevich wrote:

Let me start with some additional relevant info.

The root fs is located on LVM and is described in
/etc/fstab with LABEL= notation, which leads
to the following mount output for root filesystem:

> mount | grep "on / "
/dev/dm-0 on / type ext3 (rw,noatime,errors=remount-ro)


just as quick head on.
this seems pretty much related to #489008


Unfortunately, it's not really related to that bug.
My LABEL is ROOT, so no parsing problem.
On the other hand initramfs-tools rely on mount command output which doesn't show labels in my case.


haven't had the time yet to look at it, so patches are welcome


A simple patch in attachment did the trick.

--
Eugene Paskevich | *==)----------- | Plug me into
eugene@raptor.kiev.ua | -----------(==* | The Matrix
 
Old 12-16-2008, 03:39 PM
maximilian attems
 
Default Bug#508906: Doesn't detect LVM for root=/dev/dm-X

On Tue, 16 Dec 2008, Eugene Paskevich wrote:

>
> Unfortunately, it's not really related to that bug.
> My LABEL is ROOT, so no parsing problem.
> On the other hand initramfs-tools rely on mount command output which doesn't show labels in my case.

ah misunderstoody you, the bug description was totaly off.
what you were chasing is a MODULES=dep corner case.
right there more output from the box is needed, to start with:
ls /sys/block




--
maks



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-16-2008, 03:46 PM
"Eugene Paskevich"
 
Default Bug#508906: Doesn't detect LVM for root=/dev/dm-X

On Tue, 16 Dec 2008 18:39:06 +0200, maximilian attems <max@stro.at> wrote:


On Tue, 16 Dec 2008, Eugene Paskevich wrote:



Unfortunately, it's not really related to that bug.
My LABEL is ROOT, so no parsing problem.
On the other hand initramfs-tools rely on mount command output which
doesn't show labels in my case.


ah misunderstoody you, the bug description was totaly off.
what you were chasing is a MODULES=dep corner case.
right there more output from the box is needed, to start with:
ls /sys/block


Oh, indeed, sorry for not mentioning it.

Here is the /sys/block contents:


ls -l /sys/block/

total 0
drwxr-xr-x 5 root root 0 Dec 16 18:43 dm-0/
drwxr-xr-x 5 root root 0 Dec 16 18:43 dm-1/
drwxr-xr-x 6 root root 0 Dec 16 18:43 hda/
drwxr-xr-x 5 root root 0 Dec 16 18:43 loop0/
drwxr-xr-x 5 root root 0 Dec 16 18:43 loop1/
drwxr-xr-x 5 root root 0 Dec 16 18:43 loop2/
drwxr-xr-x 5 root root 0 Dec 16 18:43 loop3/
drwxr-xr-x 5 root root 0 Dec 16 18:43 loop4/
drwxr-xr-x 5 root root 0 Dec 16 18:43 loop5/
drwxr-xr-x 5 root root 0 Dec 16 18:43 loop6/
drwxr-xr-x 5 root root 0 Dec 16 18:43 loop7/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram0/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram1/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram10/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram11/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram12/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram13/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram14/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram15/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram2/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram3/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram4/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram5/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram6/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram7/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram8/
drwxr-xr-x 5 root root 0 Dec 16 18:43 ram9/
drwxr-xr-x 8 root root 0 Dec 16 18:43 sda/


--
Eugene Paskevich | *==)----------- | Plug me into
eugene@raptor.kiev.ua | -----------(==* | The Matrix



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 12-17-2008, 10:47 AM
maximilian attems
 
Default Bug#508906: Doesn't detect LVM for root=/dev/dm-X

On Tue, 16 Dec 2008, Eugene Paskevich wrote:

> Here is the /sys/block contents:

thanks indeed so your patch makes sense, applied it in slightly different
form to initramfs-tools repo. it is not release critical so i guess it
wont make it for lenny (if release happen soon .
http://git.debian.org/?p=kernel/initramfs-tools.git;a=summary

kind regards

--
maks



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 07:21 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org