Symptoms
Diskspace usage on VZ Backup node in OA under Services > Cloud Infrastructure > VPS Hardware Nodes > Backup Node > Stored VPS Backups shows:
While current usage is:
[root@vzlinbuckup01 ~]# df -h | grep vz
/dev/sda3 7.2T 6.4T 400G 95% /vz
Cause
There are a lot of corrupted backups without 'info' and 'metadata' files that cannot be managed by VZ Agent on the backup node.
Resolution
Synchronize VZ agent database to collect actual data of managed backups:
# /opt/pva/agent/bin/vzbackupsync
Acquire the list of corrupted backups by withdrawing (line-by-line) the list of 'good' backups (have 'info' file inside) from the list of all backups:
# find /vz/backups/ -name info | sort > goodbackups # sed -r 's/.{5}$//' goodbackups > goodbackups_trimmed # ls -d /vz/backups/*/* | sort > allbackups # comm -3 allbackups goodbackups_trimmed > corrupt_backups
Remove corrupted backups:
# rm -rf `cat corrupt_backups`