Issue link: https://read.uberflip.com/i/1334488
Nova Volumes 162 4. We should see 5 GB of space available for the running instance. At this moment, this is like adding a fresh disk to a system, so you need to format it for use and then mount it as part of your filesystem. sudo mkfs.ext4 /dev/vdb sudo mount /dev/vdb /mnt df -h We should now see the newly attached disk available at /mnt: Filesystem Size Used Avail Use% Mounted on /dev/vda 1.4G 602M 733M 46% / devtmpfs 248M 12K 248M 1% /dev none 50M 216K 50M 1% /run none 5.0M 0 5.0M 0% /run/lock none 248M 0 248M 0% /run/shm /dev/vdb 5.0G 204M 4.6G 5% /mnt Only format the volume if this is the first time you have used it. Carry out the following steps to attach a volume to an instance using Nova Client: 1. If you have no instance running, spin one up. Once running, run the nova list command and note the instance ID. # Source in credentials . keystonerc nova list The following output is generated: 2. Using the instance ID, we can attach the volume to our running instance, as follows: nova volume-attach ccd477d6-e65d-4f8d-9415-c150672c52bb 4 /dev/vdc /dev/vdc is specified here so as not to conflict with /dev/vdb, as the former refers to the same instance described previously. www.it-ebooks.info

