Summary: If a backup fails and nothing is written to tape amanda will skip this tape and mark it used, thereby wasting this tape
Example of failed backup and unused tape:
2006-06-01 01:00:02 ppragin.zmanda.com /home/vmware/fc5 1 DailyTape-10 0 -- FAILED (chunker) [cannot read header: got 0 instead of 32768] 2006-06-01 01:00:02 ppragin.zmanda.com /home/vmware/fc5 1 DailyTape-10 0 -- FAILED (chunker) [cannot read header: got 0 instead of 32768] 2006-06-02 01:00:02 ppragin.zmanda.com /home/vmware/fc5 0 DailyTape-01
Solution: To salvage this tape and let amanda use this tape in later backups:
1.amrmtape $CONFIG $TAPEYOUWANTTOREUSE
2.amlabel $CONFIG $TAPEYOUWANTTOREUSE slot $slotnumber
-bash-3.00$ amrmtape tape DailyTape-10 amrmtape: remove label DailyTape-10. amrmtape: preserving original database in curinfo.orig.18318 (exported). -bash-3.00$ amlabel tape DailyTape-10 slot 10 labeling tape in slot 10 (/dev/nst0): rewinding, reading label DailyTape-10 rewinding, writing label DailyTape-10, checking label, done.