Fix error disk read-only in VestaCP after reboot

Share this post to your friends !
  • 2
    Shares

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,grpjquota=aquota.group,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.

Conclusion

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.

If you liked this article, then please subscribe to our YouTube Channel for more video tutorials. You can also find us on Twitter and Facebook.


Share this post to your friends !
  • 2
    Shares
If you appreciate what we share in this blog, you can support us by:
  1. Stay connected to: Facebook | Twitter | Google Plus | YouTube
  2. Subscribe email to recieve new posts from us: Sign up now.
  3. Start your own blog with SSD VPS - Free Let's Encrypt SSL ($2.5/month).
  4. Become a Supporter - Make a contribution via PayPal.
  5. Support us by purchasing Ribbon Lite Child theme being using on this website.

We are thankful for your support.

«« »»

Got something to say? Join the discussion

Please keep in mind that all comments are subject to our Comment Policy. Your email address will not be published.
This site uses Akismet to reduce spam. Learn how your comment data is processed.