1832880 Members
2635 Online
110048 Solutions
New Discussion

increase max pv

 
sassou
Frequent Advisor

increase max pv

Hallo,
I want an instruction to increase the number of max pv.
The default is 16 I need more
Thank you for your help,
sincerly
Firmin Sassou KUZO
5 REPLIES 5
Sanjay_6
Honored Contributor

Re: increase max pv

Hi,

If you want to increase the number of max_pv for an existing VG, you cannot. You have to recreate the vg.

If you want to increase the limit on PV for a new VG, you use the "-p some_number" option with the vgcreate command. the some_number is the new limit for the number for pvs for this vg.

Hope this helps.

regds

Stf
Esteemed Contributor

Re: increase max pv

look at this link, I hope this could help you...

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

Stf ;-)
sassou
Frequent Advisor

Re: increase max pv

I've already created the vg without using the option -p
Jeff Schussele
Honored Contributor

Re: increase max pv

Hi Firmin,

Well sorry, you're not going to like the answer, but the only way to increase Max PV is to backup the data, remove the current VG & recreate it initially with a higher value - like:

vgcreate -p 32 /dev/vg_name

All the values shown in a vgdisplay are hard-set & cannot be changed "on-the-fly".
The default Max PV value is 16 so when this VG was created the -p value was not specified.
Of course after you recreate the VG you can recreate the LV structure & then restore the backed up data.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Nguyen Anh Tien
Honored Contributor

Re: increase max pv

the systax of vgcreate command is

/usr/sbin/vgcreate [-f] [-A autobackup] [-x extensibility] [-e max_pe]
[-l max_lv] [-p max_pv] [-s pe_size] [-g pvg_name] vg_name
pv_path ...
so you need only use -p option.

Hope this help
tienna
HP is simple