メインコンテンツまでスキップ

OpenStack:Cinderドライバでは使用中のボリュームを拡張できますか。

Views:
59
Visibility:
Public
Votes:
1
Category:
openstack
Specialty:
virt
Last Updated:

環境

  • OpenStack Cinder
  • ネットアップのドライバ
  • SolidFireDriver

回答

ネットアップドライバ(ONTAP )

  • このボリューム拡張機能は、NetAppDriver Cinderドライバではサポートされていません。
  • 現時点では、サーバに接続され、NetApp ONTAP バックエンドを使用するルートボリュームのサイズを拡張することはできません。
  • この拡張は、ルート以外のボリュームをサーバから切断した場合にのみ実行できます。 
  • ルートボリュームを拡張しようとすると、Cinderのscheduler.logに次のイベントが表示されます。

/var/log/cinder/scheduler.log:2023-01-05 10:46:12.116 8985 DEBUG cinder.scheduler.filters.capabilities_filter [req-598b1f1c-f1b6-42c6-b481-d9491f36f88a 9f61737278e74e299ecf78393c6f2cc4 aa13b5b8c1e449fd93e598af2b4af8d0 - default default] Backend doesn't support attached volume extend _satisfies_extra_specs /usr/lib/python2.7/site-packages/cinder/scheduler/filters/capabilities_filter.py:45

SolidFireDriver

  • 使用中のルートボリュームを「available」に切り替えることで拡張できます。  手順 は次のようになります。
  1. VMの電源をオフにします

# openstack server stop extend_vm

# openstack server list
+--------------------------------------+-----------------+---------+----------------------+-------+----------+
| ID                                   | Name            | Status  | Networks             | Image | Flavor   |
+--------------------------------------+-----------------+---------+----------------------+-------+----------+
| ad0af6b4-9d24-4195-8095-6603b0426044 | extend_vm       | SHUTOFF | intnet=192.168.0.70  |       | m1.small |

# openstack volume list
+--------------------------------------+------------------+-----------+------+------------------------------------------+
| ID                                   | Name             | Status    | Size | Attached to                              |
+--------------------------------------+------------------+-----------+------+------------------------------------------+
| e1ec70e4-eb4e-425c-a141-38c00aa6df9e | solidfire_extend | in-use    |    2 |                                          |

  1. Cinderボリュームの状態を「available」にリセットします。

# cinder reset-state --state available e1ec70e4-eb4e-425c-a141-38c00aa6df9e

  1. ボリュームのサイズを変更します。

        # openstack volume set e1ec70e4-eb4e-425c-a141-38c00aa6df9e --size 4

# openstack volume show e1ec70e4-eb4e-425c-a141-38c00aa6df9e | grep size
| size                           | 4        

ボリュームのサイズを変更すると、ステータスが使用中に戻ることに注意してください。

# openstack volume show e1ec70e4-eb4e-425c-a141-38c00aa6df9e | grep status
| migration_status               | None  |
| os-vol-mig-status-attr:migstat | None  |
| os-vol-mig-status-attr:name_id | None  |
| replication_status             | None  |
| status                         | in-use

  1. VMの電源をオンにします

# openstack server start extend_vm

]# openstack server list
+--------------------------------------+-----------------+---------+----------------------+-------+----------+
| ID                                   | Name            | Status  | Networks             | Image | Flavor   |
+--------------------------------------+-----------------+---------+----------------------+-------+----------+
| ad0af6b4-9d24-4195-8095-6603b0426044 | extend_vm       | ACTIVE  | intnet=192.168.0.70  |       | m1.small |

 

追加情報

次の記事を参照してください。

Red Hatにはこの問題用の解決策があります。How to extend attached/in-use volume in OpenStack?"

抽出(編集):

3.42以上のマイクロバージョンに言及する場合は、Cinderクライアントを使用してボリューム拡張が機能するようにします。
# cinder  --os-volume-api-version <Microversion> extend <volume_id> <new_size_in_GiB>

例:
# cinder  --os-volume-api-version 3.42 extend  582a5eb4-0bfc-460b-a32e-d051a9a72d2a  10

注: OpenStack Unified ClientはCinderマイクロバージョンをまだサポートしていないため、使用できません。

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.