Ok the size is wrong here, because it should be already the absolut new size and still is 20GB.
So it seems the initial idea is still correct, the disk size can't be read, so let's check were this all starts. We'll need to add some more debug info.
Same procedure as before, but other file.
This time /usr/share/perl5/PVE/Storage/Plugin.pm it's around line 744.
I've left out some code to keep it simple, just add the warn line directly above the return statement, don't forget to restart the service.
So it seems the initial idea is still correct, the disk size can't be read, so let's check were this all starts. We'll need to add some more debug info.
Same procedure as before, but other file.
This time /usr/share/perl5/PVE/Storage/Plugin.pm it's around line 744.
Code:
sub file_size_info {
my ($filename, $timeout) = @_;
if (-d $filename) {
return wantarray ? (0, 'subvol', 0, undef) : 1;
}
my $cmd = ['/usr/bin/qemu-img', 'info', $filename];
my $format;
my $parent;
my $size = 0;
my $used = 0;
eval {
....
};
warn("DEBUG RESIZE:".$size);
return wantarray ? ($size, $format, $used, $parent) : $size;
}
I've left out some code to keep it simple, just add the warn line directly above the return statement, don't forget to restart the service.