Trident 无法使用 " 不支持的容量范围 " 调整卷大小
- Views:
- 39
- Visibility:
- Public
- Votes:
- 0
- Category:
- trident-kubernetes<a>2009039802</a>
- Specialty:
- nas
- Last Updated:
适用场景
适用于 OpenShift/Kubernetes 的 Trident
问题描述
卷大小调整可能会在 PVC 问题描述 或 Trident 错误日志中出现以下错误
[root@rhel1 test]# kubectl describe pvc nasvolnew
Name: nasvolnew
Namespace: default
StorageClass: basicnasnew
Status: Bound
Volume: pvc-c947eae5-3cbf-4356-b2c9-00baec838a17
Labels: <none>
Annotations: pv.kubernetes.io/bind-completed: yes
pv.kubernetes.io/bound-by-controller: yes
volume.beta.kubernetes.io/storage-provisioner: csi.trident.netapp.io
Finalizers: [kubernetes.io/pvc-protection]
Capacity: 6Gi
Access Modes: RWO
VolumeMode: Filesystem
Used By: naspodnew
Conditions:
Type Status LastProbeTime LastTransitionTime Reason Message
---- ------ ----------------- ------------------ ------ -------
Resizing True Mon, 01 Jan 0001 00:00:00 +0000 Tue, 01 Mar 2022 13:20:57 +0000
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning ExternalExpanding 51s (x5 over 139m) volume_expand Ignoring the PVC: didn't find a plugin capable of expanding the volume; waiting for an external controller to process this PVC.
Normal Resizing 3s (x12 over 139m) external-resizer csi.trident.netapp.io External resizer is resizing volume pvc-c947eae5-3cbf-4356-b2c9-00baec838a17
Warning VolumeResizeFailed 3s (x8 over 51s) external-resizer csi.trident.netapp.io resize volume "pvc-c947eae5-3cbf-4356-b2c9-00baec838a17" by resizer "csi.trident.netapp.io" failed: rpc error: code = Unknown desc = unable to resize the volume: unsupported capacity range; requested size 7516192768 is less than existing volume size 7689220096