- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: / full
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 12:37 AM
06-14-2002 12:37 AM
/ full
My root file-system / is growing and growing
more and more every day but I can't find
which files are growing-up ???
I've created a file called "NEW"
cd /
touch /NEW and 1 day later
find . -xdev -newer NEW ===> I can't find
what is growing-up so many ...
I've also performed du -kx / | sort -n ===> neither find what's growing-up
Any idea please ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 12:48 AM
06-14-2002 12:48 AM
Re: / full
Normally log files are to blame.
Do a bdf then target the dirs from root that are not mount points.
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 12:53 AM
06-14-2002 12:53 AM
Re: / full
Have a look in /dev - a common problem is doing backups to /dev/om instard of /dev/0m.
Also do a ls -lrt in /dev and look for latest files.
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 12:54 AM
06-14-2002 12:54 AM
Re: / full
Perform an lsof on /. Check for opened files that have already been deleted.
It could be that you have an opened file that you have removed but the process is still writing to it.
Examples of such possible files are mail.log, syslog.log etc. If you remove syslog.log without restarting syslogd, then the process is still writing to the opened file, consuming filesystem space in the process.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 12:56 AM
06-14-2002 12:56 AM
Re: / full
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 12:56 AM
06-14-2002 12:56 AM
Re: / full
check /etc folder a lot of application put there logs files, maybe You have OpenView software installed??? then check /etc/opt/OV, /etc/opt/omni
seba
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 01:32 AM
06-14-2002 01:32 AM
Re: / full
I think you are right, I'm not use to pratice
lsof ; are there any options I need to use ?
Thanhs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 01:47 AM
06-14-2002 01:47 AM
Re: / full
You can download the HP-UX port of lsof from here:
http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/
lsof is a must-have utility for any system administrator. You will have to rely on it to find the deleted opened file that is still being actively written into by the process.
# for file in `lsof | grep '/' | awk '{print $9}' | sort | uniq` ; do if [ ! -e $file ] ; then echo $file is a non-existing opened file ; echo "the process(es) holding onto $file is `lsof $file`" ; fi ; done
Once you have identified the process, stop (using kill if no shutdown command is available for this process) and restart it.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 01:50 AM
06-14-2002 01:50 AM
Re: / full
If it is an important system process, then do not terminate it now and there. Schedule downtime first.
The easy way out, without using lsof, is to simply reboot your server. This will clear the opened files. Again, you need to schedule downtime.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 02:58 AM
06-14-2002 02:58 AM
Re: / full
Thank you for your help but I don't find
anything ...
BR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 03:02 AM
06-14-2002 03:02 AM
Re: / full
You are probably right
any idea about how to find the faulty process ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 03:13 AM
06-14-2002 03:13 AM
Re: / full
That's all! Anything else (other than root's $HOME) are misplaced and need to be moved. As mentioned, if du can't see any growth, then likely there is a program writing to a logfile (logfiles *NEVER* go into /) and perhaps you rm'ed the file a while ago, but as long as the program keeps the file open, it will grow--and won't be visible
The only solution is a reboot. Save a copy of the sorted du output, then reboot and run it again (along with bdf). If / is back to normal (about 30-60 megs) then the above scenario was the case. It's time to cleanup / and move everything that isn't a mount point (except etc sbin and dev) to another disk. If an application (again, poorly written) can't tolerate being moved to /opt, then you can use a symlink to 'fool' the program. (you may also want to use the telephone to complain about the application's impact on your operation)
Another thing to do is to move root's $HOME. It doesn't belong in / at all. root droppings (the junk that sysadmins leave in $HOME) need to be checked regularly and if it is /, it is is difficult to see what needs to be purged. Instead, create /root, then move *all* files to that directory (no files should be in /). Finally, edit /etc/passwd and change the $HOME directory. Just to make sure everything was done correctly, stay logged in and start another session from a new location by logging in as root. If there is a problem (spelling, etc) then the current root login will let you fix it easily.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 03:15 AM
06-14-2002 03:15 AM
Re: / full
One other thing to look for is an unmounted file system. For example, if /blah is a separate file system and it becomes unmounted, user Bozo may still going to be writing output into /blah - except it's now going to end up in / instead.
Good luck,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 03:23 AM
06-14-2002 03:23 AM
Re: / full
Other way to repair you situation is to find the files open on / with lsof
Also it is interesting to look for the files that are greater than a determinated size.
So the problem is how to find this files only on / filesystem.
There is a little modification to your command that maybe can help you a little more:
du -kax | sort -n
Try this.
Juanma.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 04:20 AM
06-14-2002 04:20 AM
Re: / full
Thanks in advance.
Juanma.
Note. How is now your / file system ? Are you still on troubles ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2002 04:40 AM
06-14-2002 04:40 AM
Re: / full
the / is now used at only 35% ...
I kept about 100Mo with the reboot
I'll continue to check it and hope I'll
finally find what is wrong
Thank you very much everybody
BR