Operating System - HP-UX
1751816 Members
5825 Online
108781 Solutions
New Discussion юеВ

Re: how to check vg version in v2?

 
sokolova
Advisor

how to check vg version in v2?

how to check vg version in v2?
13 REPLIES 13
Jupinder Bedi
Respected Contributor

Re: how to check vg version in v2?

Check minor numbers for /dev/*/group
files.

# ll /dev/*/group

The minor number for volume group version 1.0
is ALWAYS 64.

The minor number for volume group version 2.x
is ALWAYS 128




All things excellent are as difficult as they are rare
Kapil Jha
Honored Contributor

Re: how to check vg version in v2?

#lvmadm -t

would tell you version.

While creating vg you can specify

vgcreate -V 2.0 -s X /dev/vgXX /dev/disk/diskXX

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Jupinder Bedi
Respected Contributor

Re: how to check vg version in v2?

lvmadm command will not work in v2 it wil only work in v3
All things excellent are as difficult as they are rare

Re: how to check vg version in v2?

you don't need to check the lvm version in 11iv2 - it only has lvm v1.0

HTH

Duncan

I am an HPE Employee
Accept or Kudo
AVV
Super Advisor

Re: how to check vg version in v2?

Hi ,

HPUX 11iV3 does support both lvm version but v2 does not and only 1.0
Amitav
Frequent Advisor

Re: how to check vg version in v2?

Hi,
Go thru the below link which will end all ur queries...

http://docs.hp.com/en/6054/LVM_Limits_White_Paper_V4.pdf
Torsten.
Acclaimed Contributor

Re: how to check vg version in v2?

hp-ux 11.23 can only handle LVMv1, 11.31 can handle LVMv2.0 or 2.1;

example:

# vgdisplay vgtestl2
--- Volume groups ---
VG Name /dev/vgtestl2
VG Write Access read/write
VG Status available
Max LV 511
Cur LV 1
Open LV 1
Max PV 511
Cur PV 70
Act PV 70
Max PE per PV 2097152
VGDA 140
PE Size (Mbytes) 8
Total PE 1123123
Alloc PE 40
Free PE 1123083
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 2.0 <<====
VG Max Size 16t
VG Max Extents 2097152

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
AVV
Super Advisor

Re: how to check vg version in v2?

Hi,

How about print_manifest ? Does it show the version of the same. I dont have console to test the same now :)
madhuchakkaravarthy
Trusted Contributor

Re: how to check vg version in v2?

check with vgdisplay ,, even if it is v2 or v3 u can find it in vgdisplay ..

in v3 u can use lvmadm to find the version.

vgdisplay -v [vgname]
--- Volume groups ---
VG Name /dev/vg151
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1016
VGDA 2
PE Size (Mbytes) 32
Total PE 255
Alloc PE 255
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
============================>
VG Version 1.0 ============================>
VG Max Size 508g
VG Max Extents 16256

regards

MC