Repair LTFS tapes
Why tapes can become corrupted and how to repair them.
There are two partitions on every LTFS tape, the first is used to store the index file which contains a directory of all the files on the tape, the second stores data and index files.
Here you see files written then Index A, files then Index B, files then Index C. Each Index contains a complete list of files saved so far on the tape.
Then when the tape is unmounted another copy of the final index is written to the beginning of the first partition. So here there are two copies of Index C.
Power loss or drive disconnected after job completes
On this tape all the files have been written correctly and the final index C has been written correctly.
Then the LTO drive has been disconnected or powered off without unmounting the tape. So the index in the first partition is the older Index B and does not match Index C.
When mounting YoYotta LTFS will automatically repair the tape by writing a copy of Index C to the first partition.
However if this tape is mounted whilst it is write protected then the mount will fail because the indexes don't match and the repair isn't possible.
YoYotta LTFS will show a message asking you to eject the tape, turn off write protection and then remount.
The tape will be repaired and no files will be lost.
Power loss or drive disconnected during job
Here the LTO drive has been disconnected or powered off during the archiving of data.
There is no Index at the end of the second partition.
YoYotta LTFS cannot automatically repair this tape even if it is write enabled.
The last index has not been written so the last files cannot be read and the tape will not mount.
Click the Repair button in the LTFS panel and YoYotta LTFS will rollback to Index B.
So the last files will be lost, but the rest of the tape will be OK.
You may want to reformat this tape and rewrite it, but it is possible to continue using it.
© 2021 YoYotta Back to Top