Avoiding the read-only switch of your VM disk on Linux
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
Browse all the VMware on OVHcloud guides.
Browse the rest of the OVHcloud US documentation for guides on our other products and services.
Learn more about VMware on OVHcloud on the OVHcloud US website.