[CentOS] CentOS 5 file system read only issue

Wed Aug 21 14:13:21 UTC 2019
Gianluca Cecchi <gianluca.cecchi at gmail.com>

On Wed, Aug 21, 2019 at 3:35 PM Xinhuan Zheng <xzheng at christianbook.com>

> Hello Everyone,
> We are using CentOS 5 system for certain application. Those are VM guests
> running in VMware. There is datastore issue occasionally, causing all file
> systems becoming read only file systems.
> - Xinhuan Zheng

Orthogonal consideration:
I don't know the version of vSphere you are using and if you are using or
not VMware Tools inside your guests.
But installing VMware tools in vSphere 4 or higher has the effect to change
disk timeout for the guest to 180 seconds, from its default of 30 seconds
(that I think is the same for RH EL/ CentOS 5,6,7)
This may or may not help you in case of short time storage problems.

Eg on a 6.5 infrastructure with an old legacy CentOS 5.9 VM I have
VMware Tools: Running, version:8305 (Unsupported older version)
and inside guest

# service vmware-tools status
vmtoolsd is running

# find /sys/class/scsi_generic/*/device/timeout -exec grep -H . '{}' \;

See also:
this if you have access to Red Hat Customer Portal (disk scsi timeout and
how to set it in  RH EL 5):

Similar considerations for RH EL 6 and 7:

This publicly accessible for RHEL 5

this related to vSphere:

this for APD (All Paths Down) timeout that defaults to 140 seconds for
block storage