Operating System - HP-UX
1834936 Members
2266 Online
110071 Solutions
New Discussion

Re: problem with lvextend

 
Jeroen Zonneveld
Occasional Advisor

problem with lvextend

Hi there,

We are dealing with a strange problem.
We want to extend de size of a logical volume (lvol1)
Problem is that we dont have any space left in the volume group.
there for we reduce the size of lvol4

fsadm -F vxfs -b $((1024 * 13000)) /u03/oracle/export/pivp

lvreduce -L 13000 /dev/vgpivp/lvol4

vgdisplay -v vgpivp now results in

VG Name /dev/vgpivp
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 4
Open LV 4
Max PV 16
Cur PV 4
Act PV 4
Max PE per PV 6000
VGDA 8
PE Size (Mbytes) 8
Total PE 3068
Alloc PE 2785
Free PE 283
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

there are 283 pe (2264 mb) free so now we do a

lvextend -L 1200 /dev/vgpivp/lvol1

then is says:

lvextend: Not enough free physical extents available.
Logical volume "/dev/vgpivp/lvol1" could not be extended.

Can anyone help us with this problem?

Jeroen Zonneveld
The Netherlands









5 REPLIES 5
Adisuria Wangsadinata_1
Honored Contributor

Re: problem with lvextend

Hi,

This happened because you didnt re-organize the directory / file system on /dev/vgpivp. Try to run below command first before you run the lvextend :

# fsadm -F vxfs -d -D -e -E /u03/oracle/export/pivp

Check the url below (docID : LVMKBRC00005082) about 'Changing the size of a data logical volume with OnlineJFS' :

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080047697

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Cem Tugrul
Esteemed Contributor

Re: problem with lvextend

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=534529

good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Steven E. Protter
Exalted Contributor

Re: problem with lvextend

Shalom Jeroen,

Could be a problem with strict allocation or contiguous access on /dev/vgpivp/lvol1

Maybe this:

lvchange -C n /dev/vgpivp/lvol1

Then try to extend.

Could be you need to specify the physical disk in the lvextend command.

lvextend -L 1200 /dev/vgpivp/lvol1 /dev/dsk/c1t1d0

change c1t1d0 to something real.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sยภเl Kย๓คг
Respected Contributor

Re: problem with lvextend

Hi,

I think it's problem with allocation policy only. what is No of stripes in the LVs. Use the lvdisplay -v lvname to find on which disks the lvs have been stripped. If the stripes are not been specified, better give lvextend lv name with one of the disk name.

Regards,
Sunil
Your imagination is the preview of your life's coming attractions
Jeroen Zonneveld
Occasional Advisor

Re: problem with lvextend

Thank you all for the answers.

We started a support call at HP and
they said we missed a entry in the
/etc/lvmpvg file.
We added the entry and the lvexend worked!!!!