Add logical Volume times error on AIX 0516-787 extendlv:maximum allocation for logical volume JDELV02 is 512.
When adding a logical volume to AIX using the chfs-a size=xx/fs command,
Sometimes increase to a certain size, will be reported 0516-787 extendlv:maximum allocation for logical volume JDELV02 is 512. Such a mistake
This is mainly because the logical volume allows the maximum number of logical partitions to be 512 by default, so when the logical volume size exceeds this limit, 0516 is reported.
Of course you can check this LV to confirm whether it is 512:
Use LSLV to see:
# LSLV Jdelv02
LOGICAL volume:jdelv02 VOLUME GROUP:JDEVG1
LV IDENTIFIER:00C4924E00004C0000000115D098136F.1 Permission:read/write
VG State:active/complete LV STATE:OPENED/SYNCD
TYPE:JFS2 WRITE Verify:off
MAX lps:512 PP size:128 megabyte (s)
Copies:1 SCHED Policy:parallel
lps:800 pps:800
STALE pps:0 BB policy:relocatable
Inter-policy:minimum Relocatable:yes
Intra-policy:middle UPPER bound:64
MOUNT point:/oradata02 LABEL:/ORADATA02
MIRROR WRITE consistency:on/active
Each LP COPY on A separate PV?: Yes
Serialize IO?: NO
MAX LPs is 512, which is really beyond this limit,
We can use the Smit tool to modify this restriction:
Smit Chlv==>change a logical volume==>logical Volume name==>f4 (select the lvname you want to modify) enter
In maximum number of LOGICAL partitions [1024] Change the value, enter, see the upper left corner "OK"
Indicates success for the modification. Esc+0 quit Smit, and again added,
# chfs-a SIZE=100G/ORADATA02
Filesystem size changed to 209715200
Ok. Success.
# LSLV Jdelv02
LOGICAL volume:jdelv02 VOLUME GROUP:JDEVG1
LV IDENTIFIER:00C4924E00004C0000000115D098136F.1 Permission:read/write
VG State:active/complete LV STATE:OPENED/SYNCD
TYPE:JFS2 WRITE Verify:off
MAX lps:1024 PP size:128 megabyte (s)
Copies:1 SCHED Policy:parallel
lps:800 pps:800
STALE pps:0 BB policy:relocatable
Inter-policy:minimum Relocatable:yes
Intra-policy:middle UPPER bound:64
MOUNT point:/oradata02 LABEL:/ORADATA02
MIRROR WRITE consistency:on/active
Each LP COPY on A separate PV?: Yes
Serialize IO?: NO
You can see that maxlps is already 1024.
Adding logical Volume times error on AIX 0516-787 extendlv:maximum allocation for logical volume