Linux based file systems become read-only
search cancel

Linux based file systems become read-only

book

Article ID: 343025

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

VMware has identified a problem where file systems may become read-only after encountering busy I/O retry or SAN or iSCSI path failover errors.
 
The same behavior is expected even on a native Linux environment, where the time required for the file system to become read-only depends on the number of paths available to a particular target, the multi-path software installed on the operating system, and whether the failing I/O was to an EXT3 Journal. However, the problem is aggravated in an ESX host environment because ESX host manages multiple paths to the storage target and provides a single path to the guest operating system, which effectively reduces the number of retries done by the guest operating system.
 
These guest operating systems are affected:
  • RHEL5 (RedHat)
  • RHEL4 U6
  • RHEL4 U4
  • RHEL4 U3
  • SLES10
  • SLES9 SP3
  • Ubuntu 7.04

    Note: This issue may affect other Linux distributions based on early 2.6 kernels as well, such as Ubuntu 7.04.


Environment

VMware ESX Server 3.0.x
VMware vSphere ESXi 5.5
VMware ESX Server 2.5.x
VMware ESXi 4.1.x Embedded
VMware ESXi 3.5.x Embedded
VMware ESXi 3.5.x Installable
VMware ESX 4.0.x
VMware ESXi 4.1.x Installable
VMware vSphere ESXi 5.0
VMware ESX Server 3.5.x
VMware ESX 4.1.x
VMware vSphere ESXi 6.0
VMware vSphere ESXi 5.1
VMware ESXi 4.0.x Installable
VMware ESXi 4.0.x Embedded

Resolution

Note: This article does not supersede the Guest Operating System Installation Guide. A guest operating system upgrade may require an ESX upgrade as well.

This Linux kernel bug has been fixed in different updates of different Linux distributions. Not all kernel versions include the patch. Contact your Linux Distributor for more information.
  • For RHEL5, upgrade to Update 1 (also referred to as RHEL5.1). For more information, see the RedHat Bug 228108.
  • For RHEL4 U6, upgrade to kernel version 2.6.9-89.0.7. For more information, see the RedHat Bug 197158.
  • For RHEL4 U3 and RHEL U4, upgrade to Update 5 (RHEL 4.5).
  • For SLES10, upgrade to SP2.
  • For SLES9 SP3, upgrade to SP4 or SP3 Maintenance Release build 2.6.5-7.286. For more information, see the Novell Knowledge Base article 7005154.
  • For Ubuntu 7.04, upgrade to 7.10.

    Note: The preceding links were correct as of May 28, 2015. If you find the link is broken, please provide feedback and a VMware employee will update the link.

Additional Information

As a workaround, remount the Linux file system using this command to return it to the proper state:
 
mount -o remount /

Note: It is ideal to identify the problem and resolve the issue rather than performing this workaround when this situation arises.

For translated versions of this article, see: