- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- root f.s is filling up
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
08-04-2004 10:41 PM
08-04-2004 10:41 PM
root f.s is filling up
the root file system is filling up by 5% every day.I checked fore large files using find cm but could not find any,I used the syntax:
#find / -xdev -size +10000.. up to 7 zeros.
if the syntax is wrong please inform me.
Obviously some file is getting big all the time,how can I find it?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 10:45 PM
08-04-2004 10:45 PM
Re: root f.s is filling up
ll|sort -k5,5nr|pg
This will sort the files in size order, largest first.
If the file that's growing isn't one of the top ones in that list, try:
ll -t|head
This will sort the files by time order, most recent first. By default, this will show 10 files, but you can change that if you want.
It's likely that the file that's growing should be in a different filesystem.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 10:51 PM
08-04-2004 10:51 PM
Re: root f.s is filling up
Problem could be a lot of files getting a bit bigger like the system logs and you will never see it.
ll -tra /
will show what changes and then look there
If the last articles are directories then
ll -tra /dir to check that one
Or touch a reference file and then use it in
find / -type f -xdef -newer /touchedfile|xargs ll -d
Then you will have a list of all files modified since you made the file
Every 24 hours you could run this and then touch the file agaian
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 10:55 PM
08-04-2004 10:55 PM
Re: root f.s is filling up
It may be felling with many but no such large files...
But you can simply try this (why using -xdev ?):
find / -size +10000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 10:58 PM
08-04-2004 10:58 PM
Re: root f.s is filling up
du -k|sort -k1,1nr|pg
This will tell you which directories are taking up the most space. Make sure you ignore those which are in separate filesystems.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 11:00 PM
08-04-2004 11:00 PM
Re: root f.s is filling up
find / -size +10000 -exec ll -ct {} \;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 11:05 PM
08-04-2004 11:05 PM
Re: root f.s is filling up
what about writing the contents of the root FS to a file, then do the same next day and compare them with diff ?
So you'll see exactly what has changed
For example
ls -lR / > test1
ls -lR / > test2
diff test1 test2
Regards
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 11:08 PM
08-04-2004 11:08 PM
Re: root f.s is filling up
You could try with SAM Routine task > Selective File Removal. There you could place your search criteria.
Beginning Search Path: /
Cross Mount Points: No
Minimum Size (bytes): 10000
Time Since Last Modification (days): 1 or as you want.
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 11:24 PM
08-04-2004 11:24 PM
Re: root f.s is filling up
find / -xdev -size +100000
du has a similar construct to xdev which is -x so:
du -x | sort -nr | more
And of course the ll listed above to check you're current directory.
A common scenario is to find a file in /dev/rmt where someone mistyped the tape device file name and created a huge file down there.
Non device files in /dev:
find /dev -exec ll {} \; | grep "^\-"
Best regards,
Kent M. Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2004 07:13 PM
08-05-2004 07:13 PM
Re: root f.s is filling up
how about combining with any of these switches?
find -mtime n
find -atime n
this may tell recent changed files.
rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2004 07:18 PM
08-05-2004 07:18 PM
Re: root f.s is filling up
you might as well create a dummy file yourself of whatever size you want to preserve for the / file systm.
so you can delete it when needed.
just to prevent a major problem.
rgds.