08.存储Cinder→5.场景学习→10.Bootable Volume

背景:html




描述 详细
  1. Volume 除了能够用做 instance 的数据盘,也能够做为启动盘(Bootable Volume)。建立Volume,此时选择Volume Source为image,建立后能够看到该volume是Bootable的。

  1. volume建立过程同未指定Source基本一致。在cinder-volume的CreateVolumeFromSpecTask执行时,会克隆镜像到volume,从source为image建立volume,同时也会标记新建立的volume为bootable
1
2
3
4
5
Jun 24 10:23:18 controller cinder-volume[9747]: DEBUG cinder.volume.manager 
[None req-bb293b6d-e545-4c7c-ab1f-0e13eb985f0f admin None]
Task 'cinder.volume.flows.manager.create_volume.CreateVolumeFromSpecTask;volume:create'
(755e4775-3fa9-4279-a9ac-9a4bda7bda4c) transitioned into state 'RUNNING' from state 'PENDING'
{{(pid=9891) _task_receiver /usr/local/lib/python2.7/dist-packages/taskflow/listeners/logging.py:194
1
2
3
4
5
6
Jun 24 10:23:18 controller cinder-volume[9747]: 
DEBUG cinder.volume.flows.manager.create_volume
None req-bb293b6d-e545-4c7c-ab1f-0e13eb985f0f admin None]
Cloning 0b2f9486-5433-4321-a1a8-5acec04d1b03 from image 0b8481c1-62e5-481c-ab60-a0e4d2676430
at location (None, None).
{(pid=9891) _create_from_image /opt/stack/cinder/cinder/volume/flows/manager/create_volume.py:880}}

1
2
3
4
5
Jun 24 10:23:20 controller cinder-volume[9747]: 
DEBUG cinder.volume.flows.manager.create_volume
[None req-8fc4b821-b4c7-4892-a840-8f21c1af0fbb None None]
Creating from source image-volume 8461a721-a77b-4b59-977d-9f65c00ce7ce
{{(pid=9891) _create_from_image_cache /opt/stack/cinder/cinder/volume/flows/manager/create_volume.py:702
1
2
3
4
5
Jun 24 10:23:23 controller cinder-volume[9747]: 
DEBUG cinder.volume.flows.manager.create_volume
[None req-8fc4b821-b4c7-4892-a840-8f21c1af0fbb None None]
Marking volume 0b2f9486-5433-4321-a1a8-5acec04d1b03 as bootable.
{{(pid=9891) _enable_bootable_flag /opt/stack/cinder/cinder/volume/flows/manager/create_volume.py:474
  1. 建立好的volume可用于launch instance
相关文章
相关标签/搜索