Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

0516-1163 extendvg: vgdata already has maximum physical volumes

Status
Not open for further replies.

oliverbeat

Technical User
Sep 3, 2004
86
NZ
Hi

I am trying to add new disks (SAN) to my vg but it seems I reahced the max:
here result of the extend
0516-1163 extendvg: vgdata already has maximum physical volumes. With the maximum number of physical partitions per physical volume being 2032, the maximum number of physical volumes for volume group vgdata is 16.

I have checked with lsvg:
PP SIZE: 64 megabyte(s)
MAX LVs: 256
MAX PPs per VG: 32512
MAX PPs per PV: 2032
MAX PVs: 16

How can I change this without outage...

Thanks in advance.
Cheers
 
I forget to say that I tried chvg -B vgdata but failed as there is not enough space
0516-1214 chvg: Not enough free physical partitions exist on hdisk4 for the expansion of the volume group descriptor area. Migrate/reorganize to free up1 partitions and run chvg again.
0516-732 chvg: Unable to change volume group vgdata.

 
To change a VG to Big with chvg -B there must be at least one free PP in each disk. This is because it needs to increase the VGDA.
So you have to free one PP in hdisk4 before you can do this change.
If you have AIX 5.3 you can reduce a FS (in case it isn't filled up), but if you have 5.2 or less you'll need to backup a FS, delete it, recreate it smaller and recover from backup (or delete it, change the VG to big, add a new disk and then recover the FS).
 
If AIX52 or 53,
You can migrate one LP from one LV on hdisk4 to another disk with migratelp

lsvg -p vgdata
(find a disk with at least 2 free LPs: hdiskXX)
lspv -M hdiskXX
(find a free PP number: PP)
lspv -l hdisk4
(find an LV on hdisk4: lvYY)
lslv -m lvYY
(find out last LP number: LL)
(primary or mirror: 1 or 2)
migratelp lvYY/LL/1 hdiskXX/PP
(if primary copy was on hdisk4)
or
migratelp lvYY/LL/2 hdiskXX/PP
(if secondary copy was on hdisk4)

See also the man pages for all the commands involved.


HTH,

p5wizard
 
Just to add to Morefeo comment:

Code:
If you have AIX 5.3 you can reduce a FS (in case it isn't filled up), but if you have 5.2 or less you'll need to backup a FS, delete it, recreate it smaller and recover from backup (or delete it, change the VG to big, add a new disk and then recover the FS).

On 5.3, If you have jfs2, you will be able to reduce and increase the lv but if you have jfs then you are stuck! You can increase the lv but not reduce it!

Regards,
Khalid
 
khalidaaa said:
... but if you have jfs then you are stuck! You can increase the lv but not reduce it!

No you are not stuck, it just means you cannot reduce the FS and LV "on the fly" while the FS is mounted. It means you need an app-downtime.



HTH,

p5wizard
 
Are you sure about that p5! I just tried it on one of the 5.3 servers and i couldn't reduce it while unmounted!
 
backup
unmount
rmfs
crfs (a chance to go to jfs2 while you're at it)
mount
restore

(I said app-downtime... ;-))

Plus there's also a 3rd party tool to shrink jfs, but it needs an unmount also: (I never used or needed that)

HTH,

p5wizard
 
:)

Ok that's what i meant by saying stuck :p

Ofcourse that's the way it should be p5wizard :)

Regards,
Khalid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top