- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Help: rm: <file> not removed. No such file or dire...
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
05-03-2002 12:56 PM
05-03-2002 12:56 PM
Help: rm: <file> not removed. No such file or directory.
We are seeing this strange error during our software builds:
rm: file.tmp not removed. No such file or directory
It's intermittent and it usually manifests itself during large loads when the nodes are very busy. Seems like a request to remove a file is sent but the requestor never receives a message back that the file was removed and it complains.
Somebody told me that it might have to do with the timeout setting on the particular file system. Does anyone know more about this?
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 01:03 PM
05-03-2002 01:03 PM
Re: Help: rm: <file> not removed. No such file or directory.
I doubt this error is due to file system timeout. At first glance it appears to me that either the file was never created or was removed. Resolution would be to fix the script or program code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 01:04 PM
05-03-2002 01:04 PM
Re: Help: rm: <file> not removed. No such file or directory.
I dont think there is anything to do with time out stuff , if rm says not removed that menas there is no file with that name and that is it . Or may be you are gving the commnad too soon before the file.tmp is getting regenerated.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2002 01:05 PM
05-03-2002 01:05 PM
Re: Help: rm: <file> not removed. No such file or directory.
Check the script or program for bug.
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 08:26 AM
05-06-2002 08:26 AM
Re: Help: rm: <file> not removed. No such file or directory.
Like I said, it only happens with large software builds (which take few hours to compile using 10 HPUX B2000 nodes) which means there is either some timeout or caching issue.
We've seen a similar problem before where a file would be written, then modified and some nodes in the pool would not see the change until few minutes later (during a heavy load on the whole system). It that case there was a patch mismatch between the nodes.
I'll update this thread when we resolve this problem. I just though that someone might have seen this before.
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 08:45 AM
05-06-2002 08:45 AM
Re: Help: rm: <file> not removed. No such file or directory.
The error message, actually just a WARNING:
rm: file.tmp not removed. No such file or directory
Is saying that the FILE named "file.tmp" is not available to be removed. It could be that the file named "file.tmp" is being removed by some other process, say maybe a CRON? It could also be that your script is running so fast that the FILESYSTEM has not had a chance to update the directory. If you could post the PORTION of your scripts that deal with the file named "file.tmp", maybe we could assist in correcting the script?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 06:28 PM
05-06-2002 06:28 PM
Re: Help: rm: <file> not removed. No such file or directory.
In all probablity, your file.tmp is either not being created or being deleted by another process.
You can suppress this warning using the "rm -f" option.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 07:15 PM
05-06-2002 07:15 PM
Re: Help: rm: <file> not removed. No such file or directory.
I havd the similar problem.
Finally I found the file name
what I was creating, was with extra space
"file.tmp "
I tried removing
# rm "file.tmp "
and it worked ....
I thought this info maybe useful to u.
-Niraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 09:54 PM
05-06-2002 09:54 PM
Re: Help: rm: <file> not removed. No such file or directory.
Just one thought.
Are you getting any errors like you have reached the maximum limit for nfile. You might be hitting the nfile max limit and there is no way the system can create move inodes for you. Because of which, the file might not be getting created in your script and then rm will obiviously give an error.
This is just a suggestion..Try increasing the nfile parameter.
-Sukant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 11:15 PM
05-06-2002 11:15 PM
Re: Help: rm: <file> not removed. No such file or directory.
I would like to mention below just a blind thought that may or may not help you.
Does your script defines a variable called (for example) file = test.txt .
And has an entry some thing like,
cat example.txt > $file.txt.
If so , ensure that the "$" is specified as specified above. or ensure that the value for the variable is properly set or the set value is present .(ie. the actual file is present).
Regards,
K.Vijayaragavan