Then you have a data corruption situation. This section describes how to address the issue.
To determine if the error is caused because one of the underlying disks went bad, follow to identify corrupted replicas.
If only one replica on the disk went bad, it can be a situation known as . In this case, removing the replica is good enough.
If all the replicas are identical, then the volume needs to be recovered using snapshots.
To revert to a previous snapshot:
- Revert to a snapshot. You should start with the latest one.
- Detach the volume from maintenance mode to any node.
- Mount the volume from
/dev/longhorn/<volume_name>
and check the volume content. - If the volume content is still incorrect, repeat from step 1.
If all of the methods above failed, use a backup to recover the volume.