Backup VM - unused VHD
-
Hello,
I would like to ask you what does it mean?
I use XO from source updated.
Backup job is set:
Delta backup - on every Wednesday and Saturday. Backup retention is 2 and full backup interval is set to 2 too. Is it OK?
On backup storage I have 2 backups ( 1x full and 1x delta ).
Information about unused VHD is see only during delta backup job ( Wednesday ), Full backup - is OK.
Is it normal or I have wrong set Backup Job?
Thank you
-
-
This is part of the health check that is enabled for the backup. If you click on the "unused VHD" link, it will expand to show you the path of the VHD in question.
I just experienced this myself, and it appears that XO automatically removes the detected VHD.
-
@Danp yes that is an automatic healthcheck process that try to ensure that the vhd chain are healthy
before this summer it was done without information in the UX, we choose to expose this to help detecting probelm before they're out of control
-
@florent Thank you for your reply. So, Itś not good information about unused VHD because merge does not work? Whether I undertand it correctly the last delta should be merged a then deleted from backup storage, but this process will not take place. Is that right or I misunderstood?
-
I also had the same problem. But I realized that the problem only appeared when the VM was offline. This may have nothing to do with the problem, but leaving the VM online solved my problem.
-
@JB all VM are online. Yesterday I updated XO from source we'll see in a few days.
-
I too have this issue on several VMs being backed up, all online/running.
I understand it is part of the automatic health check.
I do not understand what it means nor if it's good or bad, nor what to do about it, if anything.
Thanks to the OP and all contributing to this thread.
G
-
After a few days I have analyzed this:
Scenario backup:
1VM guest - 100GB StorageBackup jobs:
Delta backup - 7days ( Full backup interval - 7), Backup retention 7. Cron pattern 0 2 * * *After last delta backup today I see on NAS this:
On a picture is last today delta backup 1.78GB,
but in XO canť see for restore.
Today status of backup
WARNING - unused VHD.
During today last delta backup before ( full backup - tomorrow ) merge FALSE in backup LOG, so we cant restore always last backup before new fullbackup.
Before merging was last VHD deleted from NAS storage.
Does anyone have any idea where the problem could be?
-
hi @lukask ,
When a backup is missing, can you go into your NAS and delete the
cache.json.gz
files ? They will be regenerated when checking the restore tab againRegards
Flo
-
Hi, @florent
I have deleted cache file a it works. I see last backup and restore works too. Perfect.
So info about unused VHD is not important? Is it only info that VHD was deleted a health is alright?
Thank you very much for your help.
-
-
In my case, I'm using NFS as the backup target. Perhaps this matters.
I don't think my issue has to do with full backups as I have a 30 day full backup interval.
After the fact (the next morning), when I look for the referenced (unused VHD link) files on the NFS server, they are missing.
Perhaps a timing issue? Or no real issue at all?
Thanks,
G
-
OK, I think I have resolved my issues with "unused VHD".
Taking a clue from @florent, I started deleting the cache.json.gz files from the storage server for the VMs where I had the "unused VHD" warning during backups.
Then a browser refresh on the Restore page would show a different number of backups available.
I then deleted some of the old backups (that weren't necessarily visible before).
I then started really looking for problems/issues with old backup jobs, deleting the cache.json.gz files for any VMs I had questions about.
Apparently, this has resolved all occurrences of "unused VHD" during backups.
I'll keep monitoring/looking for problems/issues.
Thanks,
G
-
So, unfortunately, occurrences of "unused VHD" continue.
I also continue to have problems where, under Restore, there are more backups listed than than the retention setting is configured for.
If I try to delete the oldest backup listed (i.e. #8 of 7), I get an "ENOENT: no such file" error.
If I delete the associated "cache.json.gz" file from the backend storage and refresh the Restore page in the browser, the 'extra' backup (#8 of 7) goes away.
What is "unused VHD"?
Is it good or bad?
Why does it occur?
What should we do about them, if anything?
Why are there extra listed backups shown on the Restore page?
What should we do about the incorrect number of backups shown on the Restore page?
Thanks in advance,
G
-
I think @florent did various modifications recently to handle those cases automatically.