OpenVZ Forum


Home » General » Support » second level quotas broken after online migration (second level quotas broken after online migration)
second level quotas broken after online migration [message #47371] Fri, 03 August 2012 17:26 Go to next message
barmaley is currently offline  barmaley
Messages: 5
Registered: September 2005
Location: Marietta, GA
Junior Member
From: *hsd1.ga.comcast.net
Hi there,

usually it happens for VE with cpanel installed. After online migration edquota throws an error, for example:

edquota: Quota write failed (id 502): Invalid argument

we're having exactly the same issue with virtuozzo and the recommended fix was to recreate /dev/vzfs

I used the same approach for /dev/simfs:
rm -rf /dev/simfs
_numero=$(stat / --format %d)
mknod /dev/simfs b $((${_numero} / 256)) $((${_numero} % 256))

and it looks like quota issue is gone.

Is it a safe thing to do? Wouldn't it break something else?
Re: second level quotas broken after online migration [message #51765 is a reply to message #47371] Thu, 13 November 2014 19:18 Go to previous message
slrslr is currently offline  slrslr
Messages: 11
Registered: April 2014
Junior Member
From: *client.rionet.cz
Hi, i got same error
is it safe to do "rm -f /dev/simfs" as you mention ?
the container must be stopped right?
Can i just do:
vzquota off CTID
vzquota on CTID
to fix it?

Here is an OpenVZ: wiki.openvz.org/Cpanel_quotas
i did commands they mention, and then vzctl set 860 --quotaugidlimit 200000 --save
then modiffication of cpanel disk quota limits started working
Then even cpanel/whm script fixed all unlimited cpanel quotas to their proper cpanel limits, this script command: /scripts/fixquotas (done from openvz VPS)
im so gratefull, thanks for sharing these tips!

[Updated on: Thu, 13 November 2014 19:53]

Report message to a moderator

Previous Topic: vzctl snapshots vs ploop snapshots
Next Topic: Cenexo mirror not updating
Goto Forum:
  


Current Time: Mon Oct 22 12:53:49 GMT 2018