OpenVZ Forum


Home » General » Support » vzquota error
vzquota error [message #570] Tue, 20 December 2005 14:41 Go to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
I believe I set this machine up the same as the other machine I did that works just fine, however I get errors when I attempt to create a VPS.

[root@ds00209 ~]# vzctl create 101 --ostemplate centos-4-minimal
Creating VPS private area: /vz/private/101
vzquota : (error) Quota on syscall for 101: File exists
vzquota on failed [3]
vzquota : (error) Quota is not running for id 101
Performing postcreate actions
VPS private area was created
[root@ds00209 ~]#


and start a VPS

[root@ds00209 ~]# vzctl start 101
Starting VPS ...
vzquota : (error) Quota on syscall for 101: File exists
vzquota on failed [3]
[root@ds00209 ~]#

[Updated on: Tue, 20 December 2005 14:48]

Report message to a moderator

Re: vzquota error [message #575 is a reply to message #570] Wed, 21 December 2005 10:20 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

It can be the case that you have not set up a separate partition for /vz, and the partition your VPSs are on have quota already turned on.

If this is the case, there are following options, choose one:

(1) create a separate partition for /vz;

(2) disable per-vps quota by setting DISK_QUOTA=no in /etc/sysconfig/vz (/etc/conf.d/vz for Gentoo)

(3) disable "native" quota for partition you use for VPSs.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: vzquota error [message #576 is a reply to message #575] Wed, 21 December 2005 12:50 Go to previous messageGo to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
Can I change the partitions without starting over from scratch?
Re: vzquota error [message #577 is a reply to message #576] Wed, 21 December 2005 13:04 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Just create a new partition, mount it to, say, /vz.new and then copy all data from /vz to /vz.new using cp -a.

Then, umount /vz.new, remove everything from /vz and mount new partition to /vz.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: vzquota error [message #653 is a reply to message #570] Wed, 04 January 2006 16:18 Go to previous messageGo to next message
AndyS is currently offline  AndyS
Messages: 3
Registered: January 2006
Junior Member
is id 101 already in use? i tried setting up a server using the id 100001 (from ip blocking 192.168.(100.001), and was getting that same error, upon lookin into the dir structure, i realised that my system had crashed during creating a template, and id 100001 was already in use, being used during its creation. maybe the same things happening to you.

Another reason i've found for the error (only applicable if your trying to shutdown a server) is if the directory is in use. e.g on another terminal, ftp, ssh etc. just chdir out of the /vz/private area. although, if the directory /vz/private/101 already exists and its in use somehow then it reports quota errors.
Re: vzquota error [message #654 is a reply to message #653] Wed, 04 January 2006 16:49 Go to previous messageGo to next message
johan_hammy is currently offline  johan_hammy
Messages: 99
Registered: December 2005
Member
This was on a fresh install, so I'm gonna assume that's not the problem. I haven't had time to make the partition adjustments as recommended, but I hope to report back here when I get that taken care of.
Re: vzquota error [message #26250 is a reply to message #577] Fri, 18 January 2008 13:56 Go to previous messageGo to next message
David C is currently offline  David C
Messages: 7
Registered: August 2007
Junior Member
kir wrote on Wed, 21 December 2005 08:04

Just create a new partition, mount it to, say, /vz.new and then copy all data from /vz to /vz.new using cp -a.

Then, umount /vz.new, remove everything from /vz and mount new partition to /vz.


Hi there, if right now

Quote:

Filesystem Size Used Avail Use% Mounted on
/dev/sda2 221G 28G 183G 13% /
/dev/sda1 965M 42M 874M 5% /boot
tmpfs 1013M 0 1013M 0% /dev/shm


This is what I have, how can I create a partition from an existing mounted partition?
Re: vzquota error [message #26276 is a reply to message #26250] Sat, 19 January 2008 16:25 Go to previous messageGo to next message
JimL is currently offline  JimL
Messages: 116
Registered: February 2007
Senior Member
First back everything up. Repartitioning will work fine unless you don't have backups. Murphy's law. Smile

You probably don't want to repartition a disk that is either mounted or in use, so the best option is to burn a gparted iso boot CD or parted floppy. If you can boot from USB then I think there are instructions on how to do that also.

Take a look at these sites for info on the process:

http://www.linux.com/articles/53924
http://partedmagic.com/docs/media.html
http://www.gnu.org/software/parted/manual/html_mono/parted.h tml#SEC7

Good luck,
Jim.
Re: vzquota error [message #37255 is a reply to message #570] Sat, 29 August 2009 12:24 Go to previous message
Pavel_Pronskiy is currently offline  Pavel_Pronskiy
Messages: 8
Registered: September 2006
Junior Member

vzquota drop 101
Previous Topic: Proxmox. vps not pinging.
Next Topic: Vzmigrate Can't connect to destination address using public key
Goto Forum:
  


Current Time: Thu Apr 18 00:54:10 GMT 2024

Total time taken to generate the page: 0.01518 seconds