Operating System - HP-UX
1847350 Members
5865 Online
110264 Solutions
New Discussion

Re: Increasing Root File System

 
Senthil_15
Occasional Advisor

Increasing Root File System

Will someone explain me the procedure of increasing root filesystem(LVM) in HP-UX 11.11
9 REPLIES 9
Arunvijai_4
Honored Contributor

Re: Increasing Root File System

Hi Senthil,

Extending root
==============

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.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Adisuria Wangsadinata_1
Honored Contributor

Re: Increasing Root File System

Hi Senthil,

I refer you to use Ignite/UX.
This is the safest way to increase root file system.

Check your system first, whether you have Ignite/UX software on your system or not :

# swlist -l product |grep -i ignite

If you dont have it, you can get it from HP website at this url below :

http://www.docs.hp.com/en/IUX/download.html

If you already have, use 'make_tape_recovery' command to create a bootable Ignite/UX backup tape .

To increase, you just need to boot from the bootable Ignite/UX backup tape & do adjustment on the root file system size.

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
RAC_1
Honored Contributor

Re: Increasing Root File System

while there are unsupported methods, you should really take ignite archive and re-install it through most recent ignite images. At the time of isntallation, you can do resizing.
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: Increasing Root File System

Shalom Senthil,

Reducing the logical volume after root is not supported for a very good reason. It can cause problems and you may render your system unusable from the procedure. I strongly recommend against it.

If you called HP support with your question they would tell you the only supported methods involved making a make_tape_recovery or make_net_recovery Ignite backup and restoring, intervening at the proper point to set a larger root filesystem.

There is rarely a need for a root filesystem bigger than 500 MB. If you have this need, you are storing files there that should be on other filesystems.

A look at

du -k | sort -rn | more

might prove useful in finding the real problem. I admin many systems that do well with less than 200 MB on the root fs, though my default preference is 512 MB.

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
Raj D.
Honored Contributor

Re: Increasing Root File System

Good day! Senthil,


An easy way to increase the size of the root (/) volume is by using Ignite-UX's make_recovery commands. First make a recovery (backup) archive of your root volume using make_recovery, make_tape_recovery, or make_net_recovery. Then interact with the recovery menu to change the root volume size when recovering the system from the archive.

For more details: see Chapter 11 in the Ignite-UX Administration Guide, available on the Instant Information CD and on the web:


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: Increasing Root File System

Senthil,

You can check this further:

Ignite-UX Administration Guide:

http://docs.hp.com/en/B2355-90772/index.html

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Bill Hassell
Honored Contributor

Re: Increasing Root File System

The problem is a lot easier to solve than trying to extend the / filesystem. There are only a few small directories in / so it needs to be 100 to 200 megs. If it is full, there are very likely wrong difrectories located in the / filesystem. Use this command to analyze where the space has been used:

du -kx / | sort -rn | head -20

The largest directory under / must be /sbin followed by /etc. If /dev appears in this list, run this command:

find /dev -type f

There should be *NO* files listed. If there are, they are mistakes and should be removed. The /dev directory should have only directories and device files and will be only be about 75-150K in size.

There may be some core files from crashed programs. The / directory should not be the HOME directory for root, nor should it be the working directory for applications. Core files can be automatically suppressed with "ulimit -Sc 0" in /etc/profile, and application startup scripts should cd to the application's temp directory.

Many programs and applications wrongfully install themselves in / without asking. These should be moved to proper directories such as /opt.

The / directory is too important to allow junk files to exist. By controlling /, the need to extend it (again and again...) will be eliminated and the system will be more stable.


Bill Hassell, sysadmin
Asif Sharif
Honored Contributor

Re: Increasing Root File System

Hi Senthil,

Please look into below thread. And download Shameer document. It will help you.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=983018

Regards,
Asif Sharif
Regards,
Asif Sharif
AwadheshPandey
Honored Contributor

Re: Increasing Root File System

You should take a ignite backup, check if ignite is there.
swlist | grep -i ignite

make a ignite recovery tape
make_tape_recovery -Av -a /dev/rmt/#mn ( tape device)
reboot the system
shutdown -ry 0
halt the system at main menu
Main Menu > sea
it will search for bootable device
boot with tape
Main Menu > boot p#
select no to boot the system without isl. you are able to increase root file system while instaling the system. it will create same image of system with increased root file system.

Cheers,

Awadhesh
It's kind of fun to do the impossible