After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 169 of 317

Chapter 8 159 How to do it... Carry out the following steps to create a volume using euca2ools: 1. First, create the volume that we will attach to our instance. The size (-s) option is in gigabytes, so we will create one with 5 GB. The zone option (-z) will be nova, for our OpenStack setup. # Source in our ec2 credentials . ec2rc euca-create-volume -s 5 -z nova 2. You should see output similar to the following: VOLUME vol-00000003 5 creating (cookbook, None, None, None) 2011-12-11T14:02:29Z 3. To view the status of any volumes, run the euca-describe-volumes command. When the volume has been created, the status changes from creating to available. euca-describe-volumes You should see output similar to the following: VOLUME vol-00000003 5 nova available (cookbook, openstack1, None, None) 2011-12-11T14:02:29Z Note that this project has been created in cookbook, in the zone nova. Carry out the following to create a volume using Nova Client: 1. First, create the volume that we will attach to our instance. # Source in our OpenStack Nova credentials . keystonerc nova volume-create --display_name volume1 5 2. On completion, the command simply returns with no output. To view our volumes using Nova Client, we run the following command: nova volume-list www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook