Cannot make new virtual servers: something with quota's.

10 posts / 0 new
Last post
#1 Mon, 08/06/2012 - 19:46
Denizz

Cannot make new virtual servers: something with quota's.

Hello all,

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:

http://dennisderuiter.net/images/help%20viritualmin.png

I do hope a fix can be figured out for this, as I want to start with a new project ASAP :).

I am running CentOS 6 64 bit, on Linux 3.2 kernel. It is on a VPS, with Xen.

(And yes, I was looking up random stuff on Wikipedia for in case you are wondering why the current Nicuagarian president is in my search bar. :P)

Mon, 08/06/2012 - 22:24
andreychek

Howdy,

Yeah, we've noticed that problem with some Xen systems... the fix is to make a symlink that points from /dev/root to whatever your root mount is.

On many Xen systems, that's /dev/xvda -- if that's true in your case, you could solve this by running:

ln -s /dev/xvda /dev/root

Let us know if that does the trick for you!

-Eric

Tue, 08/07/2012 - 07:45
Denizz

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.

[root@vps590 ~]# ln -s /dev/xvda /dev/root
ln: creating symbolic link `/dev/root': File exists
[root@vps590 ~]# ln -s /dev/xvda2 /dev/root
ln: creating symbolic link `/dev/root': File exists
[root@vps590 ~]#

Unfortunally, the result is still this:

[root@vps590 ~]# quotaon -a
quotaon: Cannot stat() mounted device /dev/root: No such file or directory

Help!! :(

Tue, 08/07/2012 - 07:57
Denizz

Ok, now I did ln -s /root /dev/root and redid the symlinks from xvda again. Now I get:

[root@vps590 ~]# quotaon -a quotaon: Device (/dev/root) filesystem is mounted on unsupported device type. Skipping.

Somewhat strange, I say.

Tue, 08/07/2012 - 09:39
andreychek

What output do you receive if you run the command "mount"?

And what does this command show:

ls -l /dev/root

Thanks!

-Eric

Tue, 08/07/2012 - 09:42
andreychek

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.

-Eric

Tue, 08/07/2012 - 11:44
Denizz

Hi Eric,

Thanks for your help!

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.

Tue, 08/07/2012 - 12:39
andreychek

I think the issue is with this:

"Ok, now I did ln -s /root /dev/root"

"/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.

-Eric

Tue, 08/07/2012 - 13:06 (Reply to #8)
Denizz

Aaaand its fixed!

Thank you so much Eric!

For future visitors with Xen + Cent OS stumbling upon this thread while having the same problem:

  • I unlinked /dev/root with the unlink /dev/root
  • Redid the command ln -s /dev/xdva2 /dev/root
  • And then put in the command quotaon -a

And now it worked automatically.

Thanks again for helping this Linux newbie out ;).

Mon, 11/19/2012 - 16:07 (Reply to #9)
j0bb13

Thanks for this thread.

"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.

Thank you :)

Topic locked