Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
OpenStack Essentials. - Second Edition

You're reading from  OpenStack Essentials. - Second Edition

Product type Book
Published in Aug 2016
Publisher Packt
ISBN-13 9781786462664
Pages 182 pages
Edition 2nd Edition
Languages
Author (1):
Dan Radez Dan Radez
Profile icon Dan Radez

Table of Contents (20) Chapters

OpenStack Essentials Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
1. RDO Installation 2. Identity Management 3. Image Management 4. Network Management 5. Instance Management 6. Block Storage 7. Object Storage 8. Telemetry 9. Orchestration 10. Docker 11. Scaling Horizontally 12. Monitoring 13. Troubleshooting Index

Attaching the block storage to an instance


The virtual storage device we just created is not much good to us unless it is attached to an instance that can make use of it. Luckily for us, we just launched an OpenStack instance and logged in to it. Perform the following steps to attach the block storage to an instance:

  1. To show the attachment, start by connecting to the instance and listing the existing block devices on the instance that is running:

    instance# ls /dev/vd*
    /dev/vda  /dev/vda1
    

    The boot device for this instance is vda; this is the Glance image that was used to boot.

  2. Now attach the volume you just created to the instance you have running. When you list the devices on the instance again, you will see the Cinder volume show up as vdb:

    undercloud# openstack server add volume "My First Instance" my_volume
    instance# ls /dev/vd*
    /dev/vda  /dev/vda1  /dev/vdb
    
  3. The Cinder volume was attached as vdb to the instance. Now that we have a new block device on the instance, we treat it just as we...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}