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

Persistent Volume Claim(PVC;永続的ボリューム要求)によってマウントされた空のPostgresデータストアの使用済みスペースがホストに100%表示されるのはなぜですか

Views:
9
Visibility:
Public
Votes:
0
Category:
astra_trident
Specialty:
snapx
Last Updated:

環境

  • Astra Trident
  • Kubernetes (クベルネ
  • SolidFire 
  • Postgres

回答

Postgresでは、通常のWAL(先行ログの書き込み)を使用できます。このWALファイルは、ファイルシステム上に16MBの領域を割り当てていますが、ファイル自体には何かが書き込まれるまで0だけが含まれています。何も書き込まれず、ファイルが完全に初期化されたままの場合でも、追加のファイルが作成されます。SolidFire はこれらのゼロを無視するため、結果は100%使用されたファイルシステムになり、SolidFire でファイルされたボリュームは6%だけになります

追加情報

SolidFire ストレージはデフォルトでシンプロビジョニングを使用しています。ホストまたはポッドはシンであることを認識しないため、フルディスクであることを前提としています。PVCは、永続ボリューム(PV)の100%を保証します。

# df -h | grep pvc-66d6dcb7-4b2c-4adb-90f6-604cc49d671a

/dev/mapper/36f47acc10000000034796a650000025a                  16G   15G     0 100% /var/lib/kubelet/pods/f0463b03-5fca-4f3a-a4f2-71d4ca38e16d/volumes/kubernetes.io~csi/pvc-66d6dcb7-4b2c-4adb-90f6-604cc49d671a/mount

SFストレージの使用率は6%のみ:

イメージ

このケースシナリオは、Postgresによく使用されます。ホストの使用済みスペースの値が常に100%となるとはかぎりません

 

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.