Operating System - HP-UX
1832995 Members
2281 Online
110048 Solutions
New Discussion

Extending root filesystem

 
SOLVED
Go to solution
R.MAHENDRAN
Occasional Contributor

Extending root filesystem

Hi all,

I have a HP9000 system with mirrored root disks having lots of space left over.In this root filesystem is 99% and frequently fills
up to 100%.

Can any one give brief steps to extend root filesystem size?

Thanks in Advance.

With Regards
R.Mahendran.
maha
4 REPLIES 4
Sanjiv Sharma_1
Honored Contributor

Re: Extending root filesystem

Hi Mahendran,

Please check this link:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=91185

hth,
Everything is possible
Steven E. Protter
Exalted Contributor
Solution

Re: Extending root filesystem

root requires contiguous space.

Here is the only way I know to do it.

make_tape_recovery to tape

Boot system at console

Intervent with a key at the 10 second prompt.

sea

You will see a sequential device, thats your tape drive

if its P2 type this command

boot P2
N To the interact question

Watch the screen, Intervent when prompted by Ignite. Increase the size of root.

Allow the Ignite to complete the installation.

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
Sridhar Bhaskarla
Honored Contributor

Re: Extending root filesystem

Hi Mahendran,

Create a make_tape_recovery tape. If you have Online-JFS, then you can try this. Since root has to be contiguous, you 'adjust' the contiguous space.

1. Find out the next logical volume to your root file system. Say lvol4.
2. Reduce the mirrors on lvol4.

lvreduce -m 0 /dev/vg00/lvol4 /dev/dsk/cxtydz

where cxtydz is the primary disk. This will free up space after lvol3, your root logical volume.

3. Now you can extend root as it has the contiguous space available.

lvextend -L new_size_in_mb /dev/vg00/lvol3
fsadm -b m /

This should extend the filesystem.

4. Extend the mirror back to primary on lvol4.

lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/cxtydz

You may have to turn-off "strict" on lvol4 if it gives you any error.

If you don't have onlineJFS or if you have any doubts, use make_tape_reocvery process.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Bill Hassell
Honored Contributor

Re: Extending root filesystem

Although using Ignite/UX will allow you to reinstall VG00 with a larger / filesystem, HP-UX defines / as static...it never changes size unless somethingis wrong. Start by finding out what is using the space:

du -kx / | sort -rn | more

/sbin will be the largest directory, just about 20 megs. Anything larger than /sbin is stored in the wrong location. If /dev is much larger then 20 Kb, then look for files that don't belong in /dev:

find /dev -type f -exec ll {} \;

Look for some applications that were mis-installed in / rather than /opt.


Bill Hassell, sysadmin