跳转到主内容

主机为何显示永久性卷声明(PVC)挂载的空后处理数据存储库的已用空间为100%

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

适用场景

  • Astra Trident
  • Kubernetes
  • SolidFire 
  • Postgres

问题解答

Postgres写入常规WAL (预写日志)。此WAL文件正在文件系统上分配16 MB空间、但文件本身仅包含零、直到写入内容为止。即使不写入任何内容、并且文件仍保持完全置零状态、也会创建其他文件。由于SolidFire 忽略了这些零、因此结果是文件系统已填满100%、而SolidFire 上只有6%的已归档卷

追加信息

默认情况下、SolidFire 存储正在使用精简配置。主机或POD不知道它是精简的、因此他们将其推至全磁盘。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.