Avoiding the read-only switch of your VM disk on Linux
Objective
Occasionally, as a result of a storage-related event, some partitions on a Linux machine may become read-only.
This guide explains how to correct this status and reduce the risks of a switch.
Instructions
When partitions are read-only, writing to the file system is no longer possible.
The file system status can be confirmed using the mount command:
To restore / to read-write, the virtual machine must be restarted.
Workaround solution
By default, the timeout of SCSI devices is 30 seconds on Linux.
VMware Tools can increase this time to 180 seconds.
It is recommended to set the timeout to 3600 seconds. Using the following command will execute this for the current session.
To set this value at the VM's start-up:
Go further
Join our community of users on https://community.ovh.com/en/.