标签:
AIX上增加逻辑卷时报错误0516-787 extendlv: Maximum allocation for logical volume jdelv02 is 512.
在往aix使用chfs -a size=xx /fs 命令增加逻辑卷的时候,
有时候增加到一定大小的时候,会报出0516-787 extendlv: Maximum allocation for logical volume jdelv02 is 512.这样的一个错误
原因主要是因为在默认情况下的逻辑卷允许的最大逻辑分区数为512,因此在逻辑卷大小超出了这个限制的时候,就会报0516这个错误了。
当然你可以查看这个lv以确认是否为512:
使用lslv来看:
# 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为512,确实是超出了这个限制,
我们可以使用smit工具修改这个限制:
smit chlv==>Change a logical Volume==>Logical volume name==>F4(选择你要修改的lvname)回车
在MAXIMUM NUMBER of LOGICAL PARTITIONS [1024] 把数值一改,回车后,见到左上角“OK”
表示为修改成功。esc+0退出smit后,再次增加,
# chfs -a size=100G /oradata02
Filesystem size changed to 209715200
OK。成功。
# 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
可以看到maxlps已经是1024.
AIX上增加逻辑卷时报错误0516-787 extendlv: Maximum allocation for logical volume
标签:
原文地址:http://www.cnblogs.com/jasoname/p/5331738.html