Skip to content

snapshot request to controller service is not guarantee consistency #566

Closed
@hoyho

Description

@hoyho

In current design, when a user request to create a snapshot in kubernetes cluster, the volume data is not guarantee consistency.
consider following step:

  1. Create PVC and Pod and assume volume mounted and being use (more specifically , we can assume the volume format as xfs)
  2. Do some IO operation inside the pod with the volume:

企业微信截图_16278959047804

  1. create a snapshot
  2. external-snapshotter sidecar is listening the CR and then call CSI driver to create a snapshots via storage backend.
  3. 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 or fsync or something before the snapshots, which may not sound as a real "snapshots").

snap result without sync IO:
企业微信截图_16278959933848

  1. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions