- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: cannot remove a file
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-14-2005 05:20 AM
11-14-2005 05:20 AM
I tray to remove a file and get the following error:
rm: cannot remove `1_1b_redo.log': Read-only file system
Any idea?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 05:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 05:46 AM
11-14-2005 05:46 AM
Re: cannot remove a file
cat /proc/mounts
lsattr 1_1b_redo.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 07:00 AM
11-14-2005 07:00 AM
Re: cannot remove a file
This is a local FS not a NFS. The file is not open.
Ivan:
[dev.lc.org*root /root]$ cat /proc/mounts
...
/dev/sda10 /orafiles ext3 rw 0 0
...
[dev.lc.org*root /orafiles/data/dev/orafiles/02/lcprod01]$ lsattr 1_1b_redo.log
------------- 1_1b_redo.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 07:07 AM
11-14-2005 07:07 AM
Re: cannot remove a file
Do:
touch testfile
rm testfile
If does not works, it seems that there is a problem and the kernel think that the file system is read only.
Try running this command:
mount -o rw,remount /mount_point
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 07:31 AM
11-14-2005 07:31 AM
Re: cannot remove a file
I can succesfully create, edit, update and remove a file in the same filesystem.
More Info:
This files was packed into a TAR file from an OCFS (Oracle Cluster FileSystem) of another server, and unpacked in this filesystem.
After unpacked I tried to remove them with the error mentioned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 07:40 AM
11-14-2005 07:40 AM
Re: cannot remove a file
Also, sometimes when I cannot remove a file using rm, I use midnight commander (mc) and the mc can remove the files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 09:06 AM
11-14-2005 09:06 AM
Re: cannot remove a file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 09:29 AM
11-14-2005 09:29 AM
Re: cannot remove a file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2005 12:20 AM
11-21-2005 12:20 AM
Re: cannot remove a file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2005 05:58 PM
11-28-2005 05:58 PM
Re: cannot remove a file
by Demosthenes Mateo
If the kernel finds fatal corruption on the disk or if certain key IOs like journal writes start failing, the kernel may remount the filesystem as read-only. This is because the filesystem can no longer maintain write integrity under these conditions. Any such behavior will be thoroughly logged in /var/log/messages.
Should this happen, backup your recent data as this may be a symptom of an impending disk failure. Perform filesystem checks on the disk using e2fsck as soon as possible and use the -c option to enable badblock checking. The normal fsck may not detect all the errors and return clean. For example:
e2fsck -c /dev/sda3