- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Root partition
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
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
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
тАО12-20-2006 02:34 AM
тАО12-20-2006 02:34 AM
Root partition suddenly increased to 8% growth yesterday. How to find out the new files are added in yesterday in root partition for removal.
Thanks,
Rao
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2006 02:39 AM
тАО12-20-2006 02:39 AM
Re: Root partition
Can you elaborate on '...root partition...'?
a) lvm or vxvm?
b) how are you defining partition? rootdg? vg00? lvol3? / (root) file system?
If file system / (root) then use 'du -k | sort -rn | more'
-or-
# find /dev -type f (* there should only be device files in /dev*)
-or-
# quot / (* list of owners, not very helpful but sometimes useful *)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2006 02:42 AM
тАО12-20-2006 02:42 AM
Solution1. Print out files that have been modified/added in the past 24 hours
# find / -mtime -1 -print
2. Print all files that are over a certain size - example is 2MB
# find / -size +2000000c
3. I have attached a script that I got on this forum that I use all the time for this sort of thing. It will give you the top 20 directories and the sizes...our root partition went to 100% yesterday and this script showed me right away where the problem was.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2006 02:43 AM
тАО12-20-2006 02:43 AM
Re: Root partition
1. Print out files that have been modified/added in the past 24 hours
# find / -mtime -1 -print
2. Print all files that are over a certain size - example is 2MB
# find / -size +2000000c
3. I have attached a script that I got on this forum that I use all the time for this sort of thing. It will give you the top 20 directories and the sizes...our root partition went to 100% yesterday and this script showed me right away where the problem was.
usage: # ./top20.sh /directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2006 02:47 AM
тАО12-20-2006 02:47 AM
Re: Root partition
how about:
#create a temp file with a creation date of 24 hours ago (see man touch)
#touch -mt 200612190000 /tmp/myref
# find /path -xdev -type f -newer /tmp/myref
or
find / -mtime 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2006 02:50 AM
тАО12-20-2006 02:50 AM
Re: Root partition
As has been mentioned many times in the past, UNIX has no notion of creation time of a file. A file's mtime (last modified time) serves as a pseudo-creation time, as long as the file hasn't been modified since it was created.
To make sure you get all of yesterday, and just yesterday, create two reference files and use find's '-newer' primary.
$ touch -t 12190000 /tmp/ref1
$ touch -t 12200000 /tmp/ref2
$ find / -xdev -type f \( -newer /tmp/ref1 -a ! -newer /tmp/ref2)
$ rm /tmp/ref[12]
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2006 03:25 AM
тАО12-20-2006 03:25 AM
Re: Root partition
I appreciate everyone with promt response. I found the file which has grown (rc.log) too much.
Regards
Rao
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2006 06:06 AM
тАО12-20-2006 06:06 AM
Re: Root partition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2006 07:20 PM
тАО12-20-2006 07:20 PM
Re: Root partition
Mark Syder (like the drink but spelt different)