- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to check the files increasing in drive
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-26-2009 05:01 AM
10-26-2009 05:01 AM
How to check the files increasing in drive
In HP unix server, the drive disk01 keep on increasing nearly 2 GB daily, Now its reached 91 %. How to check which directory files are creating up to date.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2009 05:05 AM
10-26-2009 05:05 AM
Re: How to check the files increasing in drive
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2009 05:15 AM
10-26-2009 05:15 AM
Re: How to check the files increasing in drive
Example :-
cd /disk01
du -sk *
(look for directory /files has biggersize)
or
find /disk01 -xdev -type f -size +5000000c -exec ll {} \; | sort -nk 5
HTH,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2009 05:19 AM
10-26-2009 05:19 AM
Re: How to check the files increasing in drive
obelix:/>du -sk
Many folders and subfolders are in disk01, i need to check which folder files are creating.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2009 05:21 AM
10-26-2009 05:21 AM
Re: How to check the files increasing in drive
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2009 05:27 AM
10-26-2009 05:27 AM
Re: How to check the files increasing in drive
Above input by you, looks like you may disk problem ?
bdf
dmesg
check /var/adm/syslog/syslog.log
cd /disk01
find . -mtime -1 -exec ll -t {} \;
find . -mtime 0 -size +500 -exec ll -t {} \; |more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2009 05:35 AM
10-26-2009 05:35 AM
Re: How to check the files increasing in drive
when using du -sk, it is showing the used space of disk01, i need to check the files which are recently updated in a directory in disk01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2009 05:55 AM
10-26-2009 05:55 AM
Re: How to check the files increasing in drive
why are you doing # du -sk /disk01 ?
you should
cd /disk01
du -sk *
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2009 05:57 AM
10-26-2009 05:57 AM
Re: How to check the files increasing in drive
i Need to check Latest Files generating in MOUNT point disk01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2009 06:02 AM
10-26-2009 06:02 AM
Re: How to check the files increasing in drive
Any helps from the above commands earlier post
cd /disk01
find . -mtime -1 -exec ll -t {} \;
find . -mtime 0 -size +500 -exec ll -t {} \; |more
or
>>Latest Files generating<<<<<
cd /disk01
ls -lrt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2009 08:49 AM
10-26-2009 08:49 AM
Re: How to check the files increasing in drive
In this sort of case, you would use the find command, as Johnson pointed out, with the mtime parameter. However, the mtime parameter only granularizes down to the day so, if you want to narrow your search further you will have to use the "-newer" option to compare to a reference file. First use the "touch" command to create your reference file with a time stamp of an hour ago, then run the find command:
find /disk01/* -newer my_reference_file
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2009 05:09 PM
10-26-2009 05:09 PM
Re: How to check the files increasing in drive
du -kx /disk01 | sort -rn | head -20
This will show the top 20 directories (change head -20 to see more) sorted largest to smallest. Remember, you are not looking for the biggest files! You are looking for the biggest directories, specifically the directories that are growing. Once these are identified, you can determine what is the purpose of the files in that directory. Sort the files in that directory by size like this:
ls -la /disk01/someDirectory | sort -rnk5
Then sort the files by the last modification (change) time:
ls -lart /disk01/someDirectory
The newest files will be at the bottom of the list.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2009 05:40 PM
10-26-2009 05:40 PM
Re: How to check the files increasing in drive
Best option is find command search for size dont put any other thing like "-exec ls -l {} \; "
just give simple find command after 10 min run again the same and compair the both output you came to know the file.
find /disk01 -size +100000 -print
Suraj