Operating System - HP-UX
1826362 Members
4680 Online
109692 Solutions
New Discussion

extending filesystem problems

 
Nial Gunn
Frequent Advisor

extending filesystem problems

Hi I am new to Openview /HPUX. I have taken over from a colleague.
I have extended a filesystem (lvol4 mounted on /opt as it was 100% full) on one of our boxes, by putting the system in single user mode, umount /opt and using lvextend -L (size) /dev/vg00/lvol4
I increased the size by 200mb. I then typed extendfs /dev/vg00/rlvol4 re-mounted the file and reebooted the machine. The /opt filesystem is now bigger but the /
filesystem is now full. Prior to extending /opt it was 400mb in total size with 190mb free. when I try to logon to the box I get an error stating the desktop messaging system could not be started. I tried to umount / with the system in single user mode but was unable to. the system said / was busy.
5 REPLIES 5
Simon Hargrave
Honored Contributor

Re: extending filesystem problems

If it filled up recently, then try and find files modified since this morning.

# touch 12080000 /tmp/thismorning
# find / -xdev -newer /tmp/thismorning -exec ls -ld {} \;

This will list all files touched since 00:00 on 12th august, then see if there are any large files. Possible culprits are core files etc.
Pete Randall
Outstanding Contributor

Re: extending filesystem problems

No, you can't unmount /. The only way to enlarge it is to create an Ignite backup tape and boot off it to rebuild your root volume, enlarging file systems in the process.

You would be better off to find out what is filling /. Try running "du -sk /* |sort -n". This will give you a list in ascending size order of all the things in /. You will need to ignore the mounted file systems - you can tell these from "bdf" output. Look for core files, logs, any large files which don't belong in / and get rid of them.


Pete

Pete
Todd McDaniel_1
Honored Contributor

Re: extending filesystem problems

Nial...

one more thing, since you said you are new, I would run:

# swlist -l patch |grep -i JFS

If you have that product loaded you can extend filesystems while the box is running.

also, id look for any core files in / as well...

also, read your "dmesg" output... to find any errors also, look in syslog... just type dmesg at the prompt.
Unix, the other white meat.
Cem Tugrul
Esteemed Contributor

Re: extending filesystem problems

Hi,

i am agree with Pete...As you mentioned
it seems (Fs) it was normal till extending
FS and the symptom seems generated some big
core files while this processes so
try to find out these core files;
find . -name core -exec ll -d {} \;

Good luck,
Our greatest duty in this life is to help others. And please, if you can't
Mel Burslan
Honored Contributor

Re: extending filesystem problems

Nial,

I will say what Bill Hassell says to those who wants to extend root filesystem, i.e.,"/":

/ is static and does not need to grow. Whatever it is created at the installation time is usually more than sufficient for the lifetime of the OS at that version. If your / is somethign like 200 MB or so for hpux 11.x, you should be in good shape. The filling up of / is a problem that you need to find the root cause of and eliminate as extending / is painful at best.

Most common causes of / filling up are

(*)some application coredumping into /
REMEDY:
put this in cron:
0 0-23 * * * find / -xdev -name core | args rm

(*)somebody has addressed a device (most likely a tape drive) with a wrong name and dump huge amount of data into /dev
REMEDY:
find /dev -size +10000c
and see if these files are deleteable (they should be) and delete them.

(*) somebody (usually a junior admin) thinks it is okay to store temporary files in /
REMEDY:
Talk to this person and tel him/her not to do that.

I am sure there are more but these are the main causes for / filling up headache.
________________________________
UNIX because I majored in cryptology...