Friday, October 19, 2012

AIX: chvg -g on scalable and mirror pool VGs can fail with 0516-058 lchangevg: Not enough memory available now.

Problem summary:

Can not increase size of scalable volume group with mirror pool with 29 and more hdisks on AIX 6.1.

Problem description:

chvg -g on scalable and mirror pool VGs can fail with
# chvg -g VGName
0516-058 lchangevg: Not enough memory available now.
         Try again later
0516-732 chvg: Unable to change volume group VGName
if the VG has 29 or more hdisks


Binary lchangevg is 32-bit program with maxDATA value set to low value which can not satisfy  memory requirements of this operation.

Workaround:

Check value of maxDATA:

host:/ # dump -X 32 -ov /usr/sbin/lchangevg
/usr/sbin/lchangevg:
maxSTACK     maxDATA     SNbss       magic       modtype
0x00000000  0x40000000  0x0003      0x010b        1L

Change maxDATA to higher value and repeat chvg -g again.

host:/ # ldedit -b maxdata=0x50000000 /usr/sbin/lchangevg
ldedit:  File /usr/sbin/lchangevg updated.

# chvg -g VGName

APAR:

IV30441: CHVG -G FAILS WITH 'NOT ENOUGH MEMORY AVAILABLE NOW.'

1 comment:

  1. Thanks, fixed chvg for my 18 disks 28Tb volume group :)

    ReplyDelete