Skip to contentSkip to conversation

Trouble switching from LVM2 to LVM1

linux-lvm Måns Rullgård 2 participants 3 messages Apr 16, 2003 – Apr 19, 2003

lore
Share & tools
lore
#0 lore raw

I decided to take linux 2.5 with devicemapper and lvm2 for a spin. Everything lvm related worked just fine. Now I want to boot linux 2.4.21-preX, without devicemapper. The problem is that vgscan runs without errors, but all the LV device nodes are created with minor 0. This way they all point to the same LV. That is not what I want. Is there any way to get them back, or am I stuck with device-mapper?

Signature · 2 lines
Måns Rullgård
[email protected]
#1 lore raw
Quoted 1 line · M?ns Rullg?rd

without errors, but all the LV device nodes are created with minor 0.

Some time back, LVM1 introduced persistent minors, so the minor number is stored on disk and remembered for subsequent activations.

In LVM2, persistent minors are optional and the default is *not* to use them, so the minor number may be different each time a device is activated, and no minor number is stored on disk.

IIRC Exporting the VG and then importing it again will reassign LVM1 minor numbers.

Alasdair

Signature · 1 line
[email protected]
#2 lore raw
Quoted 5 lines · Alasdair G Kergon
Quoted 1 line

without errors, but all the LV device nodes are created with minor 0.

Some time back, LVM1 introduced persistent minors, so the minor number is stored on disk and remembered for subsequent activations.

Quoted 7 lines

In LVM2, persistent minors are optional and the default is *not* to use them, so the minor number may be different each time a device is activated, and no minor number is stored on disk.

IIRC Exporting the VG and then importing it again will reassign LVM1 minor numbers.

OK, thanks. I patched my 2.4 kernel with device-mapper instead and it seems to be working, but it's nice to know what was going on.

Signature · 2 lines
Måns Rullgård
[email protected]