OpenVZ Forum


Home » General » Support » vzdump limitation? need work around large VPS
Re: vzdump limitation? need work around large VPS [message #51411 is a reply to message #36914] Fri, 16 May 2014 10:19 Go to previous messageGo to previous message
gdsorin is currently offline  gdsorin
Messages: 1
Registered: May 2014
Location: Craiova, Romania
Junior Member

In debian 7 (wheezy) with VZDump 1.2.3-3 is following workaround,
In file "/usr/share/perl5/PVE/VZDump.pm"
after line 1077 "foreach my $task (@$tasklist) {"
i added:
if ($opts->{'exclude-path'}) {
$task->{'exclude-path'}=$opts->{'exclude-path'};
}
And in file "/usr/share/perl5/PVE/VZDump/OpenVZ.pm"
after line 147 "my $rsyncopts = "--stats -x --numeric-ids --bwlimit=$opts->{bwlimit}";"
i added:
my $excluds = " ";
foreach my $path (@{$task->{'exclude-path'}}){
my $pathu=substr($path, 1, length($path)-4);
$excluds = $excluds." --exclude '$pathu'";
}

$self->cmd ("rsync $rsyncopts -aH --delete --no-whole-file --inplace $excluds '$from' '$to'");
and commented with # $self->cmd ("rsync $rsyncopts -aH --delete --no-whole-file --inplace '$from' '$to'");

  • Attachment: VZDump.pm
    (Size: 26.06KB, Downloaded 666 times)
  • Attachment: OpenVZ.pm
    (Size: 9.34KB, Downloaded 662 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Does x64 OpenVZ host support running x86 guest?
Next Topic: How to move large simfs directories from one container to another?
Goto Forum:
  


Current Time: Sun Jul 14 09:53:00 GMT 2024

Total time taken to generate the page: 0.02242 seconds