linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] VGDA Question
@ 2005-09-07 14:46 Rik Herrin
  2005-09-08  7:14 ` Luca Berra
  2005-09-14 20:20 ` Markus Baertschi
  0 siblings, 2 replies; 3+ messages in thread
From: Rik Herrin @ 2005-09-07 14:46 UTC (permalink / raw)
  To: linux-lvm

Hi,
 According to the LVM man page, the VGDA (Volume Group
Descriptor Area) holds the metadata responsible for
keeping information about the LVs.  However, it is
contained in the PVs.  Why does the VGDA contain both
LV descriptors and PE descriptors?  Shouldn't it just
have PE descriptors and leave the LV descriptors to
the volume group?  Also, when booting, what makes the
kernel know that there are VGs and LVs?  Does it look
at the type of the partition and if it detects that
it's a PV, extract the VGDA to help it build this
information?  If this is so, how does it deal with
entire harddisks.  For example, if I run the command:
pvcreate /dev/sdd
how would the kernel know that this is a PV?. 
Finally, where exactly is the VGDA information held?. 
Thanks for your time.


	
		
______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] VGDA Question
  2005-09-07 14:46 [linux-lvm] VGDA Question Rik Herrin
@ 2005-09-08  7:14 ` Luca Berra
  2005-09-14 20:20 ` Markus Baertschi
  1 sibling, 0 replies; 3+ messages in thread
From: Luca Berra @ 2005-09-08  7:14 UTC (permalink / raw)
  To: linux-lvm

On Wed, Sep 07, 2005 at 07:46:00AM -0700, Rik Herrin wrote:
>Hi,
> According to the LVM man page, the VGDA (Volume Group
>Descriptor Area) holds the metadata responsible for
>keeping information about the LVs.  However, it is
>contained in the PVs.  Why does the VGDA contain both
>LV descriptors and PE descriptors?  Shouldn't it just
>have PE descriptors and leave the LV descriptors to
i tried, but fail to understand your question.
The VGDA is the only place on disk where information necessary for
activation of the volume group and contained logical volume can be
stored permanetly.

>the volume group?  Also, when booting, what makes the
>kernel know that there are VGs and LVs?  Does it look
The kernel doesn't. lvm is setup by user space tools.

>Finally, where exactly is the VGDA information held?. 
>Thanks for your time.
at the beginning of the PV
regatds

-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] VGDA Question
  2005-09-07 14:46 [linux-lvm] VGDA Question Rik Herrin
  2005-09-08  7:14 ` Luca Berra
@ 2005-09-14 20:20 ` Markus Baertschi
  1 sibling, 0 replies; 3+ messages in thread
From: Markus Baertschi @ 2005-09-14 20:20 UTC (permalink / raw)
  To: LVM general discussion and development

Rik Herrin wrote:

>Hi,
> According to the LVM man page, the VGDA (Volume Group
>Descriptor Area) holds the metadata responsible for
>keeping information about the LVs.  However, it is
>contained in the PVs.  Why does the VGDA contain both
>LV descriptors and PE descriptors?
>
Because there are LV's with PE's and both types of information must be 
stores somewhere.

>  Shouldn't it just
>have PE descriptors and leave the LV descriptors to
>the volume group ?
>
The VGDA is where the volume group information is stored. The LV info is 
therefore exactly where it belongs.

>  Also, when booting, what makes the
>kernel know that there are VGs and LVs?
>
The vgscan command is run during boot (from a rc file) and it detects 
the volumegroups and makes them available.

>  Does it look
>at the type of the partition and if it detects that
>it's a PV, extract the VGDA to help it build this
>information?
>
Yes

>  If this is so, how does it deal with
>entire harddisks.  For example, if I run the command:
>pvcreate /dev/sdd
>how would the kernel know that this is a PV?. 
>  
>
If you use the enire harddisk, then there is no traditional partition 
table. In this case the vgscan command looks if the entire disk is a PV.

>Finally, where exactly is the VGDA information held?.
>
At the beginning of the disk/partition you created with pvcreate.

Markus

-- 
  Markus Baertschi             Phone: ++41 (21) 807 1677
  Bas du Ross� 14b             Fax  : ++41 (21) 807 1678
  CH-1163, Etoy                Email: markus@markus.org
  Switzerland                  Homepage: www.markus.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-09-14 20:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-07 14:46 [linux-lvm] VGDA Question Rik Herrin
2005-09-08  7:14 ` Luca Berra
2005-09-14 20:20 ` Markus Baertschi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).