Skip to contentSkip to conversation

newbie question

linux-lvm shri krishnan 2 participants 2 messages Jun 25, 2002 – Jun 26, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

I was wondering if linux-lvm ever requires unpartitioned space at the end of a disk for storing volume metadata, similar to Windows dynamic disk. I've skimmed the source code a bit, and from what I can tell, it seems that metadata is always stored at the start of each disk partition, but I wasn't sure if this is always the case.

Thanks,

--shri

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

#1 lore raw
Quoted 7 lines · shri krishnan

Hi,

I was wondering if linux-lvm ever requires unpartitioned space at the end of a disk for storing volume metadata, similar to Windows dynamic disk. I've skimmed the source code a bit, and from what I can tell, it seems that metadata is always stored at the start of each disk partition, but I wasn't sure if this is always the case.

The ondisk metadata in LVM1 is *always* stored at the very start of each block device used as a physical volume. Depending on the extent size (see "vgchange -s") and the size of the physical volume the metadata uses aproximatly between some 100KB and a couple of MB. You can check this with "pvdata -PP /dev/PVDev" which will display the various parts of the LVM1 metadata or so called VGDA (Volume Group Descriptor Area) with their offsets and sizes.

LVM2 enhances this by supporting multiple ondisk formats and therefore this could eventually change things in the future ie. putting metadata redundantly at the beginning and the end of a physical volume.

Quoted 16 lines

Thanks,

--shri

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-