Operating System - HP-UX
1838491 Members
3142 Online
110126 Solutions
New Discussion

Re: increase root filesystem and volume group

 
Luis Varon
Occasional Advisor

increase root filesystem and volume group

Hi,

has someone an idea how to increase the file of the logical volume (/dev/vg00/lvol3 mounted on /) and of the corresponding volume group (dev/vg00).

I have read the documentation for hpux-11.00 but i cannot umount the / filesystem as described in the documentation.

As i'm not sitting in front of the terminal i don't know if i can terminate all the processes with fuser because i think that there are some processes i although use to connect to the machine.

Many thanks in advance.

Regards

Luis Varon
lvaron
9 REPLIES 9
Stefan Farrelly
Honored Contributor

Re: increase root filesystem and volume group

Lvol3 is a contiguous volume - you wont be able to extend it (it is actually possible but its a long difficult process as you need to move lvol4 first).

The easy and supported way to extend lvol3 is to use Ignite to make a bootable DDS recovery tape, then boot off the tape, and rebuild your entire vg00 - this then gives you a chance via a menu to increase the size of any lvol in VG00. It will take a few hours to do though.

Usually lvol3 should never increase in size. If you have it increasing then someone/something is putting files into it that they shouldnt be doing. Try to find the files and move them and stop it recurring.
We never need to increase lvol3 on any of our servers - once its set when the system is built it stays that size forever.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Luis Varon
Occasional Advisor

Re: increase root filesystem and volume group

You are right.

Normally you don't have to increase this filesystem but i have a problem that a file or a link is on this filesystem which has taken more than 60% of my free space in this filesystem so that no its to 100% full.

I still haven't found this file or link and the fsck only brings me that there are some problems but the fsck seems not to be able to fix it.

I wanted to increase the / filesystem, so that i could continue with the installation of the machine.

Regards

Luis Varon
lvaron
Vicente Sanchez_3
Respected Contributor

Re: increase root filesystem and volume group

Hello Luis,

Before re-install, have you look for that file?.

You can use du to locate a directory with an anormal size.

You can use find with -size option to look for a sized file.

I think that you can waste several minutes to check it before re-install.

But, do the Ignite tape, you'll have a backup copy.

Regards, Vicente.
Michael Tully
Honored Contributor

Re: increase root filesystem and volume group

/dev/vg00/lvol3 should virtually never need to e increased. As stated by Stefan it is contiguous, which basically means all of it's extents must be in runnning order with no gaps. About the only this can be fixed is with an ignite tape.
If you have a space problem, this can be caused by a backup that has gone wrong or a file that has been placed there by mistake.

Try this, this should give you allfiles over 1Mb

# cd /
# find . -xdev -size 100000c -print
Anyone for a Mutiny ?
Adisuria Wangsadinata_1
Honored Contributor

Re: increase root filesystem and volume group

Hi Luis,

The / file system and /stand file system can't be extend by 'lvextend' since these file system is a contigious file system.

To extend these file system, I refer you to use the features of Ignite/UX. This software is free software and available at this url below :

http://www.software.hp.com/products/IUX/index.html

After you install this software, here is the steps that you need to extend the / file system :

1. Create a bootable Ignite/UX backup tape
using 'make_tape_recovery' command
2. Boot the system from Ignite/UX backup tape
3. Recreate the space for / file system

These steps can be done if you don't have the OnlineJFS software in your system.

If you already have the OnlineJFS on your system, I refer you the document at this url below :

http://itrc.hp.com/cki/bin/doc.pl/screen=ckiSearchResults?mode=id&searchString=KBRC00006582

To check whether your system have Online JFS or not, please use the command below :

# swlist -l product |grep Online

It will show you the line like below :
OnlineJFS 3.3 JFS 3.3 online (Advanced) filesystem features

After you extend the / file system, you can extend your VG (volume group) by adding the disk into your VG.

Hope this information can help you.

Best Regards,
AW



now working, next not working ... that's unix
Wodisch
Honored Contributor

Re: increase root filesystem and volume group

Hi Luis,

first the solution to your problem would be to find the culprit, the process/file(s) occupying that much space, of course.

But if you need to increase the LVOL3 and you happen to have the OnlineJFS (=Advanced VxFS) installed *and* you've got a free disk in your VG00, then you can actually do this!

The whole trick is to "pvmove" LVOL1, LVOL2, and LVOL3 to the new bootdisk, then increase LVOL3 and then its filesystem there, then move the rest of the *old* bootdisk, and then move everything back.
Don't forget the proper "lvlnboot" commands at the end, or your system won't boot any more!

Make a system backup (make_tape_recovery -A) first!

FWIW,
Wodisch
Michael Langas
Advisor

Re: increase root filesystem and volume group

From what I've read, I'm willing to bet that someone put data in a directory while the filesystem in question was not mounted. For example: maybe /opt was unmounted and someone installed some sofware that goes in /opt. Later /opt gets mounted again. Now you have data taking up space on vg00/lvol3 and can't find it because /opt is now mounted. I would bring it down to single user and use du to see if that's the case.
Michael Steele_2
Honored Contributor

Re: increase root filesystem and volume group

This seems to be a two part question: Part One / is filling up.

find /dev -type f (* delete anything in /dev that comes back *)

du -x / | sort -rn | more (* sorts / largest to smallest *)

quot / (* lists out owners, note anyone who doesn't belong, i.e., bill_the_admin *)

find / -xdev -ctime 0 (* 0 is for today - last file access today *)

Second Phase, extending lvol3. I'd reinstall via an Ignite make_tape_recovery tape in a heartbeat. It's not going to take you very long and all of this searching around is way too much work. Really, the Ignite reinstall is a piece of cake.
Support Fatherhood - Stop Family Law
Chris Fadrowski
Super Advisor

Re: increase root filesystem and volume group

the easiest way i have found is to make_recovery -p and changet the file it outputs using vi. Then make_recovery -r to resume. Once you have the tape, you just install the system back with the ignite tape. I have done this before on my / volume lvol 1 and it works.