Operating System - HP-UX
1752590 Members
4222 Online
108788 Solutions
New Discussion юеВ

lvextend Not enough free PE

 
SOLVED
Go to solution
Burt Buchen
Advisor

lvextend Not enough free PE

Hello,

I am trying to extend a raw datafile that is
mirrored. I get the following error:

lvextend -L 3500 /dev/vg02/BtsCDISi1 pvg3
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg02/BtsCDISi1" could not be extended

I have attached a file that has the lvdisplay and /etc/lvmtab.
Is it possible to extend this lv?
I read some things saying that the problem is that the lv is strict-allocated. Is there any workaround?



10 REPLIES 10
Sandman!
Honored Contributor

Re: lvextend Not enough free PE

What does your /etc/lvmpvg look like? Could you post it here.

~thanks
tkc
Esteemed Contributor

Re: lvextend Not enough free PE

Your /dev/vg02/BtsCDISi1 is distributed into 4 disks with following setting :
Allocation PVG-strict/distributed

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c4t6d0 375 375
/dev/dsk/c4t8d0 375 375
/dev/dsk/c6t6d0 375 375
/dev/dsk/c6t8d0 375 375

Have you check the /etc/lvmpvg file that you have all the 4 disks in this pvg3?
skt_skt
Honored Contributor

Re: lvextend Not enough free PE

check all the disks has enough free PE ..
tkc
Esteemed Contributor

Re: lvextend Not enough free PE

/dev/vg02/BtsCDISi1 info :

LV Size (Mbytes) 3000
Current LE 750
Allocated PE 1500

PV Name /dev/dsk/c4t6d0
Total PE 8681
Free PE 901

PV Name /dev/dsk/c4t8d0
Total PE 8681
Free PE 901

PV Name /dev/dsk/c6t6d0
Total PE 8681
Free PE 901

PV Name /dev/dsk/c6t8d0
Total PE 8681
Free PE 901

There should be sufficient PE for your lvextend to 3500MB. This is most likely due to lvmpvg for your pvg3.
Burt Buchen
Advisor

Re: lvextend Not enough free PE

Here is the /etc/lvmpvg.
VG /dev/vg01
PVG pvg1
/dev/dsk/c4t0d0
/dev/dsk/c4t1d0
/dev/dsk/c4t2d0
/dev/dsk/c4t3d0
/dev/dsk/c4t4d0
/dev/dsk/c4t5d0
PVG pvg2
/dev/dsk/c6t0d0
/dev/dsk/c6t1d0
/dev/dsk/c6t2d0
/dev/dsk/c6t3d0
/dev/dsk/c6t4d0
/dev/dsk/c6t5d0
VG /dev/vg02
PVG pvg3
/dev/dsk/c4t6d0
/dev/dsk/c4t8d0
PVG pvg4
/dev/dsk/c6t6d0
/dev/dsk/c6t8d0
James R. Ferguson
Acclaimed Contributor
Solution

Re: lvextend Not enough free PE

Hi Burt:

# lvextend -L 3500 /dev/vg02/BtsCDISi1 pvg3 pvg4

Regards!

...JRF...
Burt Buchen
Advisor

Re: lvextend Not enough free PE

That makes sense. After I perform the lvextend with pvg3 and pvg4 I don't need to remirror them with the lvextend -m 1 correct?

Thanks,
James R. Ferguson
Acclaimed Contributor

Re: lvextend Not enough free PE

Hi Burt:

When you have a mirrored logical volume, an 'lvextend' automatically handles the mirror. The specification of a pv_path or a pvg_name is entirely optional. The logical volume path and a size are all that are necessary.

Regards!

...JRF...
Burt Buchen
Advisor

Re: lvextend Not enough free PE

That was it. Thanks. It makes sense to me.
I thought I might have to break the mirror then
remirror it but this is the correct way.

Thanks again

Burt