Closed duclm2609 closed 3 months ago
@duclm2609 You should not need to re-deploy the stateful set. Can you just try to resize the PVC only (setp 3 only), it should work for your use case.
I'm not sure if this is still a problem. Please provide the logs if it still concerns. The pvc seems to have not gotten unmounted before trying to mount again. However, as mentioned in previous comment, the resize should simply work without requiring most of the steps mentioned w.r.t statefulset.
I'll go ahead closing this for now. Please reopen if it is still an issue and provide provisioner logs.
Hi guys, I'm running a statefulset which using lvm-localpv as storageclass. Recently there is a requirement to expand the volume size, but since the statefulset cannot update PV size directly, I follow the following steps to increase the PV size:
The statefulset succesfully create the PVC and bind it to the exepcted PV, but the pod is stuck at starting. Check the event logs I see the following errors:
Warning FailedMount 88s (x19 over 24m) kubelet MountVolume.SetUp failed for volume "pvc-97fd3b2a-2482-449a-ac08-7109f8558c2f" : rpc error: code = Internal desc = verifyMount: device already mounted at [/var/lib/kubelet/pods/271055b9-4f6a-4a2d-9ebe-096f26cd81e3/volumes/kubernetes.io~csi/pvc-97fd3b2a-2482-449a-ac08-7109f8558c2f/mount]
What can I do now to resolve the problem without the risk of losing data? Any help is appreciate. Thank you.