Learn how to avoid read-only switching on your Linux VM disk.
Occasionally, as a result of a storage-related event, some partitions on a Linux machine may become read-only. In this article, we will explain 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 VM 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. The following command will execute this for the current session:
To set this value at the VM's startup, you can put this command in the following file:
Go further
For more information and tutorials, please see our other VMware on OVHcloud or Hosted Private Cloud guides. You can also explore the guides for other OVHcloud products and services.