Fix error disk read-only in VestaCP after reboot

SystemMen - How to fix error disk read-only in VestaCP server after reboot?

Today I will share with you an error I encountered when using VestaCP.

Describe the error situation

I use a CentOS 7.6.1810 (Core) server and VestaCP 0.9.8-23.

Today I modified the nginx file configuration of a website in VestaCP and restarted the server.

After about 2 minutes, I could not connect to the server using SSH.

I made the console connection into the VestaCP server to see what was going on.

Error appears when reboot VestaCP

On the console window I get a message that I cannot start the server because It cannot read the partition on the disk.

Fortunately, the console window allows me to enter the root password to login to see what happens. And I don’t see partition /home. VestaCP installed on this partition.

This partition has the XFS system file type before installing VestaCP. After that, I checked the /etc/fstab file and found it to be quite strange file system format.

/dev/mapper/centos-home /home                       xfs     defaults,usrquota,grpquota,usrjquota=aquota.user,,jqfmt=vfsv0        0 0
fix-error-disk-read-only-in-vestacp-after-reboot-01 Fix error disk read-only in VestaCP after reboot
The /home partition changes the system file from XFS to a new format.

I tried using the mount -a command to re-mount the partitions on the disk but failed.

fix-error-disk-read-only-in-vestacp-after-reboot-02 Fix error disk read-only in VestaCP after reboot
Try mount the partitions but failed.

Cause error disk read-only when reboot VestaCP

After searching one round, I found out that I’m not the only one who encountered this case.

There are people who are like the dark and they wrote on the VestaCP forum.

And I also found a confirmation bug link for this error of VestaCP.

Fix error disk read-only after reboot

What should I do now? If it’s a bug, then don’t wait. I have followed the suggestions on the forum.

I edited the file /etc/fstab, reformatted the /home partition to file system type XFS. Then reboot the server.

It look like this.

/dev/mapper/centos-home /home                       xfs     defaults        0 0

And it worked again. Something very strange.

Why does VestaCP change the file system format of the /home partition so that error happens.


I have shared a very practical case I have encountered in the process of using VestaCP. If you encounter it like me, I hope you will solve it like I did. Good luck.

«« »»