Operating System - HP-UX
1820163 Members
3866 Online
109620 Solutions
New Discussion юеВ

Re: lvol strict/contiguous

 
SOLVED
Go to solution
Javier Ortiz Guajardo
Frequent Advisor

lvol strict/contiguous

I have the logical volume /dev/vg00/lvol7, it belongs to filesystem /usr and it is defined with the allocation strict/contiguous. I need to increase it, but send me this message
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol7" could not be extended.
Failure possibly caused by contiguous allocation policy.
Failure possibly caused by strict allocation policy

how can i change the strict/contiguous definition to this logical volume?

Thanks
Regards..
The obstacles are those things that the people see when they left to see their goals.
8 REPLIES 8
Pete Randall
Outstanding Contributor

Re: lvol strict/contiguous

Javier,

The strict/contiguous policies are defined during lv creation (see man lvcreate). The only way to change the policy is to re-create the logical volume. Perhaps you could create a new logical volume of sufficient size, mount it as /newusr, copy the contents of /usr into it, the switch the mount points for /usr and /newusr in /etc/fstab and reboot?


Pete



Pete
James R. Ferguson
Acclaimed Contributor
Solution

Re: lvol strict/contiguous

Hi:

You can use 'lvchange' (with certain restrictions as described in the man pages for the command) to change these policies. Do a 'man lvchange' for more information.

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: lvol strict/contiguous

Duh!!! Thanks, James, for pointing out the obvious.


Pete



Pete
William Wong_2
Trusted Contributor

Re: lvol strict/contiguous

Actually I believe as long as it's not one of the swap partitions which has a requirement of being contiguous you can change the policy with lvchange -C n /dev/vg00/lvol7.
Steven E. Protter
Exalted Contributor

Re: lvol strict/contiguous

lvchange seems interesting, never tried it.

I always lvremove and re-create to get around this.

If its /stand or / and is hard to remove, you can do this:

make_tape_recovery

boot off the tape.

Press the key when prompted to interact with the recovery. Increase sizes then.

This should only be done if the logical volume can not be removed/recreated through normal means.

lvchange -C n /dev/vg00/lvol7

This would be my first try, just because it looks like fun.

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.K. Chan
Honored Contributor

Re: lvol strict/contiguous

Simply ..
# lvdisplay /dev/vg00/lvol7|grep Allocation
Allocation strict/contiguous
# lvchange -C n /dev/vg00/lvol7
Now the lvdisplay will only show ..
Allocation strict
Suresh Patoria
Super Advisor

Re: lvol strict/contiguous

Hi,

Following command may be help you,

lvchange -C n /dev/vg00/lvol7


then you try to extend your logical volume
Ivajlo Yanakiev
Respected Contributor

Re: lvol strict/contiguous

if you have not online JFS ?
start your server in single user mod and see that /usr is unmount
OTHERWISE unmount /usr and then use lvchange.