Operating System - HP-UX
1830862 Members
2488 Online
110017 Solutions
New Discussion

strict policy and lvextend problem

 
SOLVED
Go to solution
Mauro Gatti
Valued Contributor

strict policy and lvextend problem

I'm trying to extend a mirrored LV but I get some problems with "strict" policy but I don't understand why.
In effect it seems to be enough PE on different PV to satisfy my request.
Where do I make a mistake?

# pvdisplay /dev/dsk/c3t15d0
--- Physical volumes ---
PV Name /dev/dsk/c3t15d0
VG Name /dev/vg00
PV Status available
Allocatable yes
VGDA 2
Cur LV 10
PE Size (Mbytes) 4
Total PE 4340
Free PE 281
Allocated PE 4059
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On



--- Logical volumes ---
LV Name /dev/vg00/lvsms_ias1
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 8500
Current LE 2125
Allocated PE 4250
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c1t15d0 2125 2125
/dev/dsk/c3t15d0 2125 2125





# lvextend -l 4500 /dev/vg00/lvsms_ias1
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvsms_ias1" could not be extended.
Failure possibly caused by strict allocation policy
Ubi maior, minor cessat!
7 REPLIES 7
Mauro Gatti
Valued Contributor

Re: strict policy and lvextend problem

I forgot second PV:

# pvdisplay -v /dev/dsk/c1t15d0|more
--- Physical volumes ---
PV Name /dev/dsk/c1t15d0
VG Name /dev/vg00
PV Status available
Allocatable yes
VGDA 2
Cur LV 10
PE Size (Mbytes) 4
Total PE 4340
Free PE 281
Allocated PE 4059
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Ubi maior, minor cessat!
Pete Randall
Outstanding Contributor
Solution

Re: strict policy and lvextend problem

Mauro,

You're trying to add 4500 more LE's to the existing logical volume (-l option is number of LE's). You only have 281 free LE's on each logical volume. That won't fit!


Pete

Pete
Thierry Poels_1
Honored Contributor

Re: strict policy and lvextend problem

hi,

toal PE on disk = 4250. It's kind of difficult to extend to 4500 then :)

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Sunil Sharma_1
Honored Contributor

Re: strict policy and lvextend problem

How many disk you have in vg00 ?

post the o/p of "vgdisplay -v vg00 "

Your messages says that you do not have sufficient free extent in disk.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Thierry Poels_1
Honored Contributor

Re: strict policy and lvextend problem

oops, should have been 4340
(scrolled too much while replying)

All unix flavours are exactly the same . . . . . . . . . . for end users anyway.

Re: strict policy and lvextend problem

Well if this is mirrored between the 2 disks, the biggest you can go is 2125 + 281 = 2406 extents or 9624MB .

So:

levextend -l 2406 /dev/vg00/lvsms_ias1


is the best you can do unless you have more disks available.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Mauro Gatti
Valued Contributor

Re: strict policy and lvextend problem

I'm sorry I forgot my brain at home today.


Thank You
Ubi maior, minor cessat!