Operating System - HP-UX
1753424 Members
4877 Online
108793 Solutions
New Discussion юеВ

Re: LVM extend a lvol created whith -D y -s g

 
Aranzazu
Frequent Advisor

LVM extend a lvol created whith -D y -s g

Hello,
I have created a lvol in this way:
lvcreate -D y -s g -r n -n lvolfsindex01 /dev/vgslatr01
lvextend -L 8000 /dev/vgslatr01/lvolfsindex01

Now, I want to extend the lvol but this error apears:

lvextend: Not enough free physical extents available.
Logical volume "/dev/vgslatr01/lvolfsindex01" could not be extended

I have enough free space, look the output of vgdisplay command in the attachment.

How can i extend the lvol?
Thanks in advance.

Aranzazu Diez.

8 REPLIES 8
Denver Osborn
Honored Contributor

Re: LVM extend a lvol created whith -D y -s g

Given the error, you don't have enough free pe on all the PV's being used. How much are you attempting to extend it by?

-denver
Pete Randall
Outstanding Contributor

Re: LVM extend a lvol created whith -D y -s g

How much are you trying to extend it by? You only have 963 free PE(s) on the first two physical volumes and, with the Distributed allocation policy being set (-D y), that would be the maximum you could extend, I believe.


Pete


Pete
James R. Ferguson
Acclaimed Contributor

Re: LVM extend a lvol created whith -D y -s g

Hi:

I think the question is how many physical volumes originally comprised your volume group when you 'lvcreate'd your distributed logical volume. You will need enough physical extents from at least that number of devices to satisfy your request. In your case, an 'lvextend' using '-L 8000' [8000 MB] with a physical extent size of 4MB would need 2000 PE. If this were spread among the six devices you seem to have, about 334 physical extents should be taken from each disk [if my math is correct].

Regards!

...JRF...
Aranzazu
Frequent Advisor

Re: LVM extend a lvol created whith -D y -s g

I want to extend to 10240Mb (i have enough PE)
Claudio_17
Frequent Advisor

Re: LVM extend a lvol created whith -D y -s g

What I did on mine system was remove distributed option with lvchange -D n -s g /dev/vgxx/lvolxx ... then you can use all space you want


Aranzazu
Frequent Advisor

Re: LVM extend a lvol created whith -D y -s g

OK, as soon as i can i will do it.
My system is in produccion mode and i need a time window to do this.

Thanks.
Claudio_17
Frequent Advisor

Re: LVM extend a lvol created whith -D y -s g

..of course space you go to add to /dev/vgslatr01/lvolfsindex01 will not more spreaded on 6 volumes .


Regards
Aranzazu
Frequent Advisor

Re: LVM extend a lvol created whith -D y -s g

The problem was the /etc/lvmpvg file do not have de pvg defined.

Thanks for your help to all.