1825775 Members
1889 Online
109687 Solutions
New Discussion

Info on LVM

 
SOLVED
Go to solution
Vinesh Dhevcharran
Occasional Advisor

Info on LVM

I need some info. on LVM, please.

I can get a list of the volume groups with vgdisplay and I can get a list of the logical volumes with lvdisplay

1. What command gives me a list of all the physical disks in a volume group?
2. How can I check if the disks in the volume group are mirriored or not?
3. Can you point me to some LVM docs that are brief enough to give me an understanding of LVM and how to use it?

Many Thanks
Vinesh
4 REPLIES 4
Balaji N
Honored Contributor
Solution

Re: Info on LVM

Hi,

1.
vgdisplay -v
and see the PV Name.
or
strings /etc/lvmtab

2. VG's are not mirrored. LV's are mirrored. Correct me if i am worng.
lvdisplay and see the Mirror Copies column.


3. Not pretty sure but there is one "HP-UX System Administration Tasks" manual from HP which gives some good amount of info about LVM. docs.hp.com might be ur friend.

HTH
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Paula J Frazer-Campbell
Honored Contributor

Re: Info on LVM

Hi

1. What command gives me a list of all the physical disks in a volume group?

Use pvdisplay -v

2. How can I check if the disks in the volume group are mirriored or not?

Use lvdisplay -v

E.G.

--- Logical volumes ---
LV Name /dev/avro/avro
VG Name /dev/avro
LV Permission read/write
LV Status available/syncd
Mirror copies 2
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 17356
Current LE 4339
Allocated PE 13017
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default


The manual is the bst starting point on lvm.


Paula
If you can spell SysAdmin then you is one - anon
Tom Geudens
Honored Contributor

Re: Info on LVM

Hi Vinesh,
1. vgdisplay -v
2. lvdisplay -v can give you this
Note that it's not disks that are mirrored, but logical volumes !
3. I would NOT go for a brief doc Vinesh, this is one thing you want to understand completely !
A life ? Cool ! Where can I download one of those from ?
Bill McNAMARA_1
Honored Contributor

Re: Info on LVM

why don't you just use SAM
disk and File Systems section.

For beginners to LVM, it useful.

Later,
Bill
It works for me (tm)