- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /usr has grown 20% since Friday
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
10-20-2008 06:01 AM
10-20-2008 06:01 AM
Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 06:04 AM
10-20-2008 06:04 AM
Re: /usr has grown 20% since Friday
find /usr -mtime -1
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 06:06 AM
10-20-2008 06:06 AM
Re: /usr has grown 20% since Friday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 06:19 AM
10-20-2008 06:19 AM
Re: /usr has grown 20% since Friday
I love referencing this I use it A LOT!!!!
To remove dated files. Can be modified to remove sized files as well.
# touch -amt 200504150000 /tmp/ref1
# touch -amt 200802282359 /tmp/ref2
# find /opt/mtmc/ibs/import/reject -xdev -type f -newer /tmp/ref1 -a ! -newer /tmp/ref2 -exec rm {} \+
This will remove files that are newer (more recently modified) than April 15 at 0000 AND NOT newer than Feb, 28th 2359 of this year, modofy the times as needed, here is a bit of a guide.
time Use the specified time instead of the current time.
The option argument is a decimal number of the form
[[CC]YY]MMDDhhmm[.SS]
where each two digits represents the following:
CC The first two digits of the year.
YY The second two digits of the year.
MM The month of the year (01-12).
OR some other useful ones are:
1. find /usr -xdev -depth -size +7000 â xdev -exec ll {} \; | more
(finds files larger than 7000k)
2. find /usr -type f -size +1000000c -xdev -exec ls -l {} \;
(if you want to search for a number of characters try the lower case c after the number)
OR
3.find /usr -xdev -size +1000000c -exec ll {} \;
(searches for directories as well as files.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 07:05 AM
10-20-2008 07:05 AM
Re: /usr has grown 20% since Friday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 07:14 AM
10-20-2008 07:14 AM
SolutionI have to wonder if there was a file, now deleted, that the space has not been given back yet. You can use lsof to find such a thing: # lsof +L1
Take a look at this thread:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1129437
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 09:10 AM
10-20-2008 09:10 AM
Re: /usr has grown 20% since Friday
lsof helpded me clean up the processes which immediately freed things up.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 09:11 AM
10-20-2008 09:11 AM
Re: /usr has grown 20% since Friday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2008 09:24 AM
10-20-2008 09:24 AM
Re: /usr has grown 20% since Friday
I would take a long, hard look at those processes. It just doesn't seem right to me that they're writing to /usr - far more appropriate would be /var/tmp or something similar.
Pete
Pete