- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem with open files
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
тАО08-20-2002 03:57 AM
тАО08-20-2002 03:57 AM
Problem with open files
During the systen checkup (N class HP 11). I deleted some files to reduce the file system size but that didn't worked. I belive one of those files remained open even after deleating.
How can I find the process associated to that open file. Or which files are currently in open status(but not visible).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2002 04:05 AM
тАО08-20-2002 04:05 AM
Re: Problem with open files
The best way out of it now is to reboot.
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2002 04:06 AM
тАО08-20-2002 04:06 AM
Re: Problem with open files
An open file can be deleted but the space that it occupied will *not* be returned until all processes using the file finish.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2002 04:19 AM
тАО08-20-2002 04:19 AM
Re: Problem with open files
Or which processes are using those files.???
Regards
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2002 04:29 AM
тАО08-20-2002 04:29 AM
Re: Problem with open files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2002 04:50 AM
тАО08-20-2002 04:50 AM
Re: Problem with open files
First on the global screen, look for suspicious processes. High CPU, High I/O, etc.
Then select "s" option and enter the PID.
Then select the "F" option to see it's open files.
Rich
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2002 04:59 AM
тАО08-20-2002 04:59 AM
Re: Problem with open files
Cd to dir
fuser -u *
list list all
fuser -u
will do the named file
fuser -k
Will kill the connection.
See man fuser
Ps must be root to run fuser
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2002 05:00 AM
тАО08-20-2002 05:00 AM
Re: Problem with open files
fuser */* works to see which files are open 2 levels down.
The result will be the filename with the pid, once you get pid you can ps -ef it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2002 05:06 AM
тАО08-20-2002 05:06 AM
Re: Problem with open files
I missed the file not being visable.
cd to the dir immediatly under where the files were/are
then fuser -u
This will return PIDs - do a ps -ef and trace each one until you find it.
If the dir should not be in use then an fuser -k can be used - BUT be 100% sure.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2002 05:15 AM
тАО08-21-2002 05:15 AM
Re: Problem with open files
signal to the daemon that had the file open. This should
cause it to close and reopen its log files. For /var/adm
this is likely the syslog
daemon.
To find the PID
ps -ef | grep sys
To kill the daemon
kill -HUP _pid_
Consider installing logrotate
to rotate logs on a reasonable
frequency. It can be set to compress old log files.