Operating System - Linux
1753455 Members
6322 Online
108794 Solutions
New Discussion юеВ

File systems become RD only.

 
SOLVED
Go to solution
skt_skt
Honored Contributor

File systems become RD only.

RHEL AS 3 RHEL 5.1
ISCSI/Netapp based Ext3 file system.


We often see that file systems become Read Only mounted after losing connection to the files. Only unmount/mount fixes it.

Is there a way we can avoid unmount/mount to recover the situation? Or this is how it is handled by Linux kernels.?
4 REPLIES 4
Michal Kapalka (mikap)
Honored Contributor

Re: File systems become RD only.

hi,

did you try the "remount" option on mount command ???

Attempt to remount an already-mounted file system. This is commonly used to change the mount flags for a file system,especially to make a readonly file system write-able. It does not change device or mount point.

mikap
Ivan Ferreira
Honored Contributor
Solution

Re: File systems become RD only.

>> after losing connection

├В┬┐Do you have a real connection problem?

You can use the tune2fs to modify the "error-behaviour" with the -e option. Check the man pages.

Use these values with care.

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
macosta
Trusted Contributor

Re: File systems become RD only.

Even better would be to eliminate the cause of the connection loss. The filesystem should remain intact, since it's journalling, but by default, only metadata is protected. You could possibly end up with file data loss.

You may try as suggested above:
mount -o remount,rw /path/to/mount/point
To see if it re-enables writes.
dirk dierickx
Honored Contributor

Re: File systems become RD only.

the fs gets remounted RO as a safety feature. imagine the havoc you could create when the system is able to continue to write sometimes, but not always, on a disk with errornous connections. the fast lane to data corruption.

like others said, you need to fix this connection loss issue. the data path to your disk is unreliable.