Operating System - HP-UX
1820072 Members
2679 Online
109608 Solutions
New Discussion юеВ

lvextend: Not enough free physical extents available.

 
mark yeo
Advisor

lvextend: Not enough free physical extents available.

use sam to increase space

Logical Volume: lvol6
Volume Group: vg00
Space Available in Volume Group (Mbytes): 10304
Current Logical Volume Size (Mbytes): 856
Logical volume "/dev/vg00/lvol6" could not be extended.
Failure possibly caused by strict allocation policy


strict allocation policy meant that "Mirrors of a logical extent cannot
share the same physical volume." from man.

From the below info, i have 2 pv to this vg. How can i verify that its not the same pv?

# vgdisplay vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 15
Open LV 15
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 8
Total PE 8680
Alloc PE 7392
Free PE 1288
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0


# lvdisplay /dev/vg00/lvol6
--- Logical volumes ---
LV Name /dev/vg00/lvol6
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 856
Current LE 107
Allocated PE 214
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
17 REPLIES 17
Ranjith_5
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Hi Mark,

type the following:-
#strings /etc/lvmtab

and see the number of physical disks under /dev/vg00

regards,
Syam

mark yeo
Advisor

Re: lvextend: Not enough free physical extents available.

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Hoang Chi Cong_1
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Hi guy

You can try to use this command:

lvchange -C n /dev/vg00/lvol6

And then try to extend that logical volume.

Regard,
HoangChiCong
Looking for a special chance.......
Ranjith_5
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Hi,

from ur /etc/lvmtab its clear that vg00 contains 2 physical drives.What about the input from the other friend? its working?

regards,
Syam
Ranjith_5
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Hi mark,

give the bdf output and tell me what steps are u following to extend ur lvol6.


regards,
Syam
Hoang Chi Cong_1
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Which option did you use when extend the lv?
Looking for a special chance.......
Ranjith_5
Honored Contributor

Re: lvextend: Not enough free physical extents available.

I find that you use sam...Ok try extending with command line options.

regards,
Syam
Ranjith_5
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Hi Mark,

Give the out put of vgdisplay -v

I feel in one of the mirrored disk space is less.

Kindly provide the above.


regards,
Syam
bhavin asokan
Honored Contributor

Re: lvextend: Not enough free physical extents available.

hi,

you are having a mirror in the root volume.the two disks are used for that.

the problem can happen in the following way.you have created mirror for the lvols which was existing at the time of creation of mirror.after that you may have created so many lvols and not mirrored.the free extents showing in the vgdisplay command may be almost from the second disk.you can check for enough free extents by vgdisplay -v vg00 command (see at the end of output ,enough free extents are available on both disks.)

regds,
Ranjith_5
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Hi Mark will be back in some time.
Bhavin will help u.

regards,
Syam
mark yeo
Advisor

Re: lvextend: Not enough free physical extents available.

spot on!

one of my 2 disks in my vg has no free extents at all. Since the allocation policy is strict, then the mirror must be in different disks and hence on these 2 disks. However, since one of my disk has no free space, therefore, i get the error which i posted in the first message.

how to get space for the no free space (/dev/dsk/c1t2d0) ?

Thanks
bhavin asokan
Honored Contributor

Re: lvextend: Not enough free physical extents available.

hi,

create new lvols in the other disk and copy the contents of some lvols from first disk.then remove the lvol on first disk by lvremove command.

do the following.

1. create a lvol on the second disk which is equal to the size of lvol on first disk.

2. use dd or cpio command to copy all data from first disk lvol to second disk lvol.

3.if you are using dd, mount the second disk lvol to some other mount point and make sure that all data is available.

4. remove the lvol from first disk.mount the second disk lvol at the proper mount point.make proper changes in /etc/fstab.

regds,
Ranjith_5
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Mark,

What about the prob.? have you completed the activity or still facing some prob in doing it?

regards,
Syam
mark yeo
Advisor

Re: lvextend: Not enough free physical extents available.

cheers.

I have solved the problem. I just removed logical volumes that belongs to the pv which has no free PE or LE.
Ranjith_5
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Pls close the thread.

regards,
Syam
Fred Ruffet
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Please, assign points first.
(0 for this post)

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Nguyen Anh Tien
Honored Contributor

Re: lvextend: Not enough free physical extents available.

the error:
Logical volume "/dev/vg00/lvol6" could not be extended.
Failure possibly caused by strict allocation policy
mean it is not enought free space to extend lv.

To determine what pv belong to vg you can use
#strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t0d0
/dev/dsk/c2t1d0
/dev/vg01
/dev/dsk/c13t0d1
/dev/dsk/c16t0d1
/dev/dsk/c18t0d1
/dev/dsk/c21t0d1
HP is simple