Todas as coleções
Volumes
How to create snapshots in BCOS?
How to create snapshots in BCOS?

Understand the process of creating and applying snapshots.

Luiz Fernando Justino Silva avatar
Escrito por Luiz Fernando Justino Silva
Updated over a week ago

We saw in the previous post How to backup volumes in BCOS? The process of creating and restoring volume backups, in this post we will look at the snapshot features.

Snapshots 

 Snapshot is an image that preserves the state of a running machine, and thus can create another instance preserving the files and settings of the machine on which the snapshot was taken.

  Attention: The snapshot feature causes loss of access to the machine until termination, the machine is not restarted in the process.

   To start the snapshot creation process first create one instance with a different name than the first and follow the same creation steps:

  • Instance Name: VM02.

  • Select boot source: Image.

  • Create New Volume: No.

  • Image Name: Cirros-Image.

  • Flavor: bc-1-128-10.

  • Network: rede-production.

   Note: If you do not know the process of creating an instance, see the post How to create instances in BCOS?.

   Log in to the VM02 console and create a folder on the instance:

  • User: cirros.

  • Password: “cubswin:)” without the quotes.

  • Create folder inside VM02: mkdir test.

  • Access the directory created: cd test.

  Create a file inside the folder and list it:

  • Create file inside folder: echo “Binario Cloud” >> arq01.txt.

  • List files: ls -lh.

  To create an instance snapshot, in Project / Compute / Instances in the actions button on the right side of VM02 select Create Snapshot, then set the name and click in Create Snapshot again:

  • Snapshot name: snap-vm02.

 Wait for the snapshot to finish.  

 In Project / Compute / Instances on the VM02 actions button click in Delete Instance, confirm the deletion by clicking in Delete Instance again:

   In Project / Compute/ Images find the newly created snapshot, click in Launch:

  From the image, create a instance by repeating the second creation procedure, but on the Source tab select Instance Snapshot and keep the snap-vm02 option as the image:

  • Instance Name: VM03.

  • Select boot source: Instance Snapshot.

  • Create New Volume: No.

  • Image Name: snap-vm02.

  • Flavor: bc-1-128-10.

  • Network: rede-production.

 Having created the instance log in to your console and check the folders that were created on VM02:

  • Access the directory: cd test.

  • List files: ls -lh.

  In the post How to associate volumes in different instances in BCOS?, we will learn how to unlink and associate volumes between different instances.

Respondeu à sua pergunta?