How to Recover PVC Capacity Expansion Failed

If the expansion of storage resources fails, the cluster administrator can manually restore the status of the PVC and cancel the previous expansion request, otherwise the system will continue to try the expansion request. The steps to perform a restore operation are as follows:

1. Set the recycling policy of the PV resources bound to the PVC to "Retain";

2. Delete the PVC, and the data in the PV still exists at this time;

3. Delete the claimRef definition in the PV, so that the new PVC can be bound to it, and the result will make the PV status "Available";

4. Create a new PVC, set a storage space application smaller than the PV space, and set the volumeName field to the name of the PV, and the result will complete the binding between the PVC and the PV;

5. Restore the original recycling strategy of PV.

おすすめ

転載: blog.csdn.net/shanyaodou/article/details/131187387