Read only filesystem problem

Hi,I have a strange problem. After some time of running archlinux the root filesystem suddenly becomes read-only. It happened 3 times yet. I'm using LVM and the root volume is /dev/mapper/VG0-archlinux2 and filesystem type is reiserfs.

Re: Read only filesystem problem

I hadn't have smartctl installed until now. When I run smartctl -a /dev/sda first it says the option -son to turn on SMART support. And also something about test, therefore I ran the short offline test. I can run long when it will be finished I send the results.

Re: Read only filesystem problem

Even if the long test completes without erroring out, could you post the updated "smartctl -a" output? In particular, I'm curious whether the UDMA_CRC_Error_Count value has increased in the time between readings.

Re: Read only filesystem problem

Maybe it's not the disk failing after all then. SMART isn't 100% reliable, but I'd expect it to pick up something if you're experiencing this level of I/O errors.

So I guess the next thing I can recommend is running a fsck on the affected partition. You'll need reiserfsprogs installed for that, and you'll need to have the partition either unmounted or mounted readonly.

Re: Read only filesystem problem

I've tried that before. The first time the problem occured fsck found some corruptions (of files mainly related to gajim, but I think it doesn't matter) a I had to rebuild tree. But second time no curruptions were found. So I assume that it depends on the exact time and running processes when the "something", what remounts the filesystem, happens.

Re: Read only filesystem problem

Mmm, what the "something" is, is I/O errors, i.e.:

end_request: I/O error, dev sda, sector 436711063

Back in the day, these would result in kernel panics. Nowadays the filesystem drivers are a lot more resilient, and simply remount the filesystem readonly so that your system remains in a relatively usable state. In my experience, hardware issues are the usual culprit, but in this case it seems that the problem lies elsewhere. Unfortunately I'm all out of ideas. I suggest that you google for terms relating to "reiserfs" and "I/O error" and see what you come up with. It's possible that the problem lies with your LVM too, but I'm not too familiar with those, so I can't really help there either.

Mayxe someone else can shed some light on this issue. In any case, hopefully you'll find an solution. Good luck.

Re: Read only filesystem problem

Re: Read only filesystem problem

Usually when read only filesystem happens for odd reason, it could be trying to mount the wrong filesystem (or the wrong part of the LVM) and it doesn't think it's the right one it should be mounting so it mounts it read-only.

I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...Look ma, no mouse.

Re: Read only filesystem problem

Try replacing or at least reseating the cable. That solved a SATA HDD issue I had years ago. The machine had worked fine for months; the problem appeared out of nowhere.

But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.-Lysander Spooner

Re: Read only filesystem problem

I do not think it's only a HDD problem, i have had the same problem on my Desktop and VPS, is different computers with the same problem.On my "Desktop" the system boot with rw then after some time is remounted as RO, i checked the cables, i unplug and replug the sata cable and the problem disappear!

But then after some few days i login to my vps and had the same problem!Maybe is some update causing this or not, different computers having the same problem

Re: Read only filesystem problem

I've same problem with an asus laptop, with one hdd. On the device I've some partitions (home, root, backup, var) but this error appears with 'home' only. Sometimes the mount options turns into "read-only", but only on home-partition (ext4, but root, var and a download-directory is ext4 too but they works well).I found this: https://bbs.archlinux.org/viewtopic.php … 9#p1052099 - I hope this helps for me - and for you too Errors in logs:

Re: Read only filesystem problem

uzsolt wrote:

I've same problem with an asus laptop, with one hdd. On the device I've some partitions (home, root, backup, var) but this error appears with 'home' only. Sometimes the mount options turns into "read-only", but only on home-partition (ext4, but root, var and a download-directory is ext4 too but they works well).I found this: https://bbs.archlinux.org/viewtopic.php … 9#p1052099 - I hope this helps for me - and for you too Errors in logs: