- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Re: I can not delete a file (System says "busy")
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP