Hi John, I suggest checking first if you are able to read the tape volumes labels outside of Bacula.
on Linux shell type the following command : mtx -f "TL Changer Linux Device" status Please check the following example mtx -f /dev/changer3 status Storage Changer /dev/changer3:1 Drives, 46 Slots ( 16 Import/Export ) Data Transfer Element 0:Full (Storage Element 3 Loaded):VolumeTag = A04592 Storage Element 1:Full :VolumeTag=A04590 Storage Element 2:Full :VolumeTag=A04591 Storage Element 3:Empty:VolumeTag= Storage Element 4:Full :VolumeTag=A04593 Storage Element 5:Full :VolumeTag=A04594 Storage Element 6:Full :VolumeTag=A04595 Storage Element 7:Full :VolumeTag=A04596 Storage Element 8:Full :VolumeTag=A04597 Storage Element 9:Full :VolumeTag=A04598 Storage Element 10:Full :VolumeTag=A04599 Storage Element 11:Empty:VolumeTag= Storage Element 12:Empty:VolumeTag= Storage Element 13:Empty:VolumeTag= Storage Element 14:Empty:VolumeTag= Storage Element 15:Empty:VolumeTag= Storage Element 16:Empty:VolumeTag= If you have in the above list something like "Storage Element 10:Full :VolumeTag= ", you may have to check your hardware tape library. Possibly you may need to issue a reset on TL fiber channel board or may have an hardware issue. Best Regards Pedro Martin Simmons <mar...@lispworks.com> escreveu no dia quinta, 23/01/2020 à(s) 13:46: > If a labeled volume is missing from the catalog then either it was never > added > or it was deleted. > > Do you have any logs showing those volumes being labeled? That might give > some clue. Was it done using the "label" command or by automatic labeling? > > Also, have you ever used the "delete volume" command? > > __Martin > > > >>>>> On Thu, 23 Jan 2020 00:14:57 +0000, John H Nyhuis said: > > > > The Bacula "update slots" command fails to update the catalog for a > > specific volume. The volume is labeled correctly, and bacula can read > > the label using "update slots scan" > > > > To resolve, I had to manually add the volume to the catalog using the > > "add" command. I am still at a lose to understand why "label" failed > > silently for a random number of volumes. > > > > Can anyone give me some pointers on figuring out why label keeps > > silently failing? > > > > *update slots > > Automatically selected Catalog: GACCatalog > > Using Catalog "GACCatalog" > > Automatically selected Storage: Scalar-i40 > > Connecting to Storage daemon Scalar-i40 at 127.0.0.1:9103 ... > > Enter autochanger drive[0]: > > Connecting to Storage daemon Scalar-i40 at 127.0.0.1:9103 ... > > 3306 Issuing autochanger "slots" command. > > Device "AutoChanger-Scalar-i40" has 38 slots. > > Connecting to Storage daemon Scalar-i40 at 127.0.0.1:9103 ... > > 3306 Issuing autochanger "list" command. > > Catalog record for Volume "000001" is up to date. > > Catalog record for Volume "000002" is up to date. > > Catalog record for Volume "000003" is up to date. > > Catalog record for Volume "000007" is up to date. > > Volume "000005" not found in catalog. Slot=5 InChanger set to zero. > > Catalog record for Volume "000006" is up to date. > > Catalog record for Volume "000008" is up to date. > > Catalog record for Volume "000009" is up to date. > > Catalog record for Volume "000010" updated to reference slot 10. > > Catalog record for Volume "000011" is up to date. > > Catalog record for Volume "000012" is up to date. > > Catalog record for Volume "000013" is up to date. > > Catalog record for Volume "000014" is up to date. > > Catalog record for Volume "000015" is up to date. > > Catalog record for Volume "000016" is up to date. > > Catalog record for Volume "000017" is up to date. > > Catalog record for Volume "000018" is up to date. > > Volume "000019" not found in catalog. Slot=19 InChanger set to zero. > > Volume "000020" not found in catalog. Slot=20 InChanger set to zero. > > *update slot=5 scan > > Automatically selected Storage: Scalar-i40 > > Enter autochanger drive[0]: > > Connecting to Storage daemon Scalar-i40 at 127.0.0.1:9103 ... > > 3306 Issuing autochanger "slots" command. > > Device "AutoChanger-Scalar-i40" has 38 slots. > > Connecting to Storage daemon Scalar-i40 at 127.0.0.1:9103 ... > > 3306 Issuing autochanger "list" command. > > Connecting to Storage daemon Scalar-i40 at 127.0.0.1:9103 ... > > 3304 Issuing autochanger "load slot 5, drive 0" command. > > 3305 Autochanger "load slot 5, drive 0", status is OK. > > 3001 Volume=000005 Slot=5 > > Volume "000005" not found in catalog. Slot=5 InChanger set to zero. > > * > > > > So the volume is present in the changer, Bacula can read the volume, > > it's labeled correctly, but Bacula does not add it to the catalog. > > Finally, I had to force the issue using the add command: > > > > *add pool=lto6-pool > > You probably don't want to be using this command since it > > creates database records without labeling the Volumes. > > You probably want to use the "label" command. > > Automatically selected Storage: Scalar-i40 > > Enter number of Volumes to create. 0=>fixed name. Max=1000: 0 > > Enter Volume name: 000005 > > Enter slot (0 for none): 5 > > InChanger? yes/no: yes > > 1 Volumes created in pool lto6-pool > > *update slot=000005 > > Automatically selected Storage: Scalar-i40 > > Enter autochanger drive[0]: > > Connecting to Storage daemon Scalar-i40 at 127.0.0.1:9103 ... > > 3306 Issuing autochanger "slots" command. > > Device "AutoChanger-Scalar-i40" has 38 slots. > > Connecting to Storage daemon Scalar-i40 at 127.0.0.1:9103 ... > > 3306 Issuing autochanger "list" command. > > Catalog record for Volume "000005" is up to date. > > > > Any ideas as to why bacula looses references to inchanger volumes, and > > then refuses to update them with update slots? As you can see, I will > > need to repeat the process for scratch volumes 000019 and 000020 as well. > > > > > > Could it be a misalignment of the barcode reader in the changer? > > > > -- > > Thanks, > > > > John H. Nyhuis > > Desk: (206)-685-8334 > > jnyh...@uw.edu > > Box 359461, 15th floor, 106 > > > > _______________________________________________ > > Bacula-users mailing list > > Bacula-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/bacula-users > > > > > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > -- -- Cumprimentos, Pedro Oliveira Rua Antonio Botto | Nº 23 | 1º A | 2950-565 Quinta do Anjo tel +351 218 440 100 | mobile +351 916 111 464 website <http://www.pedroliveira.pt/> | <http://www.facebook.com/oliveiraped> <http://www.linkedin.com/in/oliveiraped> *Aviso de Confidencialidade:* Esta mensagem é exclusivamente destinada ao seu destinatário, podendo conter informação CONFIDENCIAL, cuja divulgação está expressamente vedada nos termos da lei. Caso tenha recepcionado indevidamente esta mensagem, solicitamos-lhe que nos comunique esse mesmo facto por esta via ou para o telefone +351 916111464 devendo apagar o seu conteúdo de imediato. This message is intended exclusively for its addressee. It may contain CONFIDENTIAL information protected by law. If this message has been received by error, please notify us via e-mail or by telephone +351916111464 and delete it immediately.
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users