CentOS 7.4
0.9.8-18
bash vst-install.sh --nginx yes --phpfpm yes --apache no --named yes --remi yes --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota yes --exim yes --dovecot yes --spamassassin yes --clamav yes --softaculous yes --mysql yes --postgresql no
0) Using fresh installed CentOS 7.4
1) Install VestaCP from command line
bash vst-install.sh --nginx yes --phpfpm yes --apache no --named yes --remi yes --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota yes --exim yes --dovecot yes --spamassassin yes --clamav yes --softaculous yes --mysql yes --postgresql no
2) login as admin and go to 'Server' page (/list/server/)
3) press 'Restart' (sending request to /restart/system/?hostname=demo.vestacp.com)
4) System should down and any services not started
5) login via ssh, try do any operation (create/write a file, run service) and get the error ' failed (30: Read-only file system)'
i have same problem. all system is read only after reboot
OS CentOS Linux release 7.4.1708 (Core)
Kernel 3.10.0-693.21.1.el7.x86_64
If install with disabled File System Quota (using the parameter "--quota no") all works fine.
But if after try manual enable "FileSystem Disk Quota" from VestaCP UI -> Server -> Configure
and restart server then file system go into read-only mode.
in logs present
[ 336.838263] XFS (vda1): unknown mount option [usrjquota=aquota.user].
the problem is XFS lvm file system. reinstall centos with ext4 lvm partition.
maybe anyone have other solution? because some vps provider use default xfs lvm filesystem.
I can verify this issue as well. When installing and enabling File System Quota, upon restart, the machine is in read-only mode on XFS file systems. Re-installing while disabling File System Quota alleviates the problem.
I would most definitely like to see a fix for this considering that the default filesystem for CentOS 7 is XFS and not ext4 as it was in prior versions.
Can I fix this issue without reinstall ? Like removing some configurations that were made by VestaCP when I enable system quota through UI ? This is a bit pain.
Spent hours on it - but I think can disable quota without re-installing
```
sudo mount -o remount,rw /dev/vda1 /
Edit /etc/fstab as per https://forum.vestacp.com/viewtopic.php?t=15388
sudo reboot
Then login to VestaCP and from server configuration, set Quota to Off
When I edited /etc/fstab, and after trying to save it, got the error " failed (30: Read-only file system)"
Did you do this first?
sudo mount -o remount,rw /dev/vda1 /
You may need to change /dev/vda to match your drive
This will change the drive back to read write mode but will revert back to read only on next reboot, unless you fix the /etc/fstab
Correct mountoptions for XFS are:
defaults,uquota,gquota
Installer should check if filesystem is XFS and put it to fstab
According this post https://embraceubuntu.com/2006/01/29/move-home-to-its-own-partition/
I had tried to move /home to a new disk/partion and mount it in ext4 file system.
And Vesta works very well.
@napcok response work for me.
@napcok too bad there are fixes for many problems all over this project, but there's no one to accept them, because 'they haven't tested it'.
Most helpful comment
Correct mountoptions for XFS are:
defaults,uquota,gquotaInstaller should check if filesystem is XFS and put it to fstab