1848038 Members
3405 Online
104022 Solutions
New Discussion

Re: lvm

 
subhashni
Regular Advisor

lvm

Hi,
Is there any way to increase root volume size?
Please help
Thanks
unix4me
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: lvm

That depends on whether you mean vg00 or the / filesystem. vg00 can be enlarged but if you need to increase /, you're going to have to reinstall.

Pete

Pete
Jon Mattatall
Esteemed Contributor

Re: lvm

This link -
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x377dabe92dabd5118ff10090279cd0f9,00.html
covers the whole thing.

In essence, you can use Ignite, online JFS, or just look for files growing unexpectedly.

Why do you want to increase it? Normally, the value at install should be sufficient....

Jon
A little knowledge is dangerous - none is absolutely terrifying!!!
Helen French
Honored Contributor

Re: lvm

Hi Subhashini:

The proper method will be to create a recovery tape and reinstall the OS. While re-installing you can specify the new size of the root LV.

However there are so many other proven methods and you will get a lot of ideas if you give a "search" on the threads (choose search button on this page and give 'extend root' and select 'community forums'). One of them:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x77a8e7613948d5118fef0090279cd0f9,00.html

HTH,
Shiju
Life is a promise, fulfill it!
John Carr_2
Honored Contributor

Re: lvm

Hi

YES as the others have said you can increase the root using several methods all instructions available in search facility.

why do you now want to increase root has it suddenly filled up if so you might wish to searh for root files or any other files which may be moved from root or simpy removed period.

cheer
John.
Sandip Ghosh
Honored Contributor

Re: lvm

The following procedure I have collected from this forum only, but I forgot who had posted this procedure. This is really good if you can follow it properly.

Assumptions,
01. You are not just an "HP kid" who will play with ignite like stuff.

02. You like taking some risk & saving your valuable time

Size of /dev/vg00/lvol1 is A (boot or /stand or /dev/vg00/lvol1)

Size of /dev/vg00/lvol2 is B (swap or /dev/vg00/lvol2)

You wanna increase size of lvol1 from A to A+X (where X is not more than B - "physical memory installed in your machine")

Basically we have to decrease size of swap to increase boot as they are contigous.

Now Extending /stand is an easy job which can be performed in 10-15 minutes.

Steps

01. Boot your machine in LVM maintenance mode
(hpux -lm at ISL>)

#rm /etc/mnttab
#vgchange -a y /dev/vg00
#lvrmboot -r /dev/vg00
#lvremove /dev/vg00/lvol2
#lvextend -L "A+X" /dev/vg00/lvol1
#extendfs /dev/vg00/rlvol1
#lvcreate -L "B-(X+10)" -C y -r n -n lvol2 /dev/vg00
#lvlnboot -b /dev/vg00/lvol1
#lvlnboot -r /dev/vg00/lvol3
#lvlnboot -s /dev/vg00/lvol2
#lvlnboot -d /dev/vg00/lvol2
#reboot -r

You have your /stand extended now

Otherwise you can do it through ignite.

Sandip
Good Luck!!!
Pete Randall
Outstanding Contributor

Re: lvm

I stand corrected - how embarrasing!

Pete

Pete
Jon Finley
Honored Contributor

Re: lvm

If you use disk mirroring, and have vg00 currently mirrored, you have yet one more way of increasing the size of / (root).

This is assumming that with the extension of root (/) that all lvol's together don't exceed the size of your disk.
-----

reduce out the mirror through:
lvreduce -m 0 /dev/vg00/lvol? /dev/dsk/c?t?d?
(repeat for each lvol)

then use pvmove to move lvol's 8,7,6,5,4,3 and 2 over to the disk you just reduced out.

extend root (/)

then use pvmove to move the lvol's back to the original disk and re-mirror.

Jon
"Do or do not. There is no try!" - Yoda