1848539 Members
6544 Online
104033 Solutions
New Discussion

Re: lvm

 
Sajjad Sahir
Honored Contributor

lvm

how to initilize lvm on itanium and how large lvm header of a non boot disc, what is stored in lvm
4 REPLIES 4
Geoff Wild
Honored Contributor

Re: lvm

Initialize?

pvcreate

vgcreate

lvcreate

man on those commands for more info

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Geoff Wild
Honored Contributor

Re: lvm

Some info on headers here:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1201026655072+28353475&threadId=1190053

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Ramesh S
Esteemed Contributor

Re: lvm

Hi sajjad

Just adding some more with Geoff's response,

The header size of a non-bootable disk is not fixed. It depends on the VG configuration parameters PVs/VG (-p max_pv), PEs/PV (-e max_pe) and LVs/VG (-l max_lv), but it is usually smaller. The VGâ s VGRA must not be larger than a single extent..

NOTE: Itanium systems (UX 11.20, 11.22, 11.23) have a 100MB EFI partition at the beginning of the disk.

How the size of the VGRA is calculated

The VGRA size of any non-bootable disk must fit into the size of a single PE. For a bootable disk the VGRA needs to start at offset 2144K while user data always starts at offset 2912K. Due to these constraints the maximum VGRA size of bootable disks is even more restricted as for regular disks.
However, it is good to know how the size of the VGRA depends on the VGâ s configuration at creation time. The folowing set or formulas calculates vgra_len in KB.
vgda_len = (ROUNDUP (16 * max_lv, 1024) + (max_pv * ROUNDUP (16 + 4 * max_pe, 1024)) ) / 1024 + 2; vgsa_len = ROUNDUP (36 + 12 * ROUNDUP (max_pv, 32) + ROUNDUP(max_pe,8) * max_pv / 8, 1024) / 1024; mcr_len = 8; vgra_len = 2 * (ROUNDUP (vgda_len + vgsa_len, 8) + mcr_len);
8/49


Thanks & Regards

Ramesh
Michael Steele_2
Honored Contributor

Re: lvm

Every LVM header is the size of one PE / LE. That's Physical Extent / Logical extent. 4 MB is the default and I assume this is your size but use vgdisplay -v to double check.

I'm confused about what you mean by 'initalize'. Are you already using VXVM? Because usually people convert from LVM to VXVM. But here's a link about converting from VXVM to LVM via ignite:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1065590&admit=109447626+1201384831349+28353475
Support Fatherhood - Stop Family Law