1748136 Members
3543 Online
108758 Solutions
New Discussion юеВ

Read Only FS

 
Duffs
Regular Advisor

Read Only FS

Hi,

I have got a root file system running in read-only mode. It is a VMware (2.5) server running Linux Red Hat AS4 .

A reboot resolves the issue in the short-term but only for a few days before it reverts back to read-only mode again. I have applied the latest kernel patch but this did not resolve the issue. There are no errors in the fstab and the following error occurs when trying to remount the FS:

# mount -o remount,rw /dev/sda1 /
mount: you must specify the filesystem type

It appears to be read write but as you can see from the other example this is not the case:
# mount -l
/dev/mapper/vg0-lvol00 on / type ext3 (rw) []

# rm httpd.pid
rm: remove regular file `httpd.pid'? y
rm: cannot remove `httpd.pid': Read-only file system

Regards,
D.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Read Only FS

Shalom,

This condition usually only comes about when there is a problem with the filesystem or the underlying disk.

The system should be booted in single user mode and fsck be run on the root file system.

You might wish to use vmware utilities to check the disk integrity of the virtual machine as well.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tim Nelson
Honored Contributor

Re: Read Only FS

If SEP's thoughts do not lead to a solution then another thought...

Are you sure the OS is not crashing or someone is poweroffing the VM when you are not aware ?

who -b after the revert to RO might lead you somewhere.

Nuwan Alwis
Valued Contributor

Re: Read Only FS

Hi Duffs
I am also with SEP, This indicates there is a problem with your file system intrgrity. and i also suggest to do a fsck on the / file system. better you take backups before you do any thing.

Good Luck...!
NJ
Duffs
Regular Advisor

Re: Read Only FS

Hi lads thanks for the suggestions but appently this is a known bug in VMWare. I had applied kernel patch update 4 but VMWare recommend patch update 5 for my version of software. Applied the patch and performed a reboot and all looks good so far.
The following link is very useful:
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=51306