I am a bit troubled by the fact that I cannot seem to make new virtual servers apart from the two I already have running without problems. I get this 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.
Googleing it gave some nice results about how to fix it. Unfortunally, I have not been able to fix it by myself with these results. I must have done something wrong. To make things easier, I made an image of one of these results along with my PuTTy window with the commands I use and the results they give back. It is these results which puzzle me.
It can be accessed at this link as this forum does not seem to support direct images:
As shown in the image, I somehow have /dev/xdva2/ instead of /dev/xdva/. When putting the command in PuTTy for both xdva and xdva2 (I have no idea what the difference is), I now get this.
Oh, I missed your first comment above, I only noticed your second one.
If you have an xvda2, then you’d want to use this command:
ln -s /dev/xvda2 /dev/root
The device /dev/root needs to point to the device where your root filesystem is mounted – the command I gave above was just an example… since you have xvda2, you’d use that instead.
Mount still shows the same stuff as in the image in my first post:
[root@vps590 ~]# mount
/dev/xvda2 on / type ext3 (rw,grpquota,barrier=0,errors=remount-ro,usrquota)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
ls -l /dev/root shows:
lrwxrwxrwx 1 root root 5 Aug 7 14:51 /dev/root -> /root
I already did the ln -s command with xvda2 as shown in my previous comment. This is what I get now:
ln: creating symbolic link `/dev/root/xvda2’: File exists
The command which should follow up this step, quotaon -a still shows this:
quotaon: Device (/dev/root) filesystem is mounted on unsupported device type. Skipping.
“/root” is a directory on your filesystem, not a hard disk device.
If /dev/root is a symlink pointing to /root, that will indeed cause problems – you’d want to delete the /dev/root symlink, and instead make it point to /dev/xvda2.
Once you delete that symlink, you should stop getting the “File exists” errors you mentioned above.
“quotacheck -m /” gave: quotacheck: Cannot stat() mounted device /dev/root: No such file or directory
quotacheck: Mountpoint (or device) / not found or has no quota enabled.
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.
And this fixed it
The only thing was that my disk was at /dev/xvda2 in stead of /dev/xdva2.