Cannot create virtual servers

15 posts / 0 new
Last post
#1 Tue, 02/22/2011 - 06:11
Atomboy

Cannot create virtual servers

Have installed new GPL Virtualmin with new Debian 6 Squeeze and all seems OK but get this when trying to create new virtual server:

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.

Any help gratefully received.

Thanks to everyone for the new Squeeze update.

Tue, 02/22/2011 - 08:43
andreychek

Howdy,

What kind of server are you running -- is it by chance a VPS? Some VPS's can sometimes be tricky to get quotas working.

Also, what do you see when you run the command "mount"?

-Eric

Tue, 02/22/2011 - 09:39 (Reply to #2)
Atomboy

Thanks for the reply.

Yes, it is a VPS - a Linode 512.

I have installed and uninstalled Virtualmin quite a few times and upgraded from Debian 4 to 5 in the past and everything has always just worked.

I cannot pretend to be that competent or know much, so hope this is what you are looking for, after running mount:

/dev/xvda on / type ext3 (rw,noatime,grpquota,errors=remount-ro,usrquota)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)

Thanks very much.

Wed, 02/23/2011 - 05:34
Atomboy

Just in case this is of any interest to anyone, I have now installed Virtualmin on Ubuntu 10.04 LTS and everything went fine and all seems to be working OK.

As a pointer - and I do not know whether this is to do with Linode or Virtualmin - the Ubuntu install did not require to give the server a FQDN. The Linode distro install gives a name in the form of xxxx.users.linode.com or similar and this is how I have left it with Debian installs and everything has worked.

It seems to have been that giving the Debian 5 and 6 distros a name throws a spanner into the works.

As I said, I do not know why this is, but it may give someone else a pointer.

Because I am basically only playing and agnostic, I think I will stick with the working Ubuntu.

Again, many thanks for all the help and hard work from people who do know what they are doing.

I like Virtualmin and am glad to have it running again.

Wed, 02/23/2011 - 09:50
andreychek

Gah, sorry for my slowness to reply on your previous post -- I didn't have any immediate thoughts on why you were seeing that problem, and I then forgot to get back to you.

However, I'm thrilled to hear that it was later resolved for you on Ubuntu 10.04.

Linode is a good provider, and I'd expect things to work on their setup. You have a Xen-based VPS with a fixed amount of RAM and swap, which is good.

We may need to run a couple of tests in our dev environment here to figure out why you saw some of the symptoms you're describing, but at least in the meantime you have a working system :-)

-Eric

Thu, 02/24/2011 - 03:33
alexp999

I have this exact same issue, can't Create virtual servers on a Linode 512 running Debian 6.

I was running Ubuntu 10.04 fine before, but seeing as my site is not online yet and now Virtualmin supports Deb 6, I wanted to rebuild the server as a Debian 6 one.

I started from fresh so there would be no conflicts, everything installs fine, but quotas dont work.

I have narrowed the error down a bit, in that it seems like the quota service is not starting or running correctly. It says inactive under disk quotas in Webmin, and when you run "service quota start", it comes up with the same error you get when you try to create a virtual server:

"Cannot stat() mounted device /dev/root: No such file or directory..."

I have spent ages looking around and cant see anything immediatly obvious, I don't know if its a Linode Deb 6 issue, or something which is also a problem with Virtualmin.

A workaround I read about, involves creating a symlink for /dev/root and pointing it to your root device as defined in fstab (usually dev/xvda in Linode). But it seems like a dirty workaround as opposed to a proper fix.

If there is anything I can help with, or testing out etc, I effectively have a blank canvas of a Linode 512 I can play with at the moment.

Cheers.

