- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Suddenly the / filesystem is readonly
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
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
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
тАО09-07-2006 06:44 PM
тАО09-07-2006 06:44 PM
Suddenly the / filesystem is readonly
We have a SUSE server that was fine until a couple of days. Suddenly, I cannot create a file or folder in the root filesystem. I can't even edit. It says "Read-only file system"
bangpcsl1:~ # mkdir 123
mkdir: cannot create directory `123': Read-only file system
bangpcsl1:~ # more /etc/SuSE-release
SUSE LINUX Enterprise Server 9 (i586)
VERSION = 9
PATCHLEVEL = 3
Find below the contents of /var/log/messages
Sep 6 04:25:46 bangpcsl1 kernel: SCSI error : <0 0 1 0> return code = 0x8000002
Sep 6 04:25:46 bangpcsl1 kernel: Info fld=0x6382974, Current sdb: sense key Hardware Error
Sep 6 04:25:46 bangpcsl1 kernel: Additional sense: Mechanical positioning error
Sep 6 04:25:46 bangpcsl1 kernel: end_request: I/O error, dev sdb, sector 104343923
Sep 6 04:25:46 bangpcsl1 kernel: Buffer I/O error on device sdb2, logical block 12779926
Sep 6 04:25:46 bangpcsl1 kernel: lost page write due to I/O error on sdb2
Sep 6 04:25:56 bangpcsl1 kernel: SCSI error : <0 0 1 0> return code = 0x8000002
Sep 6 04:25:56 bangpcsl1 kernel: Info fld=0x80c1ecb, Current sdb: sense key Hardware Error
Sep 6 04:25:56 bangpcsl1 kernel: Additional sense: Mechanical positioning error
Sep 6 04:25:56 bangpcsl1 kernel: end_request: I/O error, dev sdb, sector 135012043
Sep 6 04:25:56 bangpcsl1 kernel: Buffer I/O error on device sdb2, logical block 16613441
Sep 6 04:25:56 bangpcsl1 kernel: lost page write due to I/O error on sdb2
Sep 6 04:26:58 bangpcsl1 kernel: REISERFS: abort (device sdb2): Write error while pushing transaction to disk in flush_journal_list
Sep 6 04:26:58 bangpcsl1 kernel: REISERFS: Aborting journal for filesystem on sdb2
Sep 6 04:26:58 bangpcsl1 kernel: ReiserFS: sdb2: warning: clm-6006: writing inode 152475 on readonly FS
Sep 6 04:26:58 bangpcsl1 last message repeated 5 times
Sep 6 04:26:58 bangpcsl1 kernel: ReiserFS: sdb2: warning: clm-6006: writing inode 57768 on readonly FS
Sep 6 04:26:58 bangpcsl1 last message repeated 5 times
Sep 6 04:26:58 bangpcsl1 kernel: ReiserFS: sdb2: warning: clm-6006: writing inode 152475 on readonly FS
Sep 6 04:26:58 bangpcsl1 last message repeated 5 times
Please suggest,
Thanks & Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2006 09:52 PM
тАО09-07-2006 09:52 PM
Re: Suddenly the / filesystem is readonly
Linux kernel can behave in various ways when it detects a disk error that caused data to be lost: it can either panic (=crash) immediately to avoid further damage, keep running but remount the filesystem as read-only, or do nothing special. The default action is to remount the filesystem as read-only. In a critical environment where "server stops at the first sign of trouble" is better than "incomplete or corrupted data", you may want to set the server to panic immediately in situations like this.
If you have anything irreplaceable on the disk (on any filesystem located on that physical disk), backup it *RIGHT NOW*.
When you reboot the server, you can expect at least a full filesystem check, which may take some time and may require some manual actions in single-user mode. Do not trust the disk after that: if the disk surface is physically damaged, there may be loose crumbs of magnetic material moving around inside the disk housing. Over time, the damage can only get worse.
The worst possibility is that the disk may fail its self-diagnostics at the next reboot and be totally unaccessible after that.
Prepare to replace the disk as soon as possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2006 08:41 PM
тАО09-08-2006 08:41 PM
Re: Suddenly the / filesystem is readonly
Looks like you have some hardware issue.
ep 6 04:25:46 bangpcsl1 kernel: SCSI error : <0 0 1 0> return code = 0x8000002
Sep 6 04:25:46 bangpcsl1 kernel: Info fld=0x6382974, Current sdb: sense key Hardware Error
Check your hard drive "sdb"
Have you tried unmounting the filesystem and ran fsck?
Regards
Sathish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-10-2006 05:11 PM
тАО09-10-2006 05:11 PM
Re: Suddenly the / filesystem is readonly
Please try the following command which will remount the filesystem in rw
#mount -o remount /
then during maintenance window try the following command to check the disk sdb2 by
#dd if=/dev/sdb2 of=/dev/null
if this output shows any io error problem with you disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2006 05:34 AM
тАО09-11-2006 05:34 AM
Re: Suddenly the / filesystem is readonly
Reboot the system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-11-2006 06:40 PM
тАО09-11-2006 06:40 PM
Re: Suddenly the / filesystem is readonly
If a filesystem is no umounted cleanly it can be left dirty and therefore marked in such away that it can not be mounted cleanly rw next boot.
Next boot fsck should fix it though you may need to do this manually in single user mode.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com