- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- rm hanging
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-18-2007 03:10 AM
10-18-2007 03:10 AM
rm hanging
I was in the middle of transferring a file from a Windows box to an HP-UX server (via ftp) when I decided to cancel the ftp from the windows machine. I then logged onto the HP-UX server to delete the partially transmitted file, but the rm command just hangs. Does anyone have an idea of how this can be resolved?
GBR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2007 03:17 AM
10-18-2007 03:17 AM
Re: rm hanging
You need to terminate the ftpd process associated with the file before you can delelte the file. Its got an open file handle and is causing the hang.
If you kill the ftpd process or better yet, stop the ftp process on the windows box, this situation will be resolved.
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
10-18-2007 03:31 AM
10-18-2007 03:31 AM
Re: rm hanging
> You need to terminate the ftpd process associated with the file before you can delelte the file. Its got an open file handle and is causing the hang.
You most certainly can remove (delete) open files. The space allocated to the file is simply not removed until its link count reaches zero.
I would ask, instead, if you are dealing with an NFS mount that has gone stale. Another symptom of such a stale handle would be an unresponsive 'ls' and/or 'bdf'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2007 03:43 AM
10-18-2007 03:43 AM
Re: rm hanging
2. I tried kill and kill -9 on the ftpd process that was transferring the file and still nothing. The rm is still hanging.
3. The windows process was terminated as well, or at least I think it was. I killed the ftp client that was making the transfer.
GBR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2007 03:53 AM
10-18-2007 03:53 AM
Re: rm hanging
what does fuser
'll' (long-list) in the directory works?
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2007 04:43 AM
10-18-2007 04:43 AM
Re: rm hanging
2. fuser
rm is still hung.
GBR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2007 05:13 AM
10-18-2007 05:13 AM
Re: rm hanging
Let's make sure you are running what you think you should be. What do this return?
# whence -v rm
# whence -p rm
In fact, try using the absolute path:
# /usr/bin/rm file_to_remove
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2007 05:40 AM
10-18-2007 05:40 AM
Re: rm hanging
have you checked your syslog for a possible disk problem?
It sounds as if the rm command is waiting for an answer - which it apparently does not get - from a disk.
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2007 08:23 AM
10-18-2007 08:23 AM
Re: rm hanging
What's the best way to check for disk corruption? Would it be the dd command?
GBR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2007 08:56 AM
10-18-2007 08:56 AM
Re: rm hanging
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
Have a look at above doc.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2007 09:48 AM
10-18-2007 09:48 AM
Re: rm hanging
Thank you all. I will take it from here.
GBR