Operating System - HP-UX
1850406 Members
2426 Online
104054 Solutions
New Discussion

Re: Root filesystem size problem

 
SOLVED
Go to solution
Venkat_33
Frequent Advisor

Root filesystem size problem

Hi,

We have progress database runing on HPUX and last week i saw the root filesystem 60% free space and today it suddenly decrease to 12% then i restart Progress DB now its came again in normal size ie 60% free size

Pls what would be problem y it happened
12 REPLIES 12
Arunvijai_4
Honored Contributor

Re: Root filesystem size problem

Is progress DB creating any temp files in / ? Just check the temp files created by Progress DB.

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

Re: Root filesystem size problem

Monitory / file system by starting DB. Are you sure that only application is using / file system. Is there anyone working in that machine.

du -k / | sort -rnk 1 | more

check this to find most disk using files.

-Muthu
Easy to suggest when don't know about the problem!
Sivakumar TS
Honored Contributor

Re: Root filesystem size problem

Dear Venkat,

temp files would be the cause of the issue.

Please check wether the system has a separate /tmp filesystem or it is part of the / ( root ) filesystem. I supspect this !

With Regards,

Siva.
Nothing is Impossible !
Venkat_33
Frequent Advisor

Re: Root filesystem size problem

how to check wheterh tmp is separeate filesystem or its under tmp

and also after restart the db how tmp well clear its automatic process
Venkat_33
Frequent Advisor

Re: Root filesystem size problem

how to check wheterh tmp is separeate filesystem or its under tmp

and also after restart the db how tmp file will clear its automatic process
Howard Marshall
Regular Advisor
Solution

Re: Root filesystem size problem

Use df -k or bdf to check which file systems are mounted

If /tmp is in the list then itâ s a separate file system, otherwise its part of the root file system. Having it part of the root file system is generally a bad idea because you don't really want to fill up your root file system but filling up /tmp is less an issue and easier to recover from.

Something else to consider is the progress db home directory, whether its on the root file system or not, the db could be creating a startup, run, or shutdown log somewhere that gets removed and re-created when the db restarts.

I have a sneeking suspicion that this is one of those things that you are probably never going to see again but if you do here is a good way to check it.

Run this command before and after you start the database to get an idea of where and what is taking up space on the root file system

du -xk / | sort -nr | head -50 > /tmp/du_before.out

After you restart the db and the space is back to 40% free run the same command except redirect it to /tmp/du_after.out and compare the first few lines of the out files. That should tell you where the log files or what ever are.

H
Andy Torres
Trusted Contributor

Re: Root filesystem size problem

Run "bdf /tmp" and it will tell you what filesystem it is a part of (last column).
Example:

# bdf /tmp
Filesystem----------kbytes----used---avail-----%used----Mounted on
/dev/vg00/lvol5-----524288---3400--516944-------1%----/tmp
Mark Ellzey
Valued Contributor

Re: Root filesystem size problem

Venkat,

I hope you don't have the DB in the root filesystem. Nothing should be in the root filesystem except OS directories and mountpoints.

As mentioned above, you may have some process writing a temp file to root. Not a good idea. Find the process and change it to write to /tmp. That's what /tmp is there for.

Also, check your .bi and .ai files. As I remember, they can grow quite large, if they are not configured correctly. Use promon to check your configuration.

Regards,
Mark
Geoff Wild
Honored Contributor

Re: Root filesystem size problem

So - you want tmp like on Solaris?

Want /tmp to really be temporary?

Just vi /etc/rc.config.d/clean_tmps and set CLEAR_TMP=1

On next boot - /tmp will be empty!

# cat /etc/rc.config.d/clean_tmps
#!/sbin/sh
# @(#)B.11.11_LR
# List and/or clear temporary files
#
# LIST_TEMPS: Set to 1 to produce a listing of temporary files at startup.
#
# CLEAR_TMP: Set to 1 to remove all files from /tmp at startup.
#
LIST_TEMPS=1
CLEAR_TMP=0

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Raj D.
Honored Contributor

Re: Root filesystem size problem

Venkat ,

Check if /tmp is a separate FS or its a directory on root.

# bdf | grep tmp
or
# bdf /tmp


Also you can cheeck the root filesystems , largest files with this command:

# cd /
# find / -type f -xdev -exec ls -l {} \; > /tmp/out.txt
# ls -l | sort +4 -5nr | head -30
[ To see 30 largest file ]

And hope fully u can find something , about abnormal space reduction.


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

Re: Root filesystem size problem

sorry for wrong syntax in my last post.

After find is complete , the command is , instead of : ls -l | sort +4 -5nr | head -30

its,
# cat /tmp/out.txt | sort +4 -5nr | head -30

Hope u can find something , which consuling much space in root. Also u can get this , when the sizeis 12% free and when the size become 60% free , to know what is exactly happening , and where is the difference.

hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "