-
Notifications
You must be signed in to change notification settings - Fork 38
05. Block Storage: Cinder
Each section is supposed to be independent. That's why, for each section, you have to create an instance with a key, a security group and private subnet.
Remember, a snapshot of instance/volume is not usable directly, you need to create instance/volume from it.
- Create an instance "instance1" from cirros-0.3.4-x86_64-uec image and ssh to it.
- image: cirros-0.3.4-x86_64-uec
- flavor: m1.tiny
- keypair: key1
- security group: new-secgroup
-
inside the home directory of "instance2" create a file testfile.txt
-
take a snapshot of instance "instance2", name it "snapshot-of-instance2"
-
terminate the instance "instance2"
-
Create an instance from "snapshot-of-instance2" and name it "instance-from-snapshot"
-
inside the home directory of "instance-from-snapshot" verify the presence of the file
- Create a new empty volume "vol1" of a 1GB size
- Create an instance "instance1" from cirros-0.3.4-x86_64-uec image
- image: cirros-0.3.4-x86_64-uec
- flavor: m1.tiny
- keypair: key1
- security group: new-secgroup
- Attach the created image "vol1" to the instance, "instance1", ssh to it and mount it to /mnt/vdb
- inside the attached volume (/mnt/vdb) create a file testfile.txt
- detach the colume "vol1" from the instance "instance1"
- Take a snapshot of "vol1", name it "snapshot-of-vol1"
- create a volume from the snapshot
- reattach the first volume "vol1" to the instance "instance1"
- delete the previously created file "testfile.txt"
- detach the colume "vol1" from the instance "instance1"
- attach the created volume "new-vol" to the instance "instance1"
- inside the attached volume verify the presence of the file "testfile.txt"
- Create a new empty volume "vol2" of a 1GB size
- Create an instance "instance3"
- image: cirros-0.3.4-x86_64-uec
- flavor: m1.tiny
- keypair: key1
- security group: default
- Attach the volume "vol2" it to the instance "instance3"
- Inside the home directory of the mounted partition inside "instance3" create a file testfile.txt
- Detach the volume from the running instance
- Backup the volume "vol2" into a volume "vol2-backup"
- Remove the original volume "vol2"
- Restore the backed up volume "vol2-backup"
- Delete the backup volume "vol2-backup"
- Attach it to the running instance "instance3"
- Inside the mounted partition, make sure the file "testfile.txt" exists
-
Create the encrypted volume "encrypted-vol" (LUKS volume) of 1GB size
-
Create an instance "instance4"
-
Attach the encrypted volume to the machine
-
Create a file "testfile.txt" and syncronize the operations
-
Check if you can see the encrypted volume on the block storage node directory