NetBSD-Bugs archive

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

kern/42799: LVM logical volumes fail to attach if 'pseudo-device dm' is compiled in th kernel



>Number:         42799
>Category:       kern
>Synopsis:       LVM logical volumes fail to attach if 'pseudo-device dm' is 
>compiled in th kernel
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 12 13:50:00 +0000 2010
>Originator:     Hugo Silva
>Release:        5.99.24
>Organization:
>Environment:
NetBSD 5.99.24 (GENERIC) #1: Thu Feb 4 13:18:12 WET 2010 
root@:/usr/obj/sys/arch/amd64/compile/GENERIC amd64 
>Description:
# lvm vgchange -a y fails on a kernel with pseudo-device dm compiled in:

**** KERNEL WITH dm BUILTIN ****

# modstat|grep dm
dm driver builtin 0 - -

# lvm vgchange -a y
Found duplicate PV NocTy4YPiwyYjss19YXT0mIEb59EeLTi: using /dev/rwd2f not 
/dev/rwd0f
0 logical volume(s) in volume group "xenvg0" now active
0 logical volume(s) in volume group "sysvg0" now active

dmesg output:
Unable to attach pseudo device dm/xenvg0-arcturus_sys0
Unable to attach pseudo device dm/xenvg0-procyon_sys0
Unable to attach pseudo device dm/xenvg0-procyon_data0
Unable to attach pseudo device dm/xenvg0-capella_sys0
Unable to attach pseudo device dm/xenvg0-capella_data0
Unable to attach pseudo device dm/xenvg0-sirius_sys0
Unable to attach pseudo device dm/sysvg0-root
Unable to attach pseudo device dm/sysvg0-tmp
Unable to attach pseudo device dm/sysvg0-var
Unable to attach pseudo device dm/sysvg0-usr
Unable to attach pseudo device dm/sysvg0-home
Unable to attach pseudo device dm/sysvg0-swap
Unable to attach pseudo device dm/sysvg0-usrlocal

# head /dev/xenvg0/arcturus_sys0
head: /dev/xenvg0/arcturus_sys0: Device not configured 



**** GENERIC kernel (dm dynamically loaded as a module) ****

# lvm vgchange -a y
Found duplicate PV NocTy4YPiwyYjss19YXT0mIEb59EeLTi: using /dev/rwd2f not 
/dev/rwd0f
6 logical volume(s) in volume group "xenvg0" now active
7 logical volume(s) in volume group "sysvg0" now active

# modstat | grep dm
dm driver filesys 0 20968 -

# head /dev/xenvg0/arcturus_sys0
&#65533;<&#65533;NetBSD401&#65533;&#65533;&#65533;&#65533;R&#65533;Z&#65533;&#65533;&#65533;&#65533;&#65533;f1&#65533;f&#65533;f;|tpf1&#65533;f1&#65533;&#65533;&#65533;&#65533;Ef&#65533;f.&#65533;}<&#65533;u
f&#65533;&#65533;tTf9&#65533;tO<<t<&#65533;uf&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;u&#65533;g&#65533;f&#65533;&#65533;uf&#65533;&#65533;f&#65533;f&#65533;&#65533;}&#65533;&#65533;&#65533;&#65533;f&#65533;&#65533;&#65533;w}tLf1&#65533;f&#65533;6&#65533;}&#65533;7&#65533;&#65533;u&#65533;M&#65533;u&#65533;Nf&#65533;.&#65533;}f&#65533;&#65533;uAR&#65533;&#65533;EP&#65533;&#65533;&#65533;&#65533;&#65533;B&#65533;&#65533;&#65533;U&#65533;&#65533;&#65533;?&#65533;&#65533;Z&#65533;&#65533;?&#65533;HZ9&#65533;t&#65533;&#65533;P&#65533;P}&#65533;z^&#65533;v&#65533;W}&#65533;p&#65533;&#65533;&#65533;&#65533;&#65533;f&#65533;>
&#65533;&#65533;&#65533;x&#65533;d}u&#65533;f&#65533;&#65533;&#65533;
`&#65533;&#65533;}&#65533;B&#65533;a&#65533;Z}r&#65533;&#65533;&#65533;`&#65533;&#65533;&#65533;Error
Disk readNot a bootxx imageNo NetBSD 
partition`&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;u&#65533;a&#65533;U&#65533;WEV&#65533;Xen
 Virtual ESDWEV&#65533;&#65533;&#65533; 
$&#65533;&#65533;&#65533;~&#65533;&#65533;&#65533;&#65533;&#65533;xx&#65533;%&#65533;&#65533;f&#65533;&#65533;&#65533;
 &#65533;L 
)&#65533;&#65533;&#65533;1&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;V&#65533;&#65533;RVR&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;ufZf[f&#65533;



>How-To-Repeat:
Compile dm in the kernel and try to enable lvs.
>Fix:
modload dm

However and due to another problem, Xen kernels are unable to load modules at 
this point in time- rendering LVM useless with Xen (builtin dm dm results in 
the problem in this PR, and modload'ing does not work) 



Home | Main Index | Thread Index | Old Index