I am currently managing a Linode CentOS 7 with cPanel/WHM. Setting this up was a treat last August and I continue to learn new things about how to manage this beast.
We were getting notification about a cron job that was failing:
“repquota: Cannot stat() mounted device /dev/root: No such file or directory”
Using a VPS the deployment from Linode is to specify your OS and deploy. Out of the box this has been failing.
The solution turned out to be pretty simple:
Find your /dev/root in the /etc/mtab and compare to /etc/fstab then create a symbolic link between the actual data partition and the symbolic drive:
ln -s /dev/sda /dev/root
Then fix the quotas:
./usr/local/cpanel/scripts/fixquotas
I have read that upon a reboot the symbolic link will be lost but you can set the OS to remap this link by adding the command to the /etc/rc.d/rc.local.
Make sure to make rc.local executable:
chmod +x /etc/rc.d/rc.local