LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-13-2008, 07:12 AM   #1
Complicated Disaster
LQ Newbie
 
Registered: Jan 2007
Posts: 25

Rep: Reputation: 15
Filesystem gone Read Only


Dear Experts,

My server seems to have developed a problem where the data filesystem goes nuts. Files disappear or randomly move from one folder to another. When this happens and I try to recreat the files from backup I get the error:

cp: cannot create regular file `mytest.cnf': Read-only file system

I cannot umount the partition as I get the error:

umount: /web: device is busy

The only way I have found to bring it back is to reboot, but the problem seems to reoccur.

I am running Mandriva Linux 2006. /web is ext3 running on /dev/MD0. MDADM reports the raid array as clean.

Any ideas as to what is causing this, or what I can try to fix it?

Thanks in advance.

CD
 
Old 01-13-2008, 09:39 AM   #2
PhenuxRizing
Member
 
Registered: Feb 2004
Distribution: Fedora
Posts: 59

Rep: Reputation: 15
Assuming that it is not a bug with that particular release of Mandriva, it sounds like you might be having hard drive problems.

In a shell, logged in as root, type "smartclt -H". This gives you an overall health status of your hard drive using built in monitoring technology. Start there and see if that's the issue. If not it could also be a software problem, or even a misconfiguration.
 
Old 01-13-2008, 11:09 AM   #3
Complicated Disaster
LQ Newbie
 
Registered: Jan 2007
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks. Useful looking utility. However all disks report health status as PASSED.

I don't think it's an actual bug with the O/S as the system has been running fine for over a year now. I'm baffled. Not that this is an unusual state for me when it comes to Linux!

CD
 
Old 01-13-2008, 11:45 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
How much disk space do you have free ?
df -h
 
Old 01-13-2008, 12:00 PM   #5
Complicated Disaster
LQ Newbie
 
Registered: Jan 2007
Posts: 25

Original Poster
Rep: Reputation: 15
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 5.8G 4.5G 1.1G 82% /
/dev/hda6 140G 127G 14G 91% /home
/dev/md0 147G 69G 71G 50% /web

CD
 
Old 01-13-2008, 12:03 PM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Filesystem Size Used Avail Use% Mounted on
Looks OK
Have you run fsck ? Easiest way is:
shutdown -rF now
 
Old 01-13-2008, 01:17 PM   #7
Complicated Disaster
LQ Newbie
 
Registered: Jan 2007
Posts: 25

Original Poster
Rep: Reputation: 15
That certainly had some effect. I got a few EXT3 errors on shutting down. And on reboot the scan produced loads of errors. I guess I have to check my data for consistency. Is it really that easy? I feel a bit stupid now!

Cheers

CD
 
Old 01-13-2008, 06:59 PM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938Reputation: 3938
I would say that you definitely have a drive that's about to "go."

If you have a smartctl command anywhere, say in /sbin/... read about it ("man smartctl") then run it. This will give you the drive's own error-logs and diagnostics.

Nevertheless, assume that the drive is about to conk-out and replace it immediately. (USB/Firewire external drives are very handy because you can take their drive out of it, put it into service, and put your existing drive in the external case.)
 
Old 01-14-2008, 02:56 AM   #9
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
I would say that you definitely have a drive that's about to "go."
He has already run smartctl. His disks passed.
His filesystem was messed up for some reason. Maybe fsck has fixed it maybe not
CD, you should take a look in /lost+found which is where fsck puts files, or fragments of files, it does not know what to do with.
If /lost+found is empty, you are probably OK, otherwise you should save your data, and probably reinstall from scratch or restore from your backup.
What could have caused this? Maybe power-glitch / brownout / power failure / incorrect shutdown / failing drive / loose cable or connector.... ... .. .
 
Old 01-15-2008, 03:45 AM   #10
Complicated Disaster
LQ Newbie
 
Registered: Jan 2007
Posts: 25

Original Poster
Rep: Reputation: 15
Hi,

I've looked in the Lost+Found and there's loads off stuff there. However I think I've recovered most of the missing bits from backup. Note that the error only affected the *data* drive, not the O/S drive. They are different physical drives. So I think I'm OK (for now) at least. I don't want to take a backup until I'm sure that the whole data set is valid as I only have enough disk space for one backup at a time!

I'm still baffled as to how it would have happened as I run on a UPS. I'm thinking that maybe one of the drives in the Raid array *is* on the way out, but I have a cold spare so I think I'll leave it and see what happens.

Thanks for your help.

CD
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I have: Root has Read-Write, user has read only for the boot filesystem? xmrkite Linux - Software 6 10-16-2008 04:31 AM
Raid disk problem : Attempt to read block from filesystem resulted in short read ElmPie Linux - General 5 08-26-2008 05:21 AM
Read-Only filesystem kahnakha Slackware 10 04-21-2007 07:09 AM
Read-only filesystem neillans Linux - General 2 06-11-2004 01:27 PM
how do I change the filesystem from read-only to read-write? les_chow Linux - Newbie 5 05-26-2004 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration