Operating System - HP-UX
1754967 Members
3872 Online
108828 Solutions
New Discussion юеВ

increase physical extents of a volume group

 
Weertman
Frequent Advisor

increase physical extents of a volume group

Hello,
I have a volume group with 2 18Gb disks to which I want to add 2 more 36Gb disks.
However Max PE per PV = 4350 and
PE Size = 4.

Is there a way to increase Max PE per PV while the system is running?

vgdisplay vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 4
Total PE 8680
Alloc PE 8336
Free PE 344
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0


in this vg there are 2 disks:
--- Physical volumes ---
PV Name /dev/dsk/c1t2d0
PV Status available
Total PE 4340
Free PE 172
Autoswitch On

diskinfo /dev/rdsk/c1t2d0
SCSI describe of /dev/rdsk/c1t2d0:
vendor: HP 18.2G
product id: MAN3184MC
type: direct access
size: 17783240 Kbytes
bytes per sector: 512

and I want to add this disk:
SCSI describe of /dev/rdsk/c2t0d0:
vendor: HP 36.4G
product id: ST336753LC
type: direct access
size: 35566480 Kbytes
bytes per sector: 512

Thanks
6 REPLIES 6
whiteknight
Honored Contributor

Re: increase physical extents of a volume group



hi,

if you are using 11.23 and 11.31

A new command (vgmodify) from HP to modify the Max PE per PV was officially introduced by a patch for HPUX 11iv2 (11.23). However, the vgmodify becomes a built-in function in 11iv3 (11.31).

For 11.23, the current patch (or latest) for vgmodify is:


PHCO_35524 s700_800 11.23 LVM commands patch


vgmodify(1M) vgmodify(1M)

NAME
vgmodify - handle physical volume size changes and modify
configuration parameters of an existing LVM volume group

SYNOPSIS
Set Specified Parameters
/usr/sbin/vgmodify [-B bootable] [-e max_pe] [-l max_lv] [-n] [-p
max_pv] [-r] [-v] vg_name [pv_path...]

Optimize the Volume Group Settings
/usr/sbin/vgmodify -o [-B bootable] [-r] [-v] vg_name [pv_path...]

Display a Table of Optimized Possible Volume Group Settings
/usr/sbin/vgmodify -t [-B bootable] [-n] [-v] vg_name [pv_path...]

WK
Problem never ends, you must know how to fix it
Weertman
Frequent Advisor

Re: increase physical extents of a volume group

Unfortunately I am using 11.11i
Robert-Jan Goossens_1
Honored Contributor

Re: increase physical extents of a volume group

Hi,

There is an unsupported version available for 11.11. If you are going to use it create a good backup.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=619420

Robert-Jan
Fat Scrape
Honored Contributor

Re: increase physical extents of a volume group

Hi,

see this thread.

Fat
Fat Scrape
Honored Contributor

Re: increase physical extents of a volume group

Weertman
Frequent Advisor

Re: increase physical extents of a volume group

Adding the disks is too risky.
Will create new vg

Thanks