- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: File is not getting deleted
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
тАО01-19-2009 08:24 AM
тАО01-19-2009 08:24 AM
There is one pdf file located under one of the directory on one of my HP-UX server but I am not able to perform any operation on that pdf file. I think it has got corrupted.
Whenever I go to that directory and do ls -lrt, it gets hanged but ls is working fine. I have issued rm command on that pdf file but its not getting executed and I am not able to move that file also to some other location. Further, I am not able to kill these rm, ls -lrt and mv processes performed on that pdf file with kill -9.
So, any suggestions how to remove that file and kill those processes ?
Thanks * regards,
Kavita
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2009 08:27 AM
тАО01-19-2009 08:27 AM
Solutionfuser -cuk will blow away all open file handles on a file system.
fuser -uk can let you identify the process id that has an open file handle and let you kill the process. Then the file can be made to go away.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2009 08:28 AM
тАО01-19-2009 08:28 AM
Re: File is not getting deleted
From you description, it sounds as if your file is part of an NFS mount that has gone stale. If so, depending on your NFS version, you many need to reboot to resolve this.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2009 09:46 AM
тАО01-19-2009 09:46 AM
Re: File is not getting deleted
Thanks James.....Yes it is a NFS mounted filesystem. So cant we login to that server from which it is getting nfs mounted and remove that pdf file from there and it will automatically go away from client server on which we are facing issues ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2009 04:11 PM
тАО01-19-2009 04:11 PM
Re: File is not getting deleted
If kill -9 won't work, I doubt fuser -k will either. You probably have to reboot.
>So can't we login to that server from which it is getting NFS mounted and remove that PDF file from there and it will automatically go away from client server
Yes, that should remove it. But your problem is more than just this one file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2009 04:43 PM
тАО01-19-2009 04:43 PM
Re: File is not getting deleted
Thank you all for helping on this issue.