We are planing to migrate repo with large files to LFS using git lfs migrate. We had few practice runs and each time we deleted lfs-objects on server-side.
I noticed that there is rake task to check lfs. When I ran it it says there are 10 failures.
We solved this by replacing corrupted object b675b00828707cd53dc5c130efce8a9d352e5efd8b9b29f06808810b6ebb5491 on server with not corrupted object from one of clones.
We found that cat PATH_TO_LFS_OBJECTS_DIR_ON_SERVER/b6/75/b00828707cd53dc5c130efce8a9d352e5efd8b9b29f06808810b6ebb5491 | sha256sum
isnt correct (not equals to b675b00828707cd53dc5c130efce8a9d352e5efd8b9b29f06808810b6ebb5491).
But the result of cat b675b00828707cd53dc5c130efce8a9d352e5efd8b9b29f06808810b6ebb5491 | sha256sum in clone is correct (equals to b675b00828707cd53dc5c130efce8a9d352e5efd8b9b29f06808810b6ebb5491).
We replaced the contents of file b675b00828707cd53dc5c130efce8a9d352e5efd8b9b29f06808810b6ebb5491 on server with the contents of this file rom cloned repo.