I noticed that my tape backups were failing lately when backing up the /home partition on triumph. To be certain of the problem, I ran a backup of just that disk:
# su amanda -c “amdump CCH1 triumph.hapgoods.com /home”
The results confirmed that I am running out of tape when backing up this (large) disk:
*** THE DUMPS DID NOT FINISH PROPERLY!
These dumps were to tape CCH103.
*** A TAPE ERROR OCCURRED: [[writing file: No space left on device]].
Some dumps may have been left in the holding disk.
Run amflush to flush them to tape.
The next tape Amanda expects to use is: CCH106.
FAILURE AND STRANGE DUMP SUMMARY:
triumph.ha /home lev 0 FAILED [”data write: Connection reset by peer”]
triumph.ha /home lev 0 FAILED [out of tape]
The filesystem is 33168876 blocks long -or about 32GB. Way too big to fit in the holding space, so the backup goes directly to tape and I don’t even have a disk image to fall back on. But here is the funny part -the file system may be close to the 35GB native capacity of the tape drive*, but it is nowhere near the 70GB compressed capacity of the drive. So why is the drive not compressing?
*Remember that tape drive capacity is expressed in marketing GBs (mGB), or billions of bytes. 1GB = 1.0737mGB. So any normal size has to be increased by about 7.4% to get the marketing capacity. In this case, 32GB ~= 35.6mGB.
Well, it turns out that the tape drives had not been properly initialized by stinit. I have written more on this subject under stinit. But unfortunately, I think the tapes will now always be written in uncompressed format because the header is uncompressed.
References:
http://www.mail-archive.com/amanda-users@amanda.org/msg25045.html