hello,
i'm on plesk 12.0.18 and i would like to backup my server config. I have an error
Logging::error('Available disk space () is less than required by storage bund...', 'fatal') called at /opt/psa/PMM/agents/shared/Storage/Storage.pm line 523
(you can see this post for history... http://talk.plesk.com/threads/update-parallels-panel-11-5-3-to-12-0-18-how-to.324480/ )
the function un cat /usr/local/psa/PMM/agents/shared/HelpFuncs.pm is like that
and in /opt/psa/PMM/agents/shared/Storage/Storage.pm
but the problem still persist :'(
in shell when I do df -P -kit seems to work
do you have an idea ?
i've unchecked the disk space verification in backup settings with no more results ...
is it a way to launch the function reserveSpace and/or getMountSpace helper in shell ? to see the returned value ?
or can i launch /usr/local/psa/bin/pleskbackup server -c comand line to backup only the config ?
thanks
thanks
i'm on plesk 12.0.18 and i would like to backup my server config. I have an error
Logging::error('Available disk space () is less than required by storage bund...', 'fatal') called at /opt/psa/PMM/agents/shared/Storage/Storage.pm line 523
(you can see this post for history... http://talk.plesk.com/threads/update-parallels-panel-11-5-3-to-12-0-18-how-to.324480/ )
the function un cat /usr/local/psa/PMM/agents/shared/HelpFuncs.pm is like that
Code:
sub getMountSpace {
my $mount = shift;
my $df = qx( df -P -k $mount) or die $!;
while ( $df =~ /^(\S+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+\%)\s+(\S+)$/gm ) {
return (1024 * $2, 1024 * $4, $6);
}
return;
}
and in /opt/psa/PMM/agents/shared/Storage/Storage.pm
Code:
sub reserveSpace {
my ($self ) = @_;
if (exists $self->{space_reserved} ) {
my $avail = (HelpFuncs::getMountSpace($self->getFullOutputPath()))[1];
if( $avail < $self->{space_reserved} ) {
my $errmsg = "Available disk space ($avail) is less than required by storage bundle ($self->{space_reserved})";
Logging::error($errmsg,'fatal');
print STDERR "$errmsg\n";
exit(2);
}
my $namebase = $self->getFullOutputPath().'/.fs_'.(0+$self).'_';
my $var = 0;
while( -e "$namebase$var.tmp"){$var++;}
$self->{space_reserver} = "$namebase$var";
Logging::debug("Reserve disk space at $self->{space_reserver}");
qx( dd if=/dev/zero of=$self->{space_reserver} bs=$self->{space_reserved} count=1);
}
}
but the problem still persist :'(
in shell when I do df -P -kit seems to work
Code:
root@xxx:~# df -P -k
Filesystem Size Used Avail Use% Mounted on
rootfs 20G 2.2G 17G 12% /
/dev/root 20G 2.2G 17G 12% /
/dev 7.9G 168K 7.9G 1% /dev
none 7.9G 0 7.9G 0% /dev/shm
none 7.9G 624K 7.9G 1% /var/run
none 7.9G 0 7.9G 0% /var/lock
none 7.9G 0 7.9G 0% /lib/init/rw
/dev/md2 1.8T 1.1T 677G 62% /var
none 7.9G 624K 7.9G 1% /var/run
none 7.9G 0 7.9G 0% /var/lock
do you have an idea ?
i've unchecked the disk space verification in backup settings with no more results ...
is it a way to launch the function reserveSpace and/or getMountSpace helper in shell ? to see the returned value ?
or can i launch /usr/local/psa/bin/pleskbackup server -c comand line to backup only the config ?
thanks
thanks
Last edited: