Snapshots¶
Danger
Snapshots in ETAIS operate differently from snapshots in other cloud providers e.g. Google Cloud, Azure, AWS.
When you create a snapshot from a virtual machine in ETAIS it creates an image of your virtual machine that you can later use to spin up a new virtual machine from the snapshot. While other cloud providers allow you to revert back to a certain state in time of the snapshot ETAIS does not. This is the peculiarity of OpenStack, the Open Source Cloud Computing Infrastructure to which ETAIS is interfaced to.
Before taking snapshots make sure your Virtual Private Cloud has enough free resources allocated. For a snapshot, you will need additional available Storage (GB) resource in the Virtual Private Cloud. When you want to restore a virtual machine from a snapshot you will need additional Storage resource, additional Cores (vCPU) resource and additional RAM (GB) resource.
For example, lets say your VM uses:
1 vCPU, 1 GB of RAM and 20 GB of Storage
1 vCPU, 1 GB of RAM and 40 GB Storage
2 vCPU, 2 GB of RAM and 60 GB of Storage
1 vCPU, 1 GB of RAM and 20 GB of Storage.
1 vCPU, 1 GB of RAM and 40 GB Storage.
- add resources to Virtual Private Cloud
- create a snapshot from a virtual machine
- restore a virtual machine from a snapshot
- delete the snapshot
- delete the old virtual machine
- create a new snapshot from the restored virtual machine
- decrease resources in Virtual Private Cloud
- repeat
Snapshot requirements:¶
- Machine downtime - services inaccessible
- Extra free Storage resource in the Virtual Private Cloud.
- When restoring from snapshot there needs to be free vCPU, RAM and additionally extra Storage resource.
Taking a snapshot quick guide¶
- Allocate additional Storage resource (GB) in your Virtual Private Cloud by the amount of the original disk.
- Click on your virtual machine name.
- From the Navigation bar choose
Storage. - From the
Storagedropdown chooseSnapshots. - Click on the
Create + - On the pop-up view give a desired name to the snapshot.
- Fill out the other optional fields if necessary - Description, Keep until.
- Submit.
- Done. When the disk is over 50 GB the snapshot creation will take a few minutes on the backend.
Restore from snapshot quick guide¶
- Allocate enough resources for the new virtual machine you are about to create from the snapshot.
- Minimally you will need 1 vCPU, 1 GB of RAM and the matching amount of Storage resource.
- In the snapshot view (virtual machine name -> Storage -> Snapshots) choose
ActionsandRestore - From
Flavordrop down choose the desired flavor - it is a good idea to choose the same size flavor as the original. Security Groupsshould also be the same as the snapshotted virtual machine to avoid potential problems.- Under
Networksmake sure to chooseAuto-assign floating IP - Submit
- Once the virtual machine has spun up, ssh into it and check if the machine is up to your specifications.
- Go back to the original virtual machine
Actions->Show all->Update floating IPs->Trash can icon->Submit - Go to the newly restored virtual machine
Actions->Show all->Update floating IPs->Trash can icon->Submit - Go to the newly restored virtual machine
Actions->Show all->Update floating IPs->+ Add-> Choose the original virtual machine's IP from the dropdown menu ->Submit - Wait a minute, the original machine's IP will show up behind the new machine's name.
- Done.