Read-only root file system - ext3 error?
Solution 1:
If this happened since the machine booted, check dmesg
or other system logs for reports of anything terrifying going wrong with the hardware (e.g IO errors reported when accessing the underlying disks) such errors can trigger the kernel to put things into read-only mode until someone (you!) comes along to make a more informed decision.
Solution 2:
It's probably dropped into read-only mode at the LVM level (lvs
will lack a 'w' in the second caracter of the Attr
column), so you might be able to flick it back with an lvchange --ignorelockingfailure -p w VolGroup00/LogVol00
. Alternately, the VG may have dropped write access (typically caused by a hardware failure), in this case indicated by a lack of w
in the first character of the Attr
column in the output of vgs
. That can't be changed at runtime, by the look of it.
If LVM has dropped write perms on either the LV or VG, it's probably for a very, very good reason, and unless you care not for your data, I'd be looking into the root cause rather than trying to bludgeon LVM into allowing writes again.
Solution 3:
There is probably filesystem error. Run fsck after umount. This wont require reboot. Try to fsck without using -a or -p.