Operating System - HP-UX
1833815 Members
2442 Online
110063 Solutions
New Discussion

Re: Create additional larger root logical volume on HPUX 11i

 
Jack_43
Occasional Contributor

Create additional larger root logical volume on HPUX 11i

Dear Friends,

I am trying to create an additional and larger root logical volume of 2GB size in the root volume group (vg00) on HP UX 11i. The original root volume is only 200mb and has insufficient disk space. The root (lvol3) & boot (lvol1) volumes are on separate lvols. Could you list the procedure please ?

best regards
Jack
12 REPLIES 12
John Waller
Esteemed Contributor

Re: Create additional larger root logical volume on HPUX 11i

Why are you trying to extend / to 2Gb. 200Mb should be fine. I would recommend creating a new lvol for what ever you are trying to install in /.
As for extending, I believe the simplest way would be to run a make_recovey to create an ignite tape, and reinstall from this tape, specifying the new size for lvol3.
Clemens van Everdingen
Honored Contributor

Re: Create additional larger root logical volume on HPUX 11i

Hi,

If you really want to change the size, I would recommend to make an Ignite make_recovery tape and install the system from there.
During the installion you will be able to change the size.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Jack_43
Occasional Contributor

Re: Create additional larger root logical volume on HPUX 11i

Hi John and Clemens,

Appreciate ur quick response !

I know how to take the make_recovery backup. But have no idea how to replace / specify a larger root lvol3. Appreciate if u could detail more ?

somehow the root volume is filled. I could not trace the large files that caused it. that is why i would like to have a larger root lvol to replace the old smaller one.

best regards
Jack
Pete Randall
Outstanding Contributor

Re: Create additional larger root logical volume on HPUX 11i

To utilize your make_tape_recovery backup volume to recreate your system, you boot the tape drive and then interact with the process, very similar to a cold SD install. You can change the sizes of the file systems, reallocate swap space, etc.

However, I think you really need to address the problem of what's filling your root space. If you filling your new, larger root space, where will you be then? There are lots of threads in the forums with suggestions about finding the culprit that's filling your root volume. Try a boolean search on +"root" +"full" and see what you come up with.

Pete

Pete
Clemens van Everdingen
Honored Contributor

Re: Create additional larger root logical volume on HPUX 11i

Jack,

The last answer seems OK to me.
That's the way how it could be done.

But as stated ensure yourself this is really needed. Find the big files or the lot's of smaller files before doing this.

For example with du -sk * in the root lvol.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
T G Manikandan
Honored Contributor

Re: Create additional larger root logical volume on HPUX 11i

Using this ignite tape you can rebuild the size of the root file system.This makes sure that the root file system is contigous.
Build a ignite tape using

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

Make sure that you take the entire vg00 for igniting tape.

Thanks
T G Manikandan
Honored Contributor

Re: Create additional larger root logical volume on HPUX 11i

James R. Ferguson
Acclaimed Contributor

Re: Create additional larger root logical volume on HPUX 11i

Hi Jack:

While an Ignite recovery tape to reinstall vg00 and concurrently resize your logical volumes is the simplest answer to enlarging vg00 logical volumes, that does *not* address the issue of what filled your root directory!

One likely cause is a mistyped tape device file name -- 'dev/rmt/om' instead of 'dev/rmt/0m'. Look for any non-special files in the '/dev/' directory.

Regards!

...JRF...
Khalid A. Al-Tayaran
Valued Contributor

Re: Create additional larger root logical volume on HPUX 11i

Hi,
I agree with John Waller.

Make a separate lvol for what ever use you wanted on / .


Regards,,,

Wodisch
Honored Contributor

Re: Create additional larger root logical volume on HPUX 11i

Hi Jack,

if you happen to use the "Online JFS" and "MirrorDisk/UX" then you can find a description how I did this in the past there:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x27fe660142b2d5118ff10090279cd0f9,00.html

If you don't have those installed, maybe you are looking for the description I gave there:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5d188ffa98a2d5118ff10090279cd0f9,00.html

HTH,
Wodisch
Wodisch
Honored Contributor

Re: Create additional larger root logical volume on HPUX 11i

re-hi,

and finally the link I was *searching* for:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x957b06295e00d6118ff40090279cd0f9,00.html

HTH,
Wodisch
John Waller
Esteemed Contributor

Re: Create additional larger root logical volume on HPUX 11i

Hi Jack, Sorry I didn't get back to you earlier. Did you find that mystery file ??
A command I use to find strange files is a find, e.g.

find / -xdev -type f -size +200000c -exec ls -l {} \;

This will list all files in / (only / -xdev stops going into /usr /var)over 200000 bytes in size.