40Gi pvc restore from snapshot tasks more than 11min:
source pvc: 40Gi
snapshot: oceanstor-40g-snapshot
targe pvc: from-oceanstor-40g-snapshot
describe pvc
# kubectl describe pvc from-oceanstor-40g-snapshot
Name: from-oceanstor-40g-snapshot
Namespace: default
StorageClass: oceanstor-vstore001
Status: Pending
Volume:
Labels: <none>
Annotations: volume.beta.kubernetes.io/storage-provisioner: csi.huawei.com
volume.kubernetes.io/storage-provisioner: csi.huawei.com
Finalizers: [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
VolumeMode: Block
DataSource:
APIGroup: snapshot.storage.k8s.io
Kind: VolumeSnapshot
Name: oceanstor-40g-snapshot
Used By: <none>
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Provisioning 43s csi.huawei.com_telecom-k8s-virt3_e1f5aebe-ebb8-4cf8-870b-d548c87a3580 External provisioner is provisioning volume for claim "default/from-oceanstor-40g-snapshot"
Normal ExternalProvisioning 14s (x4 over 43s) persistentvolume-controller waiting for a volume to be created, either by external provisioner "csi.huawei.com" or manually created by system administrator
pvc creating: (took 11min )
# kubectl get pvc from-oceanstor-40g-snapshot -w
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
from-oceanstor-40g-snapshot Pending oceanstor-vstore001 2s
...
from-oceanstor-40g-snapshot Pending pvc-1c32389a-0062-469d-8a0e-47b53d3c2896 0 oceanstor-vstore001 11m
from-oceanstor-40g-snapshot Bound pvc-1c32389a-0062-469d-8a0e-47b53d3c2896 40Gi RWX oceanstor-vstore001 11m
40Gi pvc restore from snapshot tasks more than 11min:
source pvc: 40Gi
snapshot: oceanstor-40g-snapshot
targe pvc: from-oceanstor-40g-snapshot
describe pvc
pvc creating: (took 11min )
csi-provisioner logs:
I have tried other csi like xsky, ceph that didn't take so much time, almost less than 3min
I wonder whether it’s possible to optimize the performance of snapshot recovery?