Extend Volume 操作 - 每天5分钟玩转 OpenStack(56)
前面我们讨论了 volume 的 attach 和 detach 操作,今天讨论如何扩大 volume 的容量。为了保护现有数据,cinder 不允许缩小 volume。 Extend 操作用于扩大 Volume 的容量,状态为 Available 的 volume 才能够被 extend。如果 volume 当前已经 attach 给 instance,需要先 detach 后才能 extend。 Extend 实现比较简单,流程图如下: 向 cinder-api 发送 extend 请求 cinder-api 发送消息 cinder-volume 执行 extend 操作 下面我们详细讨论每一个步骤。 向 cinder-api 发送 extend 请求 客户(可以是 OpenStack 最终用户,也可以是其他程序)向 cinder-api 发送请求:“请 extend 指定的 volume。 这里我们将 extend volume “vol-2”。 进入 GUI 操作菜单 Project -> Compute -> Volumes。 vol-2 当前大小为 1GB。其在...