Operating System - HP-UX
1833445 Members
3185 Online
110052 Solutions
New Discussion

Re: Increasing Volume group size

 
SOLVED
Go to solution
Randy Durden
Frequent Advisor

Re: Increasing Volume group size

I now have it as a non-strict allocation. I used lvchange -s n . For some reason it is not seeing the new 60G sized LUN.
When I run the lvextend now it says

lvextend: Not enough free physical extents available.
Logical volume "/dev/vg_audev_backup/audev_backup" could not be extended.
Pete Randall
Outstanding Contributor

Re: Increasing Volume group size

The "strict" allocation policy, or lack thereof, only applies to mirrored LVs. You need to change the contiguous attribute with the -C switch.


Pete

Pete
Randy Durden
Frequent Advisor

Re: Increasing Volume group size

I'm sorry I forgot to post that I did run it with the -C. New lvdisplay below.

--- Logical volumes ---
LV Name /dev/vg_audev_backup/audev_backup
VG Name /dev/vg_audev_backup
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 20000
Current LE 5000
Allocated PE 5000
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation non-strict
IO Timeout (Seconds) default
Pete Randall
Outstanding Contributor

Re: Increasing Volume group size

Can you post the exact lvextend command you're using?


Pete

Pete
Randy Durden
Frequent Advisor

Re: Increasing Volume group size

lvextend -L 60000 /dev/vg_audev_backup/audev_backup
Pete Randall
Outstanding Contributor

Re: Increasing Volume group size

You don't have that many extents available. The new volume gave you 5119 more 4MB extents and your asking for an additional 40000MB or 60000 total. Somewhere around 40,000 total should work.


Pete

Pete
Randy Durden
Frequent Advisor

Re: Increasing Volume group size

40,000 took. When I do a bdf it is still showing 100% full. Do I need unmount the directory and then mount it again?
Pete Randall
Outstanding Contributor

Re: Increasing Volume group size

Now you need to extend the file system that resides within the logical volume: extendfs. See the example in the extendfs man page.


Pete

Pete
blu.karthi
Advisor

Re: Increasing Volume group size

Dear randy,
you have not sufficent Free PE Extents for to create logical volume of size 60 GB

accourding to free PE you can extend upto 40GB Size of that logicalvolume



Randy Durden
Frequent Advisor

Re: Increasing Volume group size

Pete,

Thanks for all the help. The customer seems satisfied for now. I don't know why it would not recognize the entire 60G LUN.
Pete Randall
Outstanding Contributor

Re: Increasing Volume group size

Just a restriction left over from the old days. Disks never used to grow back then.

And - you're welcome!


Pete

Pete
blu.karthi
Advisor

Re: Increasing Volume group size

because PE per PV is for that volume group is 5119. so, it will add only 20GB from that 60GB LUN to that VG

Max PE per PV 5119
PE Size (Mbytes) 4

5119 * 4 = 20000M