Related issue:
https://github.com/longhorn/longhorn/issues/2187
Scenario
- Create a kubernetes pod + pvc that mounts a Longhorn volume.
- Write 5 Gib into the pod using
dd if=/dev/urandom of=/mnt/<volume> count=5000 bs=1M conv=fsync status=progress
- While running the above command initiate a snapshot.
- Verify the logs of the instance-manager using
kubetail instance-manager -n longhorn-system
. There should some logs related to freezing and unfreezing the filesystem. LikeFroze filesystem of volume mounted ...
- Verify snapshot succeeded and
dd
operation will complete. - Create another snapshot/backup and verify the data.
Note: The above issue is still open and the scenario will not work.