Thu, 02/24/2011 - 07:38 (Reply to #6)
BryantRV

FWIW- I have the exact same problem (on a Linode). Mine is a Lenny install which I upgraded to Squeeze, so Virtualmin was already installed and 5 websites set up and working, but I cannot add a new parent site, though I can add a new sub server.

In looking at my own desktop machine, which is running Lenny still, I don't have a /dev/root on it (I do have webmin running on it, but not Virtualmin).

Thu, 02/24/2011 - 05:16
alexp999

I opened up a ticket with linode and got this response:

I'm sorry to hear about the issues you're having! However, it doesn't appear that /dev/root exists on our default Debian 6 distribution template:

=
debian:~# ls /dev/|grep root
debian:~#
=

I'm not specifically familiar with setting up quotas, however you may want to reach out to our active user community for assistance. Many of our customers are system administrators who can offer excellent advice. You can find more information about our forums and IRC channel at:

http://www.linode.com/community/

Thu, 02/24/2011 - 06:44
Atomboy

Although I am sorry you are also having this problem, alexp999, I am pleased in a way to see that it was not something I had done in isolation, due to some unnoticed stupidity.

I see you have opened a thread on the Linode forum at:

http://forum.linode.com/viewtopic.php?t=6753

which also refers back here.

I was just about to start using the Ubuntu setup as detailed above and thought I would check here first.

I think I will now leave things for bit to see how this develops.

Thanks in advance to everyone reading.

Thu, 02/24/2011 - 08:40
alexp999

Ok thanks to someone on the Linode forums, it seems its a bug with the Linode Debian 6 distro. There is in fact supposed to be a symlink for dev/root, but its not in the Linode Deb 6 distro.

I have contacted Linode support and asked them to make the fix to their distrubtion package.

Fri, 02/25/2011 - 03:32
alexp999

I have just received an update from Linode to say that this issue has now been fixed for new deployments of Debian 6.

For everyone with the issue on existing Linode Debian 6 deployments, you need to run the following command:

ln -s /dev/xvda /dev/root

(Substitue xvda with the device you are using as root, if needed)

Mon, 09/05/2011 - 06:02 (Reply to #11)
abrahaj

and ln -s /dev/sda1 /dev/root

is not helping :(

Fri, 02/25/2011 - 04:20
ShadowMonster

Without to much complication and messing you can just reinstall quota package to let say 3.16 version and will be fixed for linode server. You can use wajig to keep the version to not be updated.

Mon, 09/05/2011 - 05:41 (Reply to #13)
abrahaj

This is also a problem on stable debian squeeze (not the linode) The following NEW packages will be installed: quota 0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded. Need to get 0 B/580 kB of archives. After this operation, 1610 kB of additional disk space will be used. Preconfiguring packages ... Selecting previously deselected package quota. (Reading database ... 78386 files and directories currently installed.) Unpacking quota (from .../quota_4.00~pre1-6_amd64.deb) ... Processing triggers for man-db ... Setting up quota (4.00~pre1-6) ... quotaon: Cannot stat() mounted device /dev/root: No such file or directory

Should it a problem with 4.00~pre1-6!? my source lists is: deb http://ftp.easynet.be/ftp/debian/ squeeze main non-free contrib deb http://security.debian.org/ squeeze/updates main contrib non-free deb http://software.virtualmin.com/gpl/debian/ virtualmin-squeeze main deb http://software.virtualmin.com/gpl/debian/ virtualmin-universal main

Mon, 09/05/2011 - 06:26
abrahaj
service quota start
quotaon: Cannot stat() mounted device /dev/root: No such file or directory

is the /dev/root mounted or symlinked?

(root@h05)-(~/bin) $ stat /dev/root
  File: `/dev/root' -> `/dev/sda1'
  Size: 9               Blocks: 0          IO Block: 4096   symbolic link
Device: bh/11d  Inode: 194146      Links: 1
Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-09-05 13:15:40.208824183 +0200
Modify: 2011-09-05 13:05:35.802820832 +0200
Change: 2011-09-05 13:05:35.802820832 +0200

and

quotaon -V
Quota utilities version 4.00.
Compiled with: USE_LDAP_MAIL_LOOKUP EXT2_DIRECT HOSTS_ACCESS ALT_FORMAT RPC RPC_SETQUOTA BSD_BEHAVIOUR
cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,noatime,errors=remount-ro,data=ordered,usrquota,grpquota 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,mode=755 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
tmpfs /dev tmpfs rw,size=10240k,mode=755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0
devpts /dev/pts devpts rw,nosuid,noexec,gid=5,mode=620 0 0
none /dev/shm tmpfs rw,nosuid,noexec 0 0

Anyone has any advice? Thank you

P.S This used to be debian lenny, quota running fine. I upgraded kernel and moved to squeeze and now the problems above.

Topic locked