Problem in increasing filesystem

Hi Friends,

I have a problem while increasing the fileystem. Actually the filesystem is 256 gb
and i have to add another 256 gb.So i got a new lun(hdisk) with 256 gb.
I added to the vg using the extendvg command.
It was successfully added, and when i checked the free pp's in vg it was showing for 256 gb (1023 pp) 1 pp= 256mb .
So when i was giving the chfs to increase it was shown below error,

0516-404 allocp: This system cannot fulfill the allocation request.         
There are not enough free partitions or not enough physical volumes         
to keep strictness and satisfy allocation requests.  The command         
should be retried with different allocation characteristics.

but when i checked the lv for max pp it was no issue it is showing
MAX LPs: 2046 and also the upperbound value is 16.So everything is fine in lv.

But when i checked the vg o/p again i was shocked that there is no free pp.

but the filesystem also not increased.

My question is,
Will the system need a reboot, or i have to again reduce the disk from vg and need to add?
But for removing the disk from vg i need to check whether the disk is in use? so how to check.

Pls help me out in this...

Thanks in advance...

Could you give me the following output

lsvg -l <vg> | grep -i  <lvname>
lslv <lvname>

As a basic check I would like to see if its stripe /mirror

1st thing, the error is saying you have no free PPs, so don't go for 256GB extention directly, if you have not observe the available free PPs on VG is 1023 (as one PP is taken by VG).

Just go with 250GB or 255GB expansion instead of 256GB
chfs -a size=+255G /<filesystem name>

As you mentioned you have checked the Max LPs for the LV of that filesystem. But, considering you want to go to 512 GB, you need alteast 2048 LPs on that LV
PP size is 256 mb, so 1gb will have 4 PPs,1024/256=4, then 512(gb)*4=2048(LPs)
Verify that by issuing lslv <lv name> | grep "MAX LPs"

You don't have to reboot the system.
If on the new disk you are expanding this filesystem then, you can easily remove the disk from VG, by issuing reducevg command.
You can issue a command lspv -l hdiskX to list the LV residing on that PV.

Hope this helps.

2 Likes

hi friends,

I have got the solution and i has been solved.

Just i have decreased the FS to 1 gb so that all the freep pps's have bee shown then i increased to 255Gb leaving 1 pp free for loglv thanks once again...

I'd highly recommend creating your jfs2 filesystems with the "-a logname=INLINE" option and avoid the messes caused by separate loglv.