1848554 Members
6399 Online
104033 Solutions
New Discussion

Re: lvextend

 
Deborah Weatherspoon
Frequent Advisor

lvextend

Hi all,

I'm trying to extend a VG (vg03) to hopefully 60G, but I'm getting an error message: Can anyone tell me how to make this work or should I create a new 70G VG.

lvextend -L 61440 /dev/vg03/lvol1
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg03/lvol1" could not be extended.
Failure possibly caused by strict allocation policy


VG Name /dev/vg03
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 12799
VGDA 2
PE Size (Mbytes) 4
Total PE 12797
Alloc PE 12796
Free PE 1
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg03/lvol1
LV Status available/syncd
LV Size (Mbytes) 51184
Current LE 12796
Allocated PE 12796
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c8t0d3
PV Name /dev/dsk/c10t0d3 Alternate Link
PV Status available
Total PE 12797
Free PE 1
Autoswitch On



8 REPLIES 8
Torsten.
Acclaimed Contributor

Re: lvextend

Look:

PE Size (Mbytes) 4
Total PE 12797
Alloc PE 12796
Free PE 1


You have only 4MB free!

You need to add more physical disk space (new disk/LUN) first.

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!   
TwoProc
Honored Contributor

Re: lvextend

The output above tells you what your "FREE PE"s are. And you've only got one free left, according the "PE Size" row, you've only got 4M free to allocate.

So, your current size of lvol1 is about 50G(12,797x4M) - so the most you can put together without adding more disk 50Gig + 4M.

You don't have enough space for that requested operation.

We are the people our parents warned us about --Jimmy Buffett
Deborah Weatherspoon
Frequent Advisor

Re: lvextend

Can I add another disk to the VG (vg03 which is on LUN 3) then extend it. I have another disk on LUN 3 that is 51200 MB and unused.
Torsten.
Acclaimed Contributor

Re: lvextend

Yes, you should add the LUN to this vg using vgextend first.

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!   
Deborah Weatherspoon
Frequent Advisor

Re: lvextend

Thanks for all the info, but I need to make sure I have the correct instructions:

1. pvcreate -f /dev/dsk/c10t1d5

2. vgextend /dev/vg03 /dev/dsk/c10t1d5

3. lvextend -L 71680 /dev/vg03/lvol1
A. Clay Stephenson
Acclaimed Contributor

Re: lvextend

Thanks for all the info, but I need to make sure I have the correct instructions:

1. pvcreate -f /dev/dsk/c10t1d5

2. vgextend /dev/vg03 /dev/dsk/c10t1d5

3. lvextend -L 71680 /dev/vg03/lvol1

You were very close. Change the /dev/dsk/c10t1d5 in the pvcreate step to /dev/rdsk/c10t1d5.

When you create LUN's, it normal to make them bigger than you need at the moment. That makes it very easy to extend LVOL's later should the need arise without having to add additional LUN's.
If it ain't broke, I can fix that.
Deborah Weatherspoon
Frequent Advisor

Re: lvextend

Thanks all,

I will try it this weekend.
Amitav
Frequent Advisor

Re: lvextend

Hi Deborah,
Since you are left with 1 free PE, so you cannot extend your lvol, you have to create another volume group for your purpose...

Amitav