linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Basic Questions on LVM
@ 2001-01-16 12:02 sherlock holmes
  0 siblings, 0 replies; 4+ messages in thread
From: sherlock holmes @ 2001-01-16 12:02 UTC (permalink / raw)
  To: linux-lvm

Hi,
I am 1 month old to LVM and have some basic doubts in
LVM code.

1.During initialisation y is it LVM is registered both
as a block and char device where as according to me it
is supposed to be a block device driver and when one
does the pvcreate,vgcreate..etc it calls the ioctls of
the char device of LVM.

2.what is exactly the control flow when and read/write
request is given to a file residing on the LVM
partition...(ie where and how exactly the mapping
tables exist..?)

3.what is the importance of VGDA and vgscan?

4.during boot up time what are checks/modification
made by the kernel with respect to the LVM/logical
volumes?

5.moreover to what extent is KIOBUF supported on linux
2.4. Can someone give me the workaround to check for
KIOBUF working..

thanks,
Sherlock.


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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

* Re:[linux-lvm] Basic Questions on LVM
@ 2001-01-24 10:44 sherlock holmes
  2001-01-24 18:01 ` [linux-lvm] " Andreas Dilger
  0 siblings, 1 reply; 4+ messages in thread
From: sherlock holmes @ 2001-01-24 10:44 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 300 bytes --]

hi,
I had sent these questions with no response till
date...can anyone let me know if there is an answer to
it?
Note: forwarded message attached.


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/

[-- Attachment #2: Type: message/rfc822, Size: 2829 bytes --]

From: sherlock holmes <sherlock_ind@yahoo.com>
To: linux-lvm@sistina.com
Subject: [linux-lvm] Basic Questions on LVM
Date: Tue, 16 Jan 2001 04:02:43 -0800 (PST)
Message-ID: <20010116120243.4935.qmail@web12007.mail.yahoo.com>

Hi,
I am 1 month old to LVM and have some basic doubts in
LVM code.

1.During initialisation y is it LVM is registered both
as a block and char device where as according to me it
is supposed to be a block device driver and when one
does the pvcreate,vgcreate..etc it calls the ioctls of
the char device of LVM.

2.what is exactly the control flow when and read/write
request is given to a file residing on the LVM
partition...(ie where and how exactly the mapping
tables exist..?)

3.what is the importance of VGDA and vgscan?

4.during boot up time what are checks/modification
made by the kernel with respect to the LVM/logical
volumes?

5.moreover to what extent is KIOBUF supported on linux
2.4. Can someone give me the workaround to check for
KIOBUF working..

thanks,
Sherlock.


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/
_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm

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

* Re: [linux-lvm] Basic Questions on LVM
  2001-01-24 10:44 Re:[linux-lvm] Basic Questions on LVM sherlock holmes
@ 2001-01-24 18:01 ` Andreas Dilger
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Dilger @ 2001-01-24 18:01 UTC (permalink / raw)
  To: linux-lvm

Sherlock writes:
> 1.During initialisation y is it LVM is registered both
> as a block and char device where as according to me it
> is supposed to be a block device driver and when one
> does the pvcreate,vgcreate..etc it calls the ioctls of
> the char device of LVM.

The LVM char device is used to control the kernel LVM.  This is needed
because there may not be any block devices (LVs) yet.  There is 1 char
device per VG.

> 2.what is exactly the control flow when and read/write
> request is given to a file residing on the LVM
> partition...(ie where and how exactly the mapping
> tables exist..?)

The mapping tables are read from disk by the user tools, and sent to the
kernel when a VG is activated.  The mapping tables are kept in RAM and
are never changed by the kernel.  The block remapping is done inside
ll_rw_block(), and is just a small amount of math.

> 3.what is the importance of VGDA and vgscan?

The VGDA is the Volume Group Descriptor Area, and it is where the above
mapping tables are stored on disk, along with other PV, VG, LV info.
The vgscan command reads the VGDA from the disk.

> 4.during boot up time what are checks/modification
> made by the kernel with respect to the LVM/logical
> volumes?

Almost nothing is done by the kernel, except the block remapping.  Most
of the work is done by the user tools.

> 5.moreover to what extent is KIOBUF supported on linux
> 2.4. Can someone give me the workaround to check for
> KIOBUF working..

The KIOBUF code is only used for LVM snapshots.  The normal LVM block
I/O code does not use KIOBUFs.

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

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

* Re: [linux-lvm] Basic Questions on LVM
@ 2001-01-26  0:35 Andreas Dilger
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Dilger @ 2001-01-26  0:35 UTC (permalink / raw)
  To: Linux LVM mailing list

Sherlock writes:
> 1.During initialisation y is it LVM is registered both
> as a block and char device where as according to me it
> is supposed to be a block device driver and when one
> does the pvcreate,vgcreate..etc it calls the ioctls of
> the char device of LVM.

The LVM char device is used to control the kernel LVM.  This is needed
because there may not be any block devices (LVs) yet.  There is 1 char
device per VG.

> 2.what is exactly the control flow when and read/write
> request is given to a file residing on the LVM
> partition...(ie where and how exactly the mapping
> tables exist..?)

The mapping tables are read from disk by the user tools, and sent to the
kernel when a VG is activated.  The mapping tables are kept in RAM and
are never changed by the kernel.  The block remapping is done inside
ll_rw_block(), and is just a small amount of math.

> 3.what is the importance of VGDA and vgscan?

The VGDA is the Volume Group Descriptor Area, and it is where the above
mapping tables are stored on disk, along with other PV, VG, LV info.
The vgscan command reads the VGDA from the disk.

> 4.during boot up time what are checks/modification
> made by the kernel with respect to the LVM/logical
> volumes?

Almost nothing is done by the kernel, except the block remapping.  Most
of the work is done by the user tools.

> 5.moreover to what extent is KIOBUF supported on linux
> 2.4. Can someone give me the workaround to check for
> KIOBUF working..

The KIOBUF code is only used for LVM snapshots.  The normal LVM block
I/O code does not use KIOBUFs.

Cheers, Andreas

PS - resending because my mail was broken, sorry if you get it twice
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

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

end of thread, other threads:[~2001-01-26  0:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-24 10:44 Re:[linux-lvm] Basic Questions on LVM sherlock holmes
2001-01-24 18:01 ` [linux-lvm] " Andreas Dilger
  -- strict thread matches above, loose matches on Subject: below --
2001-01-26  0:35 Andreas Dilger
2001-01-16 12:02 sherlock holmes

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).