System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the volume group version of HPUX 10.20, 11.00, 11.11, 11.21 and 11.31

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

How to find the volume group version of HPUX 10.20, 11.00, 11.11, 11.21 and 11.31

Hi All

Please give the answer for each version (if it differs from version to version).
8 REPLIES
James R. Ferguson
Acclaimed Contributor
Solution

Re: How to find the volume group version of HPUX 10.20, 11.00, 11.11, 11.21 and 11.31

Hi:

Only LVM Version-1 applies to 10.20, 11.00, 11.11, 11.23 (NOT 10.21 as you wrote). LVM Version 2.0 and 2.1 are introduced with 11.31 in its March 2008 release and in the September 2008 release update, respectively.

http://docs.hp.com/en/lvm-v2/L2_whitepaper_8.pdf

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: How to find the volume group version of HPUX 10.20, 11.00, 11.11, 11.21 and 11.31

Try what:

# what /usr/sbin/lvcreate
/usr/sbin/lvcreate:
$Revision: @(#) lvm R11.11_BL2007_0320_1 PATCH_11.11 PHCO_35955


Pete

Pete
VK2COT
Honored Contributor

Re: How to find the volume group version of HPUX 10.20, 11.00, 11.11, 11.21 and 11.31

Hello,

a) If you ryun anything older than HP-UX 11.31,
you do not have a choice. VG version is 1.0.

b) If you run HP-UX 11.31, you have three
choices for VG versions:

1.0
2.0
2.1

At the present time, VG version 2.x cannot be
used for boot (coming next year).

To check what you have, here are several tricks for HP-UX 11.31:

1. Run:

# lvmadm -l

It shows all types of volume groups
configured on your server.

2. Manual method:

# strings /etc/lvmtab /etc/lvmtab_p

Note that /etc/lvmtab_p is the file
that VG versions 2.x use!!!

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

Cheers,

VK2COT

VK2COT - Dusan Baljevic
VK2COT
Honored Contributor

Re: How to find the volume group version of HPUX 10.20, 11.00, 11.11, 11.21 and 11.31

And one more option:

4. Run:

# vgdisplay -v

It shows the VG Version too.

VK2COT
VK2COT - Dusan Baljevic
Andrew Rutter
Honored Contributor

Re: How to find the volume group version of HPUX 10.20, 11.00, 11.11, 11.21 and 11.31

hi,

vgdisplay output will tell you for each vg

to see what your system supports, if it has the patch for 2.1 for example use

#lvmadm -t

this will list your versions installed and there options

boot disks can only be lvm 1.0

Andy
senthil_kumar_1
Super Advisor

Re: How to find the volume group version of HPUX 10.20, 11.00, 11.11, 11.21 and 11.31

Hi All,

I found in some docs that in VG verion 1.0 (10.20, 11.00 and 11.11) the default PEs per PV is - 1016, but if we are adding the PV having PEs more than 1016 (default PEs), for example PV size is 10GB and if PE size is 4MB then Max PEs per PV is 2560 (this value will be taken automatically as Max PEs per PV for all the PVs if we are adding here after.

Am i correct?
James R. Ferguson
Acclaimed Contributor

Re: How to find the volume group version of HPUX 10.20, 11.00, 11.11, 11.21 and 11.31

Hi (again) Senthil:

With regard to your last query, yes. Planning your volume group geometry is very important. In the absence of a supported 'vgmodify' command (prior to 11.23; or in 11.23 with patches) you can find that expanding a volume group requires its recreation. In 11.31 with the newer LVM versions, your limitations can be greatly reduced.

Regards!

...JRF...
senthil_kumar_1
Super Advisor

Re: How to find the volume group version of HPUX 10.20, 11.00, 11.11, 11.21 and 11.31

Thanks James,

Now i have two questions.

1)The max PEs per PV will be same (2560) even if we are adding the physical volume having size more than 10GB, so we can not use the available more than 10 GB?


2)if we mention the max PEs per PV as 65536 (the maximum) using -e option with vgcrate command and PE size 4Mb, then we can have disks at any size upto 256GB (upto 65536 PEs).