摘要: cinder-volume 初始化 volume 的连接 cinder-volume 接收到 initialize_connection 消息后,会通过 tgt 创建 target,并将 volume 所对应的 LV 通过 target export 出来。 通过命令 tgtadm --lld is 阅读全文
posted @ 2019-06-21 17:29 gsophy 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Attach Volume (Part I) Volume 的最主要用途是作为虚拟硬盘提供给 instance 使用。 Volume 是通过 Attach 操作挂载到 instance 上的。 上一节成功创建了基于 LVM provider 的 volume。每个 volume 实际上是存储节点上 阅读全文
posted @ 2019-06-21 17:04 gsophy 阅读(345) 评论(0) 推荐(0) 编辑
摘要: Create Volume(Part III) 第三部分 cinder-volume 的处理过程 cinder-volume 通过 driver 创建 volume 与 cinder-api 和 cinder-scheduler 执行方式类似,cinder-volume 也启动了一个 Flow 来完 阅读全文
posted @ 2019-06-21 16:17 gsophy 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Create Volume(Part II) 第二部分 cinder-scheduler 调度工作 cinder-scheduler 执行调度 cinder-scheduler 执行调度算法,通过 Filter 和 Weigher 挑选最优的存储节点 cinder-scheduler 通过 Flow 阅读全文
posted @ 2019-06-21 16:11 gsophy 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Create Volume (Part I) Cinder 创建 volume Create 操作流程如下: 1、客户(可以是 OpenStack 最终用户,也可以是其他程序)向 API(cinder-api)发送请求:“帮我创建一个 volume”。 2、API 对请求做一些必要处理后,向 Mes 阅读全文
posted @ 2019-06-21 16:07 gsophy 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 准备 LVM Volume Provider Cinder 真正负责 Volume 管理的组件是 volume provider。 Cinder 支持多种 volume provider,LVM 是默认的 volume provider。 Devstack 安装之后,/etc/cinder/cind 阅读全文
posted @ 2019-06-21 16:01 gsophy 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 掌握 cinder-scheduler 调度逻辑 创建 Volume 时,cinder-scheduler 会基于容量、Volume Type 等条件选择出最合适的存储节点,然后让其创建 Volume。 详细分析 cinder-scheduler 实现调度工作的具体步骤: 在 /etc/cinder 阅读全文
posted @ 2019-06-21 10:39 gsophy 阅读(367) 评论(0) 推荐(0) 编辑
摘要: Cinder 组件详解 cinder-api cinder-api 是整个 Cinder 组件的门户,所有 cinder 的请求都首先由 cinder-api 处理。 cinder-api 向外界暴露若干 HTTP REST API 接口。 在 keystone 中可以查询 cinder-api 的 阅读全文
posted @ 2019-06-21 09:32 gsophy 阅读(196) 评论(0) 推荐(0) 编辑