The ZMC and Amanda use labels to identify backup media. Labels ensure that the correct backup media is loaded for the backup set, and that no backup is overwritten before the planned cycle is complete. When ZMC finds a labeled piece of media (or media that appears to already contain backup data), it will not write a backup to that tape. When the ZMC finds unlabeled media, it:
When the ZMC finds media that belongs to some other backup set (or media that has been written to by another application), it is not used, and an error message is returned. You can manually "force" labeling of such media by setting the Overwrite Media Option described below to Yes.
ZMC will not overwrite an existing backup tape until it has first written a number of fresh tapes equal to the number of tapes in the planned Backup How section.
The Backup->Media page includes two tabs: Label (which allows you to label backup media) and Media (which shows the catalog of media that Amanda knows about and its status.
Note: If you are backing up using virtual tapes (vtapes) or Amazon S3 storage, there is no media to manage, so the Backup Where page will not show the Manage Media link.
Fill out the information on the Tape Labeling panel, then click Label Tapes when you are done.
When the Tape Label button has not been clicked, the panel has no hyper link in its upper right hand corner. While the process is running, users can cancel it by pressing the hyper link in the upper right hand corner of the panel. When the Tape labeling process is completed successfully, then the image shows a success message. When the Tape Labeling process fails, then the panel displays a failure message.
If the default value is changed to Yes (to overwriting tapes), then ZMC will create labels on pre-written tapes. When the Overwrite Media option is set to Yes, ZMC will apply a fresh label to a tape as if it is a new tape.
Amanda Enterprise edition supports tape changers with bar code readers. To use bar codes in a backup set, it is necessary to initialize the bar code database. Initialization steps must be performed using command line tools. Initialization is required only if tapes were not labeled with bar code enabled or not managed using Zmanda Management Console.
1. Remove the existing bar code database file (if any) on the Amanda server.
$ /etc/amanda/<backup set name>/changer-barcodes
2. Create bar code database file for the backup set on the Amanda server. This process can take a lot of time. The process involves loading of all tapes in the tape changer and bar codes are read.
$ /usr/sbin/amtape <backup set name> update
This operation can be performed only after saving a Backup Where configuration for the backup set, and must be performed as the amandabackup user on the Amanda server.
Media Management table can be used to view the list of media volumes (tapes) that are being used for the backup set. It lists all the tapes that have been labeled by Amanda, tapes that have been used for backups and when. Tape bar codes are also displayed if the tape changer that supports bar code is being used. The list of media volumes that were used in the last backup run are highlighted. Figure 6 shows that tapes labeled DailyTest-4 and DailyTest-029 were used in the last backup run.
The media volumes that are likely to be used in the next backup run are marked in the next tape column. These tapes should be made available in tape changer or the tape drive before the next backup run. Figure 7 shows an example of three tapes that are likely to be used in the next backup run.
Media Management table allows users to take a media volume out of backup rotation. This procedure will be used if the media volume has to be sent offsite. Uncheck the box in column Reuse for the media volume and click on Update button.
Users can also delete the tape from the Amanda index. The care should be taken before doing this operation. This operation should be done taking media volume out of backup rotation. This procedure is used when a media volume (tape) goes bad. Uncheck the box in column Delete for the media volume and click on Update button.
To refresh the media management table, use the browser refresh button.
ZMC returns detailed error messages when it encounters situations such as: