[Users] Re: quota exceeded when migrating

Stanichenko Marat mstanichenko at openvz.org
Wed Dec 10 10:05:44 EST 2008


Aleksandar Ivanisevic wrote on 10.12.2008 17:25:
> Stanichenko Marat
> <mstanichenko at openvz.org> writes:
>
>   
>> are you sure that your quota is not in inconsistency state?
>> It could be tainted if you write something manually when VE is stopped.
>> Is it possible to reinitialize quota? Just stop your VE,
>> then "vzquota drop $VEID", then
>> start it again.
>>     
>
> It is definitely rsync.
>
> When the destination file exists rsync rsyncs to
> .filename.randomgarbage and then renames it at the end to the real
> filename. If the file has changed between the runs you have to have
> the quota to hold both files.
>
> try rsyncing a big file, i.e.
>
> rsync -aH --delete --numeric-ids ./ibdata1 alex at alex:/tmp
>
> ssh alex at alex touch /tmp/ibdata1
>
> now rsync again and during sync look in the destination
>
>   
>> ls -al /tmp/ibdata1 /tmp/.ibdata1*
>>     
> -rw-rw---- 1 alex alex 748683264 2008-12-10 15:19 /tmp/ibdata1
> -rw------- 1 alex alex 513540096 2008-12-10 15:20 /tmp/.ibdata1.d1zEBU
>
> so if the file is bigger than your available disk space, migration will
> fail.
>
>
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://openvz.org/mailman/listinfo/users
>
>   
Hello,

please look at the --inplace option of the rsync utility.
You can easily add it to vzmigrate (it's bash script).
Save old version of /usr/sbin/vzmigrate,
open it and add this option to RSYNC_OPTIONS
variable:
RSYNC_OPTIONS="-aH --delete --numeric-ids"



More information about the Users mailing list