Operating System - HP-UX
1834009 Members
2056 Online
110063 Solutions
New Discussion

Re: lvchange, change contiguous to non cont.

 
SOLVED
Go to solution
AA de Boer_1
Occasional Contributor

lvchange, change contiguous to non cont.

I'm wondering if I can change a contiguous to a non-contiguous policy with lvchange while the volume is online and mounted. I know I can lvextend a volume online, but don't know about lvchange.
4 REPLIES 4
Jeff Schussele
Honored Contributor
Solution

Re: lvchange, change contiguous to non cont.

Hi,

I believe that you can do this.
But not the other way around - i.e. one can't turn on non-contiguous policy into contiguous for obvious reasons.
BUT you *cannot* perform this upon the following LVs /dev/vg00/lvol1, /dev/vg00/lvol2, or /dev/vg00/lvol3 - they MUST always remain contiguous to each other, strictly for boot purposes.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
James R. Ferguson
Acclaimed Contributor

Re: lvchange, change contiguous to non cont.

Hi:

You should be able to make this transition as long as the volume group, to which the logical volume belongs, is not activated in shared mode.

Regards!

...JRF...
Jeff Schussele
Honored Contributor

Re: lvchange, change contiguous to non cont.

Well...I'll amend my earlier post somewhat.
You can change from non-contiguous to contiguous as long as:

A) The LV is *still* contiguous
AND
B) There is contiguous free space available.

The latter will generally be highly unlikely UNLESS it's the last LV on the VG & there's still free space available at the end of the LV.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
AA de Boer_1
Occasional Contributor

Re: lvchange, change contiguous to non cont.

Thanks for all the reaction. Turned out to be all possible online (lv used as raw device). Only Oracle needs to be told separately that the extra space is available.