- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- find files modified in last n days
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
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
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-20-2010 10:03 PM
тАО06-20-2010 10:03 PM
Can someone help me find files that might have been modified in, e.g., the last 4 days ? We can restrict our search to a particular mount point.
The scenario is as such:-
We have a 2-node SG cluster in the production environment. In the node (which is the database server), the $ORACLE_HOME (/oracle/N11/920_64/ or LV /dev/vg04/lvol10) has the problem of frequently getting full and this finally hangs the database and our users can no longer log into SAP. We identified the culprit file to be /oracle/N11/920_64/network/log/listener.log.
We are planning to extend this LV, as it is only 3 GB and the problem is a frequently recurring one (once in a month). But in the meantime we figured out that we can trim the listener.log file (or back it up and touch a new one).
Last time, on May 13 2010, we moved the approx 645 MB log file elsewhere (to /tmp) and touched a new listner.log, rebooted the node - the "space freed" reflected and everything went fine. This time, on June 16 2010, we repeated the same activity, however, we have not taken a node reboot so far. "Space freed" is reflecting in `du -sk` although not in `bdf`. But the new listener.log is not growing this time.
Today, bdf output is showing:-
# bdf /oracle/N11/920_64
Filesystem kbytes used avail %used Mounted on
/dev/vg04/lvol10 3145728 2911000 234120 93% /oracle/N11/920_64
and ...
# du -sk /oracle/N11/920_64
2477552 /oracle/N11/920_64
%used is about 79% used, as we can see. But in the last 4-5 days, %used in bdf has changed from 90% to 93%. Since listener.log is not growing at all, how can we find out where LISTENER is actually writing to?
Can we actually find out files being updated in the last 4-5 days in HP-UX ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2010 10:21 PM
тАО06-20-2010 10:21 PM
Re: find files modified in last n days
./network/log/listener.log
./network/log/.rhosts
./rdbms/audit/ora_15428.aud
./rdbms/audit/ora_17357.aud
./rdbms/audit/ora_21286.aud
./rdbms/audit/ora_29374.aud
./rdbms/audit/ora_29534.aud
./rdbms/audit/ora_29567.aud
./rdbms/audit/ora_2826.aud
Possibly, this is showing files modified in the last 4 days. Although, listener.log is on top of the list, why is then the file still 0 ...
# ll /oracle/N11/920_64/network/log/listener.log
-rw-rw-rw- 1 root sys 0 Jun 16 15:47 ./network/log/listener.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2010 10:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2010 10:35 PM
тАО06-20-2010 10:35 PM
Re: find files modified in last n days
>Can someone help me find files that might have been modified in, e.g., the last 4 days ?
Suppose todays date is : 06 21 2010 : 900am
To find files created or modified since last 4 days:
1. # touch -t 061720100900 /tmp/ref4days-ago
2. # find / -type f -newer /tmp/ref4days-ago -exec ls -l {} \; > last_4days_files.txt
Enjoy , Have fun!,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2010 10:59 PM
тАО06-20-2010 10:59 PM
Re: find files modified in last n days
Is permission of listener.log file is OK or KO.??
if log are not generated then you need to restart the listner /or bouncing of DB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2010 11:27 PM
тАО06-20-2010 11:27 PM
Re: find files modified in last n days
Sanjeev > very great suggestion. thanks. I have created a link under /tmp and also changed the ownership of the target file. Will need to check in the next 24 hrs - else will restart the listener. However,
>> if log are not generated then you need to restart the listner /or bouncing of DB
did not understand the "bouncing of DB" part. Can you pls elaborate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2010 12:10 AM
тАО06-21-2010 12:10 AM
Re: find files modified in last n days
Bouncing of the DB , for listener log **
In my view just lsnrctl reload or at the max ...lsnrctl
regards ,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2010 02:07 AM
тАО06-21-2010 02:07 AM
Re: find files modified in last n days
This is a symptom of the process hasn't been restarted (bounced) and is still writing to the old, removed file. find(1) will not find this file and you must use lsof.
>Since listener.log is not growing at all, how can we find out where LISTENER is actually writing to?
You can't, the file was removed but still open.
>Can we actually find out files being updated in the last 4-5 days in HP-UX?
Only the files that weren't removed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2010 12:16 AM
тАО06-24-2010 12:16 AM