Chapter 6 Cinder - 063 - NFS Volume Provider (Part II)

NFS Volume Provider(Part II)

 

Creating volume

Creating NFS volume with LVM volume as methods of operation, the only difference is the choice "nfs" in the drop-down list in the volume type.

 

Click on "Create Volume", cinder-api, cinder-scheduler and cinder-volume work together to create volume "nfs-vol-1".

This process, like the LVM volume.

 

Analysis of the process of creating volume:

1, cinder-volume start to finish Flow volume create work, the name Flow of volume_create_manager.

2, volume_create_manager performed first ExtractVolumeRefTask, OnFailureRescheduleTask, ExtractVolumeSpecTask, NotifyVolumeActionTask prepare volume creation.

     And then by the CreateVolumeFromSpecTask actually create volume.

3, first mount remote NFS directory.

     Execution stat, du command to check NFS directory.

     Execution of the truncate the file to create volume.

     Set volume file read-write.

     create operation is completed.

     Volume a file exists on the NFS, named "volume- <volume ID>".

4, volume list can be seen in the newly created volume.

 

--------------------------------------------------------引用来自-----------------------------------------------------------------

https://www.cnblogs.com/CloudMan6/p/5693771.html

https://mp.weixin.qq.com/s?__biz=MzIwMTM5MjUwMg==&mid=2653587703&idx=1&sn=303d3f7c0a55a3058b90177e99cd338f&chksm=8d3080eeba4709f8ef0b1a87bcd8e1173687127dfa4bb3c78e0443b55d8c6d26f49cb75f186c&scene=21#wechat_redirect

Guess you like

Origin www.cnblogs.com/gsophy/p/11089726.html
063
063