by dylan604 · 4w ago · 0 comments
When you create an archive, do not skip the step of reading it back. I'm not talking about just having the system confirm it is readable. I mean actually restoring the data from the tape. I've had tapes fail to retrieve data off of the tape even though the writing app confirmed it was readable.
Drives can have issues reading data written by another drive. Drives can have issues reading a tape it wrote itself.
Why write one when you can write two at twice the time/cost? In all of my experience with tape, I've never written just one tape. In the early days of DVDs, the images were written to LTO to send to have the discs pressed. Two were always sent on the chance one wasn't readable and schedules were so tight that the loss of a couple of days to send a new tape would wreck delivery dates. Another facility wrote three tapes: one kept on site, one sent to IronMountain, one sent to the client directly. Plenty of occasions saw the local copy unreadable and the IronMountain copy was retrieved. These were managed by large robotic tape libraries so each tape was written in a different drive at the same time so it was 3x cost while only 1x time.
Use the drive cleaning cassette as recommended. Your dirty heads can cause the data to not be written/read correctly depending on which head is dirty. If you're having issues reading, clean the heads before giving up on the tape. If you're having issues reading a tape just written, do not think someone else will be able to read it.
Ensure whoever might be using a tape you've written understands what was used to write the tape. Not all archivers are compatible. If you use the tar command to write to tape, people using a GUI app won't be able to read it.
Perhaps one of you is living in a much more humid and/or hot environment that causes issues with the writing process.
Debugging this was really fun, especially due to the randomness factor. :)
Understanding why this is as important as it is requires some visualization of the bit densities of modern tape drives, the capacity is enormous, the tape is ridiculously thin and the bits are small enough that it doesn't take much to make a part of a tape unreadable beyond what the error recovery logic can deal with. And that's before we get into longer term effects such as layer-to-layer copy and demagnetization.
I suspect that the number of problems you encounter from tapes scales superlinearly because they physically move. This leads to a lot of unpredictable failure modes. HDD racks also fail a lot, but in more predictable ways because all the data is managed in software.
Retention decreases exponentially with temperature, but the flip side is that it also increases exponentially when refrigeration is added. A conservative estimate is 30 years at -20 Celsius. Another added benefit of flash is that it's now much denser than tape (~10x) and doesn't need to be moved - it can be powered down on the storage rack (and powered up for refresh every 6 months or so). Unfortunately, it's still ludicrously expensive (and even more at the higher densities).
—which happened often enough. Tape stuck in a drive, operator has to go into the tape library to fish it out. You have to turn the robots off first. Individual tape errors were invisible because we used erasure codes. We would have to see, like, four correlated failures in order to lose data.
I did the math and we were comfortable with that level of redundancy, based on our data for how often tapes fail. When I say I did the math, I mean I personally did the math, but I don’t have the figures handy.
There wasn't any value to it, but I wish I still had it.
We also had special head alignment tapes that would be used just prior to an important recording. Usually this was a single screw, one side of the head would be held fixed in place and the other could be adjusted up or down against a spring, the head would tilt relative to the tape running direction. On very fancy multi track recorders you could also lift the whole head up and down so the (very small) heads would match up with the tracks.
I'm also sorry I threw away my punch card decks.
And I'm sorry I sold my H11 for $25.
We use LTO, and I think I saw ONE failed tape in 15 years and it failed during write. We do restores regularly on a pool of tapes that is rotated so each tape is touched at least every few months and it. Far lower failure rate than hard drives
Drives can be a bit temperamental when they got older but it's all generally reporter before actual failure
> Use the drive cleaning cassette as recommended. Your dirty heads can cause the data to not be written/read correctly depending on which head is dirty. If you're having issues reading, clean the heads before giving up on the tape. If you're having issues reading a tape just written, do not think someone else will be able to read it.
Every tape library we used that was automatic, the drives asked for tape and the tape library just looked up in which slot it is.
This is an interesting point - these days, tape is in the very top end of the market, both when you have too much data to fit on spinning metal (it's twice as dense in volume), and have regulators making sure you have off-site offline archives going back a number of years.
An interesting shift is happening, however - flash is now much denser per volume than tape, and can be re-written more times. It needs periodic refreshing, but, if you keep it at, say, -10C it should keep data for decades. As data volumes increase, flash might become an option for near and off-line storage. The on and near-line archives also would look a lot more like racks of storage servers, because the medium has a built-in drive and doesn't need a robot moving it to a set of mechanical devices. Downside is that it's thousands of times more expensive than tape.
The highest grade, reliability wise, goes in industrial grade products; the next following grade goes in name-brand SSDs; the lower ones in mass-market memory cards. One day an employee at a famous NAND manufacturer said "That's not even worth of a C grade", on that day the USB flash drive was invented...
Reality, especially modern one (as in early 2010s+n), is obviously more complicated, all sorts of consumer products are made with all sorts of chips, with name brands and even specific models/price class being only loosely indicative of quality, specifications (such as density: SLC/MLC/TLC/QLC/PLC - how many bits crammed into each capacitor) not always available and in any case not contractual with respect to the model, counterfeiting and/or Flash Fraud (inflated capacity with address-overflow overwriting) still ubiquitous in certain segments, ...
eMMCs are indeed generally a tier above the common microSD in reliability (compensating for soldered vs replaceable?) and in performance (how many UHS-II cards and readers have you seen in person? Most eMMCs are designed for, and used in, 8-bit mode and are usually fast enough to benefit from it), never mind that your phone might be using a newer and faster technology like UFS for its internal storage!
That said, your specific example is unlikely to be coincidence; you're suspecting the contacts (which indeed I find to often go bad on the modern microSD+SIM tray designs), so do the cards work in an USB microSD reader? (Avoid micro/miniSD to SD adapters, their thickness-constrained design also loosens and goes bad at an appalling rate!)
I worked in VFX and had the joy of looking after a few different tape systems.
Ranging from a single drive HP MSL4048 tape "robot" right up to various multi-rack monsters with 25 LTO6 drives.
First, you need good software, that is a critical thing. If you are making your own around tar, uts possible, but you need to test it. There are(or were) some opensource robot drivers, but they are somewhat painful to use (although LLMs are your friend here)
With big robots, the pain points are: mechanical.
THe systems I used had CCTV cameras to see what was going on. When it worked, the 25 drive monster could saturate 30gigs a second. THe issues we had were making sure the nearline had enough bandwidth to feed the library cache, and making sure the library cache was fast enough.
However the the robot used to get sad, it would drop tapes, randomly post tapes to the wrong slot, then get upset, or a drive would be sad and need vacuuming. The data was fine. But we regually pushed and pulled petabytes from it.
For anyone curious, tape libraries come in a variety of sizes, including down to 1U (5 tapes) and 2U (15 tapes), e.g.:
* https://buy.hpe.com/ca/en/storage/tape-storage/business-clas...
* https://buy.hpe.com/ca/en/storage/tape-storage/business-clas...
Here's what the inside of an old 2U library looks like:
* https://www.blocksandfiles.com/tape/2025/07/29/why-lto-10-fe...
> The tape drives use a strong error correction algorithm that makes data recovery possible when lost data is within one track. Also, the head assembly includes separate read heads positioned just "behind" each write head, to verify the data just written without making a separate verification pass. This allows the drive to write a second copy of any data that fails the verify without the help of the host system.
* https://en.wikipedia.org/wiki/Linear_Tape-Open#Logical_struc...
But when you try to read it back with a different, correctly aligned machine, it is unreadable.
Been a long time since I've dealt with audio gear, but I'm pretty sure they also had separate playback/record heads in the tape path as well.
Data was only 3-4 years old at most, but there was never a recovery failure - at least one that was visible during the restore process.
Oh - important data-point - we never re-used tapes. It was one-and-done-and-off-to-iron-mountain. (That eventually would have changed - but we were only 4 years into our tape-rotation when I left)
Anecdote of 1, but it was over probably 10+ restores of data. Not certain how many tapes were actually read - we would just jam them in 24 at a time and let the index figure out which ones to restore from.
The caution to validate backups by doing constant restore + validation is a good one though. Nobody cares about backups, it's the restores they want.
* Don't rely on vendor-specific compression and/or encryption which may vary between different tape drives.
* If you do use encryption, try to ensure you have a way to recover from corruption in the middle of the bitstream (see parent's point on two copies, or CTR/GCM mode, or FEC/erasure coding).
* Index the contents (file names, sizes, at least), or use an archive format that puts the index at the start of the tape (note: tar does not).
I think the issue with tape at scale is that there is a lot of mechanical stuff that needs to be overcome. You will need a custom robot to allow for the management of hundreds of thousands of slots. I think also you'll need a custom tool for identifying the individual tapes (LTO does have a few ways of ID-ing the individual tapes)
Then you'll need make sure that your data stream don't mix. that seems easy, but you are optimising for filling tapes, and minimum retrievals per object. One advantage is that ibjecst should be encrypted before they even enter the tape storage system so the risk oulling the wrong file becomes one of correctly decrpyting, rather than fine management of file paths.
In addition the need for cloud providers to comply with userdata erasure means they have to frequently test their ability to read and write their backups - which should increase your confidence in their correctness. Yes problems can and do still happen, but IME far less often than the more traditional tape setups GP describes.