- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to identify any processes running on a hug...
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
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
тАО03-03-2011 10:19 AM
тАО03-03-2011 10:19 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2011 10:23 AM
тАО03-03-2011 10:23 AM
Re: How to identify any processes running on a huge directory structure?
But it is still hard to decide.
What if the files are not currently open, but an application will need it later?
Whatever you will do, backup the files before delete them.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2011 10:27 AM
тАО03-03-2011 10:27 AM
Re: How to identify any processes running on a huge directory structure?
You don't say, but if the directory is mounted, you won't be able to unmount it until there are no open files and/or no one is 'cd'ed into it.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2011 10:41 AM
тАО03-03-2011 10:41 AM
Re: How to identify any processes running on a huge directory structure?
The directory I am talking about is not a filesystem. It is a sub,sub,sub-directory of a filesystem. It is an old copy of perl.
Maybe I could do this in reverse? Is there a command that identifies files in use given a list of processes? I know that I have a small set of apache test websites that might be using this subdirectory. I'd rather run a command 30 times instead of, well, a LOT of times.
On a side note, the idea of shutting down the computer will make sure the files are not in use. WELL....That is until I bring it up again, then some unknown application would go nuts trying to use files I trashed. THAT's no good.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2011 11:24 AM
тАО03-03-2011 11:24 AM
Re: How to identify any processes running on a huge directory structure?
- A single "fuser -c
- lsof +D
- If you choose to use fuser, you probably will need to run fuser a considerably smaller number of times if you put multiple filenames on each line. And you certainly don't have to type any of those lines yourself. Instead, you should type something like:
find
...and let the machine do what it can do best.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2011 11:33 AM
тАО03-03-2011 11:33 AM
Re: How to identify any processes running on a huge directory structure?
...and need to give Torsten a few more points.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2011 11:42 AM
тАО03-03-2011 11:42 AM
Re: How to identify any processes running on a huge directory structure?
> the computer will make sure the files are
> not in use. WELL....That is until I bring
> it up again, then some unknown application
> would go nuts trying to use files I
> trashed. THAT's no good.
Why "trash" the files? Why not simply rename
the top-level directory (before the
shut-down), and then wait for complaints
after you bring it back up? If you get none
(within some interval deemed to be
"adequate"), _then_ you can delete ("trash")
the directory tree. If you get some, then
simply rename it back to what it was.
"Seemples".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2011 12:05 PM
тАО03-03-2011 12:05 PM
Re: How to identify any processes running on a huge directory structure?
Ah. But you know that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2011 03:32 AM
тАО03-04-2011 03:32 AM
Re: How to identify any processes running on a huge directory structure?
Assuming the directory is deep under let's say /opt, everything related to the mountpoint is difficult (unmount, actions related to the mounted lvol, etc ...).
However, if you say it could be related to apache, what will likely happen?
The files are sitting around doing nothing (not opened).
If a user opens a link to a script, the script will be executed, the files opened and closed again.
In such case looking for open files will not give you the results you want to have.
IMHO there are 2 possible solutions:
- don't touch anything
- trial and error
Maybe 1) is the better solution ...
;-)
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2011 03:52 AM
тАО03-04-2011 03:52 AM
Re: How to identify any processes running on a huge directory structure?
Audit your mount point several times by several days to observe the behavior inside. Uses your desired tool (lsof or fuser) to do this. :)
Still, if you doubt to delete something, move it to a recycling point.
Rgds.