Operating System - HP-UX
1753948 Members
7465 Online
108811 Solutions
New Discussion юеВ

Re: lvextend failed, free PE available, strict mode problem?

 
SOLVED
Go to solution
dark-sun
Frequent Advisor

lvextend failed, free PE available, strict mode problem?

Hello,
I hva e VG with two PVG, each PVG has 3 disks
A1: 16 free PE
A2: 0 free PE
A3: 64 free PE

B1: 0 free PE
B2: 0 free PE
B3: 80 free PE

=> So both PVG's has 80 free PE's !
Actuall the LV is 10000 PE, I try try to extend to 10040:

lvextend -l 10040 /dev/vg01/lvol1
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg01/lvol1" could not be extended.

Whats wrong? Must the allocation on both PVG the same?
Need I #pvmove ... or can I switch of the restrict mode (and manually enshure to use the other PGV for mirroring)?

Thanks!
8 REPLIES 8
Torsten.
Acclaimed Contributor
Solution

Re: lvextend failed, free PE available, strict mode problem?

Please snd a lvdisplay -v and vgdisplay -v of the lvol/vg in question.

Is it striped?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
dark-sun
Frequent Advisor

Re: lvextend failed, free PE available, strict mode problem?

Yes, stripped:

lvdisplay -v /dev/vgcmcbc65/lvdb65
--- Logical volumes ---
LV Name /dev/vgcmcbc65/lvdb65
VG Name /dev/vgcmcbc65
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 320000
Current LE 5000
Allocated PE 10000
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation PVG-strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c68t0d3 2986 2986
/dev/dsk/c68t0d2 1279 1279
/dev/dsk/c68t0d4 735 735
/dev/dsk/c64t0d1 3002 3002
/dev/dsk/c64t0d0 1279 1279
/dev/dsk/c64t0d2 719 719

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c64t0d1 00197 current /dev/dsk/c68t0d3 00213 current
00001 /dev/dsk/c64t0d1 00198 current /dev/dsk/c68t0d3 00214 current
00002 /dev/dsk/c64t0d1 00199 current /dev/dsk/c68t0d3 00215 current
00003 /dev/dsk/c64t0d1 00200 current /dev/dsk/c68t0d3 00216 current
00004 /dev/dsk/c64t0d1 00201 current /dev/dsk/c68t0d3 00217 current
00005 /dev/dsk/c64t0d1 00202 current /dev/dsk/c68t0d3 00218 current
00006 /dev/dsk/c64t0d1 00203 current /dev/dsk/c68t0d3 00219 current
00007 /dev/dsk/c64t0d1 00204 current /dev/dsk/c68t0d3 00220 current
00008 /dev/dsk/c64t0d1 00205 current /dev/dsk/c68t0d3 00221 current
...
...

vgdisplay, see attached file.

Thanks
Torsten.
Acclaimed Contributor

Re: lvextend failed, free PE available, strict mode problem?

>> Yes, stripped:


No, it isn't.
Striping would be the show stopper, but it is not striped.

Stripes 0
Stripe Size (Kbytes) 0





I wonder about this:



Your first post:

lvextend -l 10040 /dev/vg01/lvol1


but your second:

lvdisplay -v /dev/vgcmcbc65/lvdb65

Still the same VG/LVOL?

Likely.



Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
dark-sun
Frequent Advisor

Re: lvextend failed, free PE available, strict mode problem?

My mistake, no striping, only mirroring ;-)

The names in lvdispaly/vgdisplay are correct, in the first post I wrote (manually) the HPUX default names.
Torsten.
Acclaimed Contributor

Re: lvextend failed, free PE available, strict mode problem?

I think I know where the problem is:


Current size of the LVOL:

Current LE 5000

but you specify:

lvextend -l 10040 /dev/vg01/lvol1



This number is indeed much too high!


Don't mix up with LE and PE!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: lvextend failed, free PE available, strict mode problem?

In other words, your LVOL is currently 5000 LE's in size, if you specify

lvextend -l 10040 /dev/vg01/lvol1

you would more than DOUBLE this size, it would need 2*10040 PE's because of mirroring.


You should use

lvextend -l 5040 /dev/vg01/lvol1

instead.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
dark-sun
Frequent Advisor

Re: lvextend failed, free PE available, strict mode problem?

Thanks Thorsten, I saw ...
I was fixed with old LE=10000 but this was only the PE ...

Thanks, now it works ;-)
dark-sun
Frequent Advisor

Re: lvextend failed, free PE available, strict mode problem?

solved!