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

TridentとKubernetesやOpenShiftを使用すれば、導入された永続的ボリューム(PV)のサイズを削減できますか。

Views:
3
Visibility:
Public
Votes:
0
Category:
astra_trident<a>翻訳の場合</a>
Specialty:
snapx
Last Updated:

環境

  • Trident for Kubernetes / OpenShift 19.07以降
  • Kubernetes(Kubernetes)1.16以上
  • OpenShift 4.5以降

回答

Kubernetes 1.16およびそれに相当 するOpenShiftバージョン4.5でストレージクラスにallowVolumeExpansionオプションが追加され、Trident 19.07以降でサポートされているため、導入後に永続ボリュームのサイズを簡単に拡張できます。

ただし、ボリュームサイズの縮小と縮小は現在実装されておらず、sizeパラメータが現在のサイズと照合されて、既存のボリュームサイズよりもサイズが増えているだけかどうかが確認されます。「iSCSI拡張」の2番目ポイントも参照してください。

交換用PVの作成とデータの移行を除いて、可能な使用方法は、通常、スペースリザベーションを使用せずにシンプロビジョニングのままにすることで、ONTAP ストレージ上のアグリゲートのスペース使用量を削減することです。このチェックボックス、バックエンド定義またはストレージクラスでオンにすることができます。デフォルトはです

追加情報

ボリュームに十分な空きスペースがあるときは妥当なように見えますが、 iSCSI PVの場合は、仮想ディスク上のデータの場所が仮想化ファイルの最後にある可能性があるため、ボリュームのサイズを小さくしてもデータが失われる可能性があるため、ボリュームのサイズを小さくすることもできません。

NFSボリュームの場合、これは理論的には実装できますが、Kubernetes自体から同様の設定(allowVolumeReductionなど)が必要になります。

 

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.