- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can not remove files in /dev/rmt directory
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
11-08-2006 12:44 AM
11-08-2006 12:44 AM
I can not seem to remove two files from the /dev/rmt file system. The only thing I CAN do is chown on those files - but otherwise the rm command does not seem to work. They are taking up lots of space on the root volume, and I would like to remove them. The files in question are:
/dev/rmt/0n
/dev/rmt/0m
I will paste the informtion below. Thanks to all for your help!
Erik
HP-UX devapp B.11.11 U 9000/800 921196819
9000/800/rp7420
devapp:/dev/rmt $ ll
total 191840
crw-rw-rw- 1 bin bin 205 0x021080 Sep 22 11:05 0mb
crw-rw-rw- 1 bin bin 205 0x021040 Nov 7 19:27 0mn
crw-rw-rw- 1 bin bin 205 0x0210c0 Sep 22 11:05 0mnb
crw-rw-rw- 2 bin bin 205 0x0a4200 Oct 16 07:54 1m
crw-rw-rw- 2 bin bin 205 0x0a4280 Oct 16 07:54 1mb
crw-rw-rw- 2 bin bin 205 0x0a4240 Oct 16 07:54 1mn
crw-rw-rw- 2 bin bin 205 0x0a42c0 Oct 16 07:54 1mnb
crw-rw-rw- 2 bin bin 205 0x0a4200 Oct 16 07:54 c10t4d2BEST
crw-rw-rw- 2 bin bin 205 0x0a4280 Oct 16 07:54 c10t4d2BESTb
crw-rw-rw- 2 bin bin 205 0x0a4240 Oct 16 07:54 c10t4d2BESTn
crw-rw-rw- 2 bin bin 205 0x0a42c0 Oct 16 07:54 c10t4d2BESTnb
-rw------- 1 bin bin 71114752 Oct 30 12:06 0n
-rw------- 1 bin bin 27090944 Nov 2 12:39 0m
crw-r--r-- 1 bin bin 205 0xfffffe Sep 22 11:05 stape_config
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 12:49 AM
11-08-2006 12:49 AM
Re: Can not remove files in /dev/rmt directory
to me they look like tape backups gone bad.
Furst of all check whether any backup processes are running/writing to the files.
Can you chmod 777 the files?
If backups are running against these files kill them. Then try the rm again. What message do you get?
You will then have to re-generate the tape device files with insf. See "man insf"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 12:49 AM
11-08-2006 12:49 AM
Re: Can not remove files in /dev/rmt directory
Does it give you an error when you try to remove them?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 12:54 AM
11-08-2006 12:54 AM
Re: Can not remove files in /dev/rmt directory
to me they look like tape backups gone bad.
Furst of all check whether any backup processes are running/writing to the files.
< No processing running/writing against the files - did a reboot last night>
Can you chmod 777 the files?
< can not chmod to 777 - the error message is can't access >
If backups are running against these files kill them. Then try the rm again. What message do you get?
You will then have to re-generate the tape device files with insf. See "man insf
< and for the other writer - I am logged in as root while trying to remove those files>
Thanks,
Erik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 12:56 AM
11-08-2006 12:56 AM
Re: Can not remove files in /dev/rmt directory
I'd guess that someone for some (wrong) reason choose to remove the original special files! The '0n' is not a standard tape device file, in fact.
Remove both '0n' and '0m' and use 'insf' to recreate the special files.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 12:58 AM
11-08-2006 12:58 AM
Re: Can not remove files in /dev/rmt directory
That is my problem - I can not remove either 0n or 0m :-(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 01:00 AM
11-08-2006 01:00 AM
Re: Can not remove files in /dev/rmt directory
as you logged in as root, you should be able to chmod or rm the files, however:
su - bin
cd /dev/rmt
rm 0n
rm 0m
What is the result ? If they remove ok, re-generate with insf.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 01:26 AM
11-08-2006 01:26 AM
Re: Can not remove files in /dev/rmt directory
They still do not remove - the error message is the same as when trying to remove with root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 01:32 AM
11-08-2006 01:32 AM
Re: Can not remove files in /dev/rmt directory
please show the output of:
# ls -ld /dev/rmt
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 01:34 AM
11-08-2006 01:34 AM
Re: Can not remove files in /dev/rmt directory
It makes no sense that you should be able to 'chown' but not 'chmod' nor remove.
Try a remove of the files using their inode number. Perhaps you have a filename with unprintable characters in it:
# ls -il /dev/rmt/0*
# find /dev -xdev -inum
...substitute the inode number found in the 'ls' output for
Regards!
...JRF...
- Tags:
- unprintable chars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 01:36 AM
11-08-2006 01:36 AM
Re: Can not remove files in /dev/rmt directory
was suggested,
what are the directory permissions.
Did you try rm -f as well .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 01:42 AM
11-08-2006 01:42 AM
Re: Can not remove files in /dev/rmt directory
As root, go to /dev;
then rm -rf rmt;
Now if this works
Just do insf -e
Alternative:
in /dev
mv rmt rmt.bad
insf -e
Now go in rmt.bad and see if you can remove 0n...
All the best
Victor
P.S.
I would opt for the 1rst unless its because you want to understand whats going on...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 01:43 AM
11-08-2006 01:43 AM
Re: Can not remove files in /dev/rmt directory
No matter what I try, I can not remove those files.
The systems keeps giving me a file not found error message (rm: 0n non-existent)
I am not really happy with this situation because it should no be this complex....I tried logging in as bin - and same result - can not remove file.
This is really frustrating
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 01:49 AM
11-08-2006 01:49 AM
Re: Can not remove files in /dev/rmt directory
please make a cd to /dev/rmt and show the exeact output of:
# ls -b
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 01:53 AM
11-08-2006 01:53 AM
Re: Can not remove files in /dev/rmt directory
I suspect James is right and there are hidden characters in those filenames.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 01:58 AM
11-08-2006 01:58 AM
Solutionlike John I think you have filenames containing control characters in thier names.
To selectivly remove these unwanted files, try
cd /dev/rmt
rm -i *0*
and enter a 'y' only for those files you really want to remove!
Do you get error messages with this method as well?
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 02:04 AM
11-08-2006 02:04 AM
Re: Can not remove files in /dev/rmt directory
The command to remove those files worked PERFECTLY.
I can not believe the pain this has been.
Thanks to ALL of your responses - I am glad not to be alone in the UNIX world!
Erik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 02:14 AM
11-08-2006 02:14 AM
Re: Can not remove files in /dev/rmt directory
Using shell metacharacters to remove files for which you cannot see non-printing characters is but one way.
You should also familarize yourself with the removal technique using the inode number I posted above. Read the manpages for 'ls' and 'find' too.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2006 03:01 AM
11-08-2006 03:01 AM
Re: Can not remove files in /dev/rmt directory
Thanks very much for helping me get through this issue - because I did not want to grow the root file system due to these files (which made my root file system 99% full).
Thanks again to all!
Erik