Hyper-V and deleting Snapshots
-
@DustinB3403 said:
I keep 4 backups (4 weeks worth of delta).
This is where you are wrong. If you were only keeping 4 delta's, you would have no way to restore.
VM disk file: bob.vhdx - 100GB
Click snapshot button: bob_s1.ss - 0GB-XXGB growing as the system is used bob.,vhdx stops getting wrote to.
Click snapshot again: bob_2.ss - 0GB-XXGB growing as the system is used bob_1 stops getting wrote to.Click delete on snapshot 2 and it merges the changes back into snapshot 1.
Click delete on snaphot 1 and it merges the changes back into bob.vhdx.bob_s1 and bob_s2 are deltas of things changed since they were created. they are useless for a backup or recovery.
When you use a backup tool, it makes a snapshot so that the bob.vhdx is no longer being changed in order to let the it be copied off. The backup tools generally then merge the snapshot back in after it is done copying the core virtual disk.
Thus, there is no possible way that you have valid backups as you describe them. As you use a valid tool to perform your backups, I am sure you actually do have good backups. Just your understanding of the process or ability to describe it is what is lacking.
-
@JaredBusch He's using NAUBackup for his backups... I think it was him that mentioned that in another thread.
-
@dafyre said:
@JaredBusch He's using NAUBackup for his backups... I think it was him that mentioned that in another thread.
Yes, I know that. And I know what it does. That is why I said I was confident that he had valid backups and was simply having an issue understanding or expressing.
-
@JaredBusch I must have missed a sentence... or post, lol... I think it went in one eye and out the other.
-
@DustinB3403 said:
In xenserver, when I create a snapshot of my VM's they can be used as a complete restore. I export these off-host, and they are now "backups". They are intact backups that I can use at any time to recover a vm at any point in time.
You are confusing the snapshot with the resulting exported image. The snapshot is a delta and useless. When you export it the system combines the original with the delta to make a useful image. While on the machine the snapshots are not full images on their own.
-
@DustinB3403 said:
@coliver So then it would be smart to regularly merge the Hyper-V snapshots to free up space on your server.
And that seems really odd IMO. . .
Correct, keeping lots of deltas cannot be done without wasting space. It's just impossible not to. Simple physics - two versions of a file take more space than one version.
Should not seem odd at all. What makes it odd? Seems totally obvious. How could snapshots not take up some space?
-
@dafyre said:
@JaredBusch He's using NAUBackup for his backups... I think it was him that mentioned that in another thread.
He did, that is what he is using.
-
It just seems odd how the system keeps the old snapshots. I wasn't aware that is uses each to look for the delta change.
The fact that it takes space is obvious.
A miscommunication on my part I guess. -
@DustinB3403 said:
It just seems odd how the system keeps the old snapshots. I wasn't aware that is uses each to look for the delta change.
Oh okay, well presumably it keeps them so that you have lots of points to roll back to.
-
@scottalanmiller I think of Snapshots as a quick point-in-time view... if something breaks, I can restore that snapshot in mere seconds, and I'm good to go.
If I have to pull a full image from a backup, it could take minutes - hours to restore that backup...