Operating System - HP-UX
1759090 Members
3362 Online
108879 Solutions
New Discussion юеВ

Re: Need extend root lvm using expert recovery shell

 
SOLVED
Go to solution
Aungshuman Paul
Regular Advisor

Need extend root lvm using expert recovery shell

Hello,

Can anyone help me about extending the root LVM using the expert recovery shell after boot the system using internal OS DVD?

Currently I dont have any ignite backup.

Aungshu
14 REPLIES 14
R.O.
Esteemed Contributor
Solution

Re: Need extend root lvm using expert recovery shell

Hi,

Look at this LVM recovery document:

http://www13.itrc.hp.com/service/cki/docDisplay.do?admit=109447627+1274095375111+28353475&docId=emr_na-c01037913-4&docLocale=en

And go to "Increasing root lv`s size, unofficial procedure"

Regards,
"When you look into an abyss, the abyss also looks into you"
Aungshuman Paul
Regular Advisor

Re: Need extend root lvm using expert recovery shell

Thanks, Its a nice doc. I will let you know after update the ROOT LVM.
rariasn
Honored Contributor

Re: Need extend root lvm using expert recovery shell

Bill Hassell
Honored Contributor

Re: Need extend root lvm using expert recovery shell

Increasing the / directory is almost never required. A search of the HP-UX Forums will show you hundreds of posts requesting this operation but by simply fixing broken procedures. The most common problems with excessive / growth are:

1. Misspelling a backup device, thus filling /dev with a massive file.

2. Using / for general storage or worse, application storage.

3. Defective scripts that create thousands of small junk in /.

So, analyze the root directory and find out why / needs to be larger than 300-500 MB. Use this command:

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

The largest directories are at the top of the list. The two largest directories are /sbin and /etc. Here are examples of 4 versions of HP-UX simple installs:

11.00
/etc = 23 MB
/sbin = 11 MB

11.11
/etc = 63 MB
/sbin = 37 MB

11.23
/etc = 190 MB
/sbin = 98 MB

11.31 (PARISC)
/etc = 213 MB
/sbin = 113 MB

11.31 (Itanium)
/etc = 56 MB
/sbin = 170 MB

/dev is always less than 100 KB. IF larger, use this to find the mistakes:

find /dev -type f

No ordinary files are ever to be stored in /dev. If there are large files stored in /, they typically are there because root's HOME directory is /, the worst possible location. The HOME directory for root needs to be moved, along with all the "root-droppings" that are filling the / directory.

>> Currently I dont have any ignite backup.

Don't even think about resizing the root volume without an Ignite backup. All of the procedures to resize the root volume can seriously damage your system.


Bill Hassell, sysadmin
Aungshuman Paul
Regular Advisor

Re: Need extend root lvm using expert recovery shell

Thanks.Actually the system still in 1st phase of implementation. The SAP consultant want to increase the root from 1GB to 10 GB. Even though they dont give us any justification, why they need 10GB of root partition.

Most probably we will go reinstall the OS then restore all other VG configuration from backup.

But, Thanks all of you for nice post.

Aungshu
atul2701
Frequent Advisor

Re: Need extend root lvm using expert recovery shell

Hi

IF your VG00 is mirrored u can do it online. Procedure attached.

But take the ignite backup before.

Atul Gupta
R.O.
Esteemed Contributor

Re: Need extend root lvm using expert recovery shell

"The SAP consultant want to increase the root from 1GB to 10 GB"

You should ask him why he wants to increase root FS in 9Gb. He must have its application in dedicated FS other than root.

Regards,
"When you look into an abyss, the abyss also looks into you"
Torsten.
Acclaimed Contributor

Re: Need extend root lvm using expert recovery shell

>> The SAP consultant want to increase the root from 1GB to 10 GB. Even though they dont give us any justification, why they need 10GB of root partition.


IMHO a totally wrong decision.


All data should be in another VG, not vg00.

Create a new VG on a new disk!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Bill Hassell
Honored Contributor

Re: Need extend root lvm using expert recovery shell

Your SAP consultant is not very familiar with HP-UX systems at all. Making the / mountpoint = 10 GB is simply insane, probably because the consultant is used to running tiny workstations where everything is stored in one big directory. There are so many things wrong with a giant partition, not the least of which will be your ability to create an Ignite backup. SAP is an application just like Oracle. The code must be installed in /opt (which might need to be increased to 2GB to 4GB) but the data belongs in another volume group, NEVER vg00 and certainly NEVER in the / directory.

If you are the system administrator, remember that you will be blamed for the future problems, long after the SAP consultant is gone and forgotten.


Bill Hassell, sysadmin