I installed Virtualmin onto a Linode running Centos 6, but ran into some error.

Failed to create virtual server : setquota: Cannot stat() mounted device /dev/root: No such file or directory setquota: Mountpoint (or device) / not found or has no quota enabled. setquota: Not all specified mountpoints are using quota.

Check via ssh:

quotaon -p -a

That should return:

quotaon: Cannot stat() mounted device /dev/root: No such file or directory group quota on /home (/dev/xvdc) is off user quota on /home (/dev/xvdc) is off

This is the same error: This thread on Virtualmin’s forum

So lets get started on fixing this:

mount

That should return

... /dev/xvda on / type ext3 (rw,noatime,grpquota,errors=remount-ro,usrquota) ...

Right, so our root / partition is indeed on /dev/xvda so we can create the missing symbolic link:

So run this command:

<strong>ln -s /dev/xvda /dev/root</strong>  

Then check:

quotaon -a

That should return something like:

quotaon: cannot find /home/aquota.group on /dev/xvdc [/home] 
quotaon: cannot find /home/aquota.user on /dev/xvdc [/home]

Before proceeding, in /etc/fstab please be sure “usrquota” and “grpquota” are in the options line:

/dev/xvdc  /home  ext3  grpquota,errors=remount-ro,usrquota,grpquota,noatime,rw  0  1

Now, instead of going thru a dozen cryptic commands, go back to Webmin (if Virtualmin is up, click Webmin on the top line). Open the System tab and then Disk Quotas. You should see the /home partition listed, and it probably says that quotas are not active. Simply hit “Enable Quotas” and the display should change to:

Filesystem Type Mounted From Status Action
/home (users)
/home (groups)
Linux Native Filesystem Xen device C User and Group Quotas Active Disable Quotas

…Done!

Linode CentOS Virtualmin – Disk Quotas cant turn on
Tagged on:                                             

Leave a Reply to DieSkim Cancel reply

Your email address will not be published. Required fields are marked *

6 thoughts on “Linode CentOS Virtualmin – Disk Quotas cant turn on

  • This is best solution I have found regarding issue of Centos Quotas while using a Linode VPS.

    I owe you a bottle of beer!!!

    1. Hey Jolly! Glad I could help! Let me know if you have any other problems with CentOS on Linode – I will be glad to help!

      1. Just create the symlink to /dev/root for quota fix in:

        /etc/init/mounted-dev.conf

        Here is where /dev filesystem is populated on boot, so just add:

        ln -s /dev/xvda /dev/root

        Just before the “end script” line inside this file. That will do the trick…