What is snapshot in computer worlds and how it works? How you ever heard about snapshots in Cloud, SAN or Virtualization industry? No. Don’t worry. You can get your answer right now:
Snapshot is like a backup of your data, somehow, but it uses a different method. Traditional backup copies your data bit by bit to another disk or tape. It’s like an image of your data to somewhere else. Snapshot uses Metadata copy of your data. Meta means change and data means your information. So, it copies your changed data to somewhere that reserved for data changes (PiT) and it doesn’t touch those data on original disk or source disk that it doesn’t change.
In order to achieve this goal, software of snapshot creates a table called Bitmap of Track Pointers and manages it. Assume there is a pointer on Bitmap table for each track on disk. Of course, it depends on software design but for our purpose let’s assume this. Therefore, software uses pointer 1 for track 1 and pointer 2 for track 2 and so forth.
Now, let’s assume that you want to revert your server for any reason. In other words, you want to restore your server to pervious state before getting snapshot. In this case, software goes through the Bitmap of Track Pointers table. Let’s back to our example above. Software goes to marked or tagged pointers in tables and finds track 5 and 6. It copies the values of track 5 and 6 on PiT area to track 5 and 6 on original disk and doesn’t change other tracks since there were no changes on those tracks. And that’s all. Your server restored to the same state that it was before getting snapshot.
- It’s so fast. Getting snapshots is so fast and it takes few seconds. It’s not like image copy that takes hours and hours to copy your data.
- Restoration is also fast since it copies only changed data.
- You save disk space because you save only changes not all data.
- It’s not a complete or image backup. So, if you original disk die, you will lose your data.
- You may experience performance issue during snapshot