operator 大量刷日志 W0409 09:44:32.943571 1 phase.go:74] volume tidb-rum/tikv-tidb-rum-tikv-3 modification is not allowed: can't shrunk size from 3519Gi to 300Gi

【 TiDB 使用环境】生产环境 /测试/ Poc
【 TiDB 版本】: v6.5.8
【复现路径】做过哪些操作出现的问题
【遇到的问题:问题现象及影响】当前正在迁移机房,后续会有大量的集群进行部署,想确认一下是否有问题.
【资源配置】
【TiDB Operator 版本】:1.5.2
【K8s 版本】:1.21.14
【附件:截图/日志/监控】
tidb operator tidb-controller-manager 大量刷日志:
W0409 09:44:32.943571 1 phase.go:74] volume tidb-rum/tikv-tidb-rum-tikv-3 modification is not allowed: can’t shrunk size from 3519Gi to 300Gi
W0409 09:44:32.943579 1 phase.go:74] volume tidb-rum/tikv-tidb-rum-tikv-11 modification is not allowed: can’t shrunk size from 3519Gi to 300Gi
W0409 09:44:32.943586 1 phase.go:74] volume tidb-rum/tikv-tidb-rum-tikv-12 modification is not allowed: can’t shrunk size from 3519Gi to 300Gi
W0409 09:44:32.943593 1 phase.go:74] volume tidb-rum/tikv-tidb-rum-tikv-14 modification is not allowed: can’t shrunk size from 3519Gi to 300Gi
W0409 09:44:32.943599 1 phase.go:74] volume tidb-rum/tikv-tidb-rum-tikv-19 modification is not allowed: can’t shrunk size from 3519Gi to 300Gi
W0409 09:44:32.943605 1 phase.go:74] volume tidb-rum/tikv-tidb-rum-tikv-6 modification is not allowed: can’t shrunk size from 3519Gi to 300Gi
W0409 09:44:32.943611 1 phase.go:74] volume tidb-rum/tikv-tidb-rum-tikv-1 modification is not allowed: can’t shrunk size from 3519Gi to 300Gi
W0409 09:44:32.943618 1 phase.go:74] volume tidb-rum/tikv-tidb-rum-tikv-10 modification is not allowed: can’t shrunk size from 3519Gi to 300Gi
W0409 09:44:32.943625 1 phase.go:74] volume tidb-rum/tikv-tidb-rum-tikv-16 modification is not allowed: can’t shrunk size from 3519Gi to 300Gi
W0409 09:44:33.552146 1 phase.go:74] volume tidb-rum/pd-tidb-rum-pd-0 modification is not allowed: can’t shrunk size from 3519Gi to 300Gi
W0409 09:44:33.552163 1 phase.go:74] volume tidb-rum/pd-tidb-rum-pd-1 modification is not allowed: can’t shrunk size from 3519Gi to 300Gi
W0409 09:44:33.552169 1 phase.go:74] volume tidb-rum/pd-tidb-rum-pd-2 modification is not allowed: can’t shrunk size from 3519Gi to 300Gi

1. 关于这个报错 v1.5.2 的 operator 相关逻辑做了一些修改
v1.5.2 是真实大小, v1.4.0 是最小的大小:
v1.5.2
Status.Capacity:Represents the actual resources of the underlying volume.

v1.4.0

Spec.Resources: Resources represents the minimum resources the volume should have.

2.当前报错原因为 PVC 申请的 300g 和 local pv 实际大小 3519g 不匹配,没有实际影响,如果担心日志量过大导致性能问题,可以将 PVC 大小调整为 和 local pv 一样的 3519G 可以消除报错。

can’t shrunk size from 3519Gi to 300Gi 这是空间收缩过小造成的