1838331 Members
3409 Online
110125 Solutions
New Discussion

lvchange problem

 
SOLVED
Go to solution

lvchange problem

Hello, all

HPUX 11.0 . Trying to
change strict/contiguous allocation policy on /dev/vg00/lvol3 ( root )
to strict by executing
lvchange -C n /dev/vg00/lvol3

Got :
Can not change to non-contiguous allocation policy
Logical Volume "/dev/vg00/lvol3" must be contiguous.

Created dummy lvol with contiguous policy and successfully lvchange'd
it back.

What is special about lvol3?
Should I do that in single user?
Thanks for your help.
Dimitry


10 REPLIES 10
Pete Randall
Outstanding Contributor

Re: lvchange problem

Dimitry,

What's in lvol3? I'm guessing it's your swap area - which HAS to be contiguous.

Pete

Pete

Re: lvchange problem

lvol3 is /( root )
Ken Hubnik_2
Honored Contributor

Re: lvchange problem

Usually lvol3 in vg00 is typically your swap which means it is a little different.

Re: lvchange problem

I thought lvol2 is Swap ...
Patrick Wallek
Honored Contributor
Solution

Re: lvchange problem

vg00/lvol1, vg00/lvol2 and vg00/lvol3 (/stand, pri. swap and /) MUST be contiguous. This is a requirement of the OS.

Why do you want to change it to a non-contiguous policy? Are you trying to extend /? If so why do you want to extend it?

If you are trying to extend it, you should first look to see if there is anything unusual taking up space (like /dev/rmt/om instead of 0m).

If you must extend /, your best bet is to utilize Ignite/UX and create a make_tape_recovery tape, boot from the tape and then resize your LVOL sizes.
Pete Randall
Outstanding Contributor

Re: lvchange problem

Dimitry,

Post your bdf -l output.

I believe / and /stand have to be contiguous as well.

Pete

Pete

Re: lvchange problem

I do need to extend..
Your advice is very helpful.
Thanks.
Ken Hubnik_2
Honored Contributor

Re: lvchange problem

Your right lvol3 is root than I believe it must be contiguous.
Patrick Wallek
Honored Contributor

Re: lvchange problem

Here is the web page for Ignite/UX:

http://software.hp.com/products/IUX/

To create a recovery tape, use the command:

/opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -x inc_entire=vg00

This will archive your entire VG00 to tape.

Make a couple of these. Then boot from the tape, and the menu will come up which will allow you to modify various things. It is at this point that you can change your LVOL sizes for any of the VG00 lvols.

Ignite/UX is a FREE download.
Ken Hubnik_2
Honored Contributor

Re: lvchange problem

Do a man on lvcreate..... at the bottom there is a warning about certain filesystems IE root,swap, and dump that must be contigous