AWS EBS Volumes and Cinder service in Openstack — How Volume works for Newcomers?

***************************************************************

Some attributes of a Cinder Volume:

Name , ID , Volume Type , Size ( GB ) , Created At, Metadata , Status , VM Instance attached to(tenant ID), Availability Zone, Encrypted, Replication Status, User ID, Snapshot ID

Each Volume status = is “available” or “in-use”

Some commands for Cinder:

“cinder list”, “cinder create”, “cinder delete”

***************************************************************

In Cinder -> we have Volume ID “f856***”

Volume of 10 GB (storage)

In Nova -> we have Instance ID “71au***”

Virtual Machine (VM Instance) [IP = “172.24.4.10”]

command = nova volume-attach 71au*** f856***

Device ID = /dev/vdb

In the VM Instance, we run these shell commands:

(sudo fdisk /dev/vdb)

(sudo mkfs.ext4 /dev/vdb1)

(sudo mount /dev/vdb1 /mnt)

In the “/mnt” folder — we will create Directories and Files

The Files will be stored on Storage Volume Device (/dev/vdb) (“f856***”)

The new Filesystem = /dev/vdb1

/dev/vdb1 is mounted on /mnt

For unmount the command is = (sudo umount /dev/vdb1)

command = nova volume-detach 71au*** f856***

Detach the Volume “f856***” from Instance 71au***

Always unmount the Volume and then do the Detach Volume from Instance.

Source: