On 21 Oct 2007 at 19:49, S. Kremer wrote: > Hi Dan. > > I made the mistake to label manually each tape in the autochanger by > the command label media... > > Now, I know that i better used the console command label barcodes. But > now after I labeled the tapes manually I get the error messages "3920 > Cannot label Volume because it is already labeled: TestVolume1" if I > run the command label barcodes. > > And I can not reset the label so that I can use the label barcode > command without any error messages. > > > mtx -f /dev/sg3 status > Storage Changer /dev/sg3:1 Drives, 8 Slots ( 0 Import/Export ) > Data Transfer Element 0:Full (Unknown Storage Element Loaded) > Storage Element 1:Full :VolumeTag=A0ECXL > Storage Element 2:Full :VolumeTag=A0ECXR > Storage Element 3:Full :VolumeTag=A0ECXQ > Storage Element 4:Full :VolumeTag=A0ECXP > Storage Element 5:Full :VolumeTag=A0ECXN > Storage Element 6:Full :VolumeTag=A0ECXM > Storage Element 7:Empty > Storage Element 8:Full
To relabel an already labelled tape, you can use the relabel command. But I think that is not what you want. You want to erase what is on the tape, and start again. You can "erase" the tape by doing this: mt -f /dev/YOURTAPEDEVICE rewind mt -f /dev/YOURTAPEDEVICE weof mt -f /dev/YOURTAPEDEVICE rewind Do this for each tape. Then use the run labels command. NOTE: the Catalog MAY contain the Volumes related to the labels on the tapes (e.g. TestVolume1). If so, you can remove those Volumes from the database with the 'delete volume' command. -- Dan Langille - http://www.langille.org/ Available for hire: http://www.freebsddiary.org/dan_langille.php ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users