Operating System - HP-UX
1833895 Members
2009 Online
110063 Solutions
New Discussion

Error: Extend a logical volume size

 
hboo
Frequent Advisor

Error: Extend a logical volume size

Hi all

I tried to extend a logical volume (via sam) and the output was:

lvextend: Not enough free physical extents available.
│pt │
││ aud│ Logical volume "/dev/vg00/appl3" could not be extended. │ │
││ bac│ Failure possibly caused by strict allocation policy

Somebody can help me with this error?
why its generate?
how I can fix this?

Thanks...


8 REPLIES 8
Calandrello
Trusted Contributor

Re: Error: Extend a logical volume size

Friend this error this happening because space in the VG does not exist to extender the Lvol
Pupil_1
Trusted Contributor

Re: Error: Extend a logical volume size

what's the o/p of
lvdisplay /dev/vg00/appl

There is always something new to learn everyday !!
hboo
Frequent Advisor

Re: Error: Extend a logical volume size

But I have 314 free PE (1256 Mb Approximately) and I was adding only 500 Mb to the Logical volume
Pupil_1
Trusted Contributor

Re: Error: Extend a logical volume size

the error is because of the allocation policy that has been used in the lv. the o/p of lvdisplay is needed.
There is always something new to learn everyday !!
IT_2007
Honored Contributor

Re: Error: Extend a logical volume size

because your logical volume was created with "strict" allocation policy which is default to make consistency about not to write on same disk.

You won't be able to extend it under this circumstance.

Still if you want to then you need to turn off policy on all logical volumes in that volume group to extend it.
hboo
Frequent Advisor

Re: Error: Extend a logical volume size

How I can to turn off policy on all logical volumes in that volume group??
For this I need to deactivate the vg?
This may can cause error with the application ?
IT_2007
Honored Contributor

Re: Error: Extend a logical volume size

lvchange -s n /dev/vgXX/lvolYY

Instead of this doing on all logical volumes, you can split mirror and use pvmove all logical volumes and when you move the required one to be extended, move it and extend it. Once all done, you can mirror it back.

ex: disk1 - primary and disk2 - alternate.

1. break mirror for all logical volumes.
2. pvmove lvol1 , lvol2 .. one at a time.
3. pvmove appl3 and use lvextend command to increase size after pvmove
4. pvmove remaining ones.
5. mirror all logical volumes now.

No harm doing this one. But it takes lot of time to do pvmove depending on the size of logical volumes.
Sandman!
Honored Contributor

Re: Error: Extend a logical volume size

Reiterating what some have said could you post the output of...

# lvdisplay -v /dev/vg00/appl3

Are your disks striped? striped + mirrored?
lvdisplay could shed more light on your lvextend situation.

thanks!