Operating System - HP-UX
1753776 Members
7159 Online
108799 Solutions
New Discussion юеВ

Re: Increasing Volume group size

 
SOLVED
Go to solution
Randy Durden
Frequent Advisor

Re: Increasing Volume group size

Is there anyway to turn off the strict allocation so I can extend this volume?
Pete Randall
Outstanding Contributor

Re: Increasing Volume group size

"you are going to have to recreate (backup, lvremove, lvcreaate, restore)"


Pete

Pete
Pete Randall
Outstanding Contributor

Re: Increasing Volume group size

Disregard that last answer and see the lvchange command.


Pete

Pete
Randy Durden
Frequent Advisor

Re: Increasing Volume group size

Can you give me the format I should use for the lvchange command?
Pete Randall
Outstanding Contributor

Re: Increasing Volume group size

lvchange -C n /dev/vg_audev_backup/audev_backup


Pete

Pete
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