Closed
Description
In current design, when a user request to create a snapshot in kubernetes cluster, the volume data is not guarantee consistency.
consider following step:
- Create PVC and Pod and assume volume mounted and being use (more specifically , we can assume the volume format as xfs)
- Do some IO operation inside the pod with the volume:
- create a snapshot
- external-snapshotter sidecar is listening the CR and then call CSI driver to create a snapshots via storage backend.
- However, If the CSI driver or storage backend create snapshots right now, there's some data cache need to sync to backend, or they may be still in pagecache and causes data lost. (That means snapshots required the user to call
echo 3 > /proc/sys/vm/drop_caches
orfsync
or something before the snapshots, which may not sound as a real "snapshots").
- gRPC call to controllerServer is unlike call to nodeServer. It is not possible to sync IO IMO.
If there's any solution to promise that?