Skip to contentSkip to conversation

lvm metadata

linux-lvm Benoit 3 participants 4 messages Nov 11, 2003 – Nov 12, 2003

lore
Share & tools
lore

Benoit

author
#0 lore raw

Hello,

I'm wondering why lvm metadata isn't stored directly into physical volumes. It would then be possible to read it without having acces to any filesystem. You may ask why. Then is my second question, why aren't vgscan and vgchange implemented in kernel and called at boot time ? This would make us be able to consider logical volumes as standard partitions and mount them easily, even as /

Thank you,
Benoit.

PS: Please cc-me with the anser as I'm not subscribed to the list.

#1 lore raw
Quoted 4 lines · Benoit

Hello,

I'm wondering why lvm metadata isn't stored directly into physical volumes. It would then be possible to read it without having acces to any filesystem.

It is.

Quoted 4 lines

You may ask why. Then is my second question, why aren't vgscan and vgchange implemented in kernel and called at boot time ? This would make us be able to consider logical volumes as standard partitions and mount them easily, even as /

That's what an initrd/initramfs is for ;)

Quoted 13 lines

Thank you,
Benoit.

PS: Please cc-me with the anser as I'm not subscribed to the list.

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
author
#2 lore raw
Quoted 9 lines · you
Quoted 6 lines · Benoit

Hello,

You may ask why. Then is my second question, why aren't vgscan and vgchange implemented in kernel and called at boot time ? This would make us be able to consider logical volumes as standard partitions and mount them easily, even as /

That's what an initrd/initramfs is for ;)

I think initrd is more a trick than the real place to do it. I mean, making a ramdisk needs of space, time to create it, and unnecessary initialisation things. This, only to do a vgscan, vgchange -a at boottime. Aren't those tools simple calls to system functions ?

Quoted 1 line
Quoted 1 line

PS: Please cc-me with the anser as I'm not subscribed to the list.

#3 lore raw
In reply to Benoit
Quoted 1 line · Benoit

You may ask why. Then is my second question, why aren't vgscan and vgchange implemented in kernel and called at boot time ? This would make us be able to consider logical volumes as standard partitions and mount them easily, even as /

because lvm tools are too big and complex to go into kernel space, they are better into userspace and invoked via initrd if you want to use lvm root.

L.

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \