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
相關文章
相關標籤/搜索