Page 1 of 2

Snapshosts and fixed storage

Posted: 19. Jan 2013, 19:00
by waldorfm
Hi,

Reading about Snapshots at http://www.virtualbox.org/manual/ch01.html#snapshots I understand that a Snapshot is not a backup of existing data. Instead, it marks the beginning of a new storage location where all new data and changes will be written to. If this is correct, I wonder what would happen if a snapshot is done while the VM uses an empty 20 GB fixed virtual hard drive. Doesn't this mean 20 GB of disk space will continue to be wasted as new data is written to the Snapshot?

Thanks.

Re: Snapshosts and fixed storage

Posted: 19. Jan 2013, 19:27
by noteirak
that's correct.

Re: Snapshosts and fixed storage

Posted: 20. Jan 2013, 00:20
by waldorfm
Ok. Many thanks for the prompt answer!

Re: Snapshosts and fixed storage

Posted: 20. Jan 2013, 12:05
by mpack
Happily the issue never arises because nobody in their right mind uses either fixed disks or snapshots anyway! :wink:

Re: Snapshosts and fixed storage

Posted: 20. Jan 2013, 20:22
by loukingjr
mpack wrote:Happily the issue never arises because nobody in their right mind uses either fixed disks or snapshots anyway! :wink:
I beg to differ about the snapshots. At least one snapshot anyway. Whenever there are major updates such as a new Kernel it's nice to preserve the working machine before updating because many times the updates will break the install. It's much easier and quicker than cloning. I learned the hard way.

Re: Snapshosts and fixed storage

Posted: 21. Jan 2013, 14:04
by mpack
You can easily back up a VM without involving snapshots. Cloning speed isn't really relevant IMHO, since you ought to be making proper backups anyway before any major change.

Re: Snapshosts and fixed storage

Posted: 21. Jan 2013, 14:11
by loukingjr
Yes, you could make backups. However in my case where I could have 20-30 VMs at a time, snapshots seem to be quicker and easier and take up less disk space. different strokes etc.

Re: Snapshosts and fixed storage

Posted: 21. Jan 2013, 14:17
by mpack
Yes, we could get into the old snapshots vs cloning debate, but here is not the place for it - the OP didn't ask about that. So lets call it quits.

Re: Snapshosts and fixed storage

Posted: 21. Jan 2013, 14:20
by loukingjr
okie doke. :)

Re: Snapshosts and fixed storage

Posted: 21. Jan 2013, 17:10
by mpack
Though perhaps you might try explaining to this chap, why you think snapshots are better than clones. :twisted:

Re: Snapshosts and fixed storage

Posted: 21. Jan 2013, 17:18
by loukingjr
mpack wrote:Though perhaps you might try explaining to this chap, why you think snapshots are better than clones. :twisted:
thought we were done? as I mentioned, using ONE snapshot works for me. multiple snapshots can quickly turn into a nightmare.

Re: Snapshosts and fixed storage

Posted: 21. Jan 2013, 17:47
by mpack
We were done, but then this prime example presented itself. He only had one snapshot too: not that that helps if you lose the base VDI as he did.

Re: Snapshosts and fixed storage

Posted: 21. Jan 2013, 17:53
by loukingjr
mpack wrote:We were done, but then this prime example presented itself. He only had one snapshot too: not that that helps if you lose the base VDI as he did.
So I guess what you are saying is if someone uses a snaphot/snapshots incorrectly they will have problems.

Re: Snapshosts and fixed storage

Posted: 21. Jan 2013, 18:08
by mpack
No, I'm saying that if you damage any file in a snapshot chain then you'll have problems, particularly if its the base VDI. File damage can happen for a number of reasons, not all of them involving improper manipulation of the snapshot files. With a backup there can be no such problem - you just restore the affected file.

Re: Snapshosts and fixed storage

Posted: 21. Jan 2013, 18:13
by loukingjr
mpack wrote:No, I'm saying that if you damage any file in a snapshot chain then you'll have problems, particularly if its the base VDI. File damage can happen for a number of reasons, not all of them involving improper manipulation of the snapshot files.
From what I read he never copied the VDI in the first place. Had he copied the entire VirtualBox folder he would of been fine. It doesn't seem to me snapshots were the problem. It's just all he had left. Had he cloned the VM and managed not to copy that to his new drive he would be no better off.