After Deprec

openstack_cloud_computing_cookbook

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

Contents of this Issue

Navigation

Page 170 of 317

Nova Volumes 160 3. This returns output similar to the following: +----+-----------+--------------+------+-------------+-------------+ | ID | Status | Display Name | Size | Volume Type | Attached to | +----+-----------+--------------+------+-------------+-------------+ | 1 | available | None | 5 | None | | | 2 | available | volume1 | 5 | None | | +----+-----------+--------------+------+-------------+-------------+ How it works... Creating nova-volumes for use within our project, cookbook, is very straightforward. Using euca2ools, we use the euca-create-volume tool, which takes the following syntax: euca-create-volume -s size_Gb -z zone This then creates the volume to be used in our environment with an ID in the form vol- 00000000, on our nova-volume host. With Nova Client, we use the create-volume option with the following syntax: nova create-volume --display_name volume_name size_Gb Here, volume_name can be any arbitrary name with no spaces. We can see the actual LVM volumes on nova-volumes, using the usual LVM tools as follows: sudo lvdisplay nova-volumes --- Logical volume --- LV Name /dev/nova-volumes/volume-00000001 VG Name nova-volumes LV UUID G62e3s-gXcX-v8F8-jmGI-DgcY-O0Ny-i0GSNl LV Write Access read/write LV Status available # open 0 LV Size 5.00 GiB Current LE 1280 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 252:0 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