- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- I can not delete a file (System says "busy")
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
тАО04-15-2007 08:00 PM
тАО04-15-2007 08:00 PM
How can I learn which process is holding that file.
Is it enought to kill that process to unlock the file?
thanks?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2007 08:14 PM
тАО04-15-2007 08:14 PM
Re: I can not delete a file (System says "busy")
if you know which process and you are ceratin you do not need that data, yes.
I would recommend lsof:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.77/
to identify the process for certain.
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2007 08:15 PM
тАО04-15-2007 08:15 PM
Re: I can not delete a file (System says "busy")
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2007 08:19 PM
тАО04-15-2007 08:19 PM
Solutionthen check man on fuser because it offers certain switches to kill the process however you can run various ps commands on the output from fuser:
fuser /
23450c
ps -ef |grep 23450
etc
check out the man pages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2007 08:19 PM
тАО04-15-2007 08:19 PM
Re: I can not delete a file (System says "busy")
Yes, once you kill the process the file shouldn't be busy.
Note if the file is an executable or shared lib, ps(1) will show who is running that program.
If the file is being executed, you can "move" it aside, without killing the process(es):
(Assuming you want to replace the file:
$ cp /path-to-new-file/file file.new
$ ln file file.old
$ ln -f file.new file
$ rm -f file.new
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2007 10:49 PM
тАО04-16-2007 10:49 PM
Re: I can not delete a file (System says "busy")
For ordinary files that are in use, you can 'rm' them, and when the last process using the file dies, the space is freed; you don't get a message about the file being busy.
What's the filename, the actual command you are running, and the exact error message?
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2007 11:28 PM
тАО04-16-2007 11:28 PM
Re: I can not delete a file (System says "busy")
Check process id using
ps -ef|grep file name
then use kill command like
kill -9 id
and Remove file by using rm command
Khalid