Quotas problem on CentOS 6 Xen vps

ditto

Verified User
Joined
Apr 27, 2009
Messages
1,980
I have installed DirectAdmin on a xen vps at Linode.com, everything was working perfect out of the box, until after I finished migration from another box, I discovered that quota did not work on my vps at Linode. It is running CentOS 6.2 64bit.

First the problem was that my /etc/fstab did not contain userquota,groupquota , so I added those and rebooted. However it did not help.

When I run the command:
Code:
/sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;

I get this:
Code:
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.

However after many hours search I found that /dev/root was missing in my server, so I added symlink by running:
Code:
ln -s /dev/xvda /dev/root

Then I run:
Code:
/sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;

And now quota is working.

However the problem is that after reboot /dev/root is missing again, so I have to add it again after each reboot.

How can I add /dev/root so that it is not missing after reboot? Please help me suggest at command to add it differently?

Also I have been asking for help in Linode forum (I am user ditto), here is the thread: http://forum.linode.com/viewtopic.php?t=8294

The last reply a user say that /dev/root seems to be deprecated?

From the looks of things, /dev/root seems to be deprecated (based on 1 and 2). From a quick survey, I have it on my Ubuntu 10.04 workstation and Linode, but not on my Ubuntu 11.10 netbook.

It might be worth checking with the DirectAdmin folks, as it is a commercial product and they've probably run into this sort of stuff before. (I don't believe I'd heard about it prior to this thread.)

Worse comes to worse, /etc/rc.local.

I would be thankful for any help!
 
Reading this (about.com) gives me the impression that you may need to use MAKEDEV in order for something to last between boots. Or as the last reply says, add the link command to your /etc/rc.d/rc.local file so it'll run on each boot.

Jeff
 
Back
Top