Hacker News new | ask | show | jobs
by adrian_b 25 days ago
I do not know how standard such a practice is, but I am old enough to have witnessed enough disasters caused by data lost due to carelessness, so I have no intention for something like that to happen to me.

Therefore with HDDs I have always written the same data on 2 HDDs, and this saved me a few times, when after several years of storage both HDDs contained a few corrupted sectors, but not in the same places.

With tapes, I also always write at least 2, but frequently even 3, because their low cost makes this affordable. With tapes, the greatest danger is that if a drive malfunctions mechanically while a tape cartridge is inserted, it might damage that tape.

Having at least 2 copies of each tape or HDD also allows their storage in different locations.

Like I have said, I always combine this redundancy of having duplicate storage media with intra-archive-file redundancy, so I typically add 10% redundancy to each compressed and encrypted archive, so that for any corruption that affects less than 10% of the file the content is still recoverable.

I am still using the older LTO-7. While I might upgrade to LTO-8 or even LTO-9, an upgrade to LTO-10 is unlikely, unless great price reductions will happen in the future, which I doubt.

So I am very concerned by the lack of a good archival solution that is affordable by ordinary people and by small businesses, not only by very rich companies.

Microsoft has demonstrated an ideal archival medium (in glass), but for now the cost of their laser system is too great for commercialization. That appears to be mostly a chicken and egg problem, the lasers and the other optical components are too expensive because they currently are produced only in very small quantities, but they cannot be incorporated into a high-volume application, because they are too expensive.

1 comments

> intra-archive-file redundancy

What software do you use for this?

I use on Linux the utilities "par2create" and "par2verify".

On Gentoo Linux, the name of the software package that provides them is "app-arch/par2cmdline".

"par2create" needs 2 parameters, the amount of redundancy to be added and the name of the input file (which should be a compressed then encrypted archive file).

It produces several additional files, with recovery information. My script creates then a directory, moves there all the files, including the original archive file, and then aggregates the directory with all its files into a single ".pax" archive file. The ".pax" file can then be stored on a couple of HDDs or of tape cartridges.

Before creating the initial archive file, I scan the directories to be archived and I gather all the metadata of the files (names, sizes, timestamps, content hashes), which I store in a database. The metadata can later be used to search for files, to find out from which archival device they should be restored, and also to detect duplicates (by using the content hashes) that may be omitted from later backups.

When retrieving such a file with redundancy, after extracting its component files the "par2verify" utility verifies the integrity and reconstructs corrupted data, if necessary.

For working with tape drives, I prefer to use a FreeBSD server, because the FreeBSD utilities for tape drives and in general for SAS/SCSI peripherals are more convenient and more complete than those of Linux (it is also possible to use a FreeBSD VM on a Linux computer, with PCIe pass-through for the SAS HBA card used to attach the tape drive).

It is inefficient to store small files on tapes, so I usually collect data to be archived on tapes until I reach an amount of about 50 GB, then I compress, encrypt, add redundancy, aggregate again into a single file and then save it into the tape cartridges.