chg-rait and chg-robot do not use meta label, don't try to set it.
Only chg-disk use meta-label.

The barcode is the combination of all barcodes, as the inventory told you, the barcode is '{D00225,D00225}'
    amlabel -f --barcode '{D00225,D00225}' mirror
The same is true for the slot number, you could do:
    amlabel -f mirror slot '{225,225}'

It is not required to put the same barcode on both tape, it is generally a bad idea to do so, a barcode must be unique.

Jean-Louis

On 06/27/2013 07:37 AM, Dennis Benndorf wrote:

Hello,

I am trying to set up a mirror of too robots using chg-rait. Tapes in both robots have the same barcodes. Now I want to label them with the name of their barcodes, but the following happens:

amanda@dl380-54:~$ amlabel -f --meta META225 --barcode D00225 mirror

Reading label...

No volume with barcode 'D00225' available

amanda@dl380-54:~$ amtape mirror inventory |grep 225

slot {225,225}: label D00225 barcode {D00225,D00225} (in drive {1,1})

amanda@dl380-54:~$ amlabel -f --meta META225 --barcode D00225 mirror

Reading label...

No volume with barcode 'D00225' available

amanda@dl380-54:~$ amlabel -f --barcode D00225 mirror

Reading label...

No volume with barcode 'D00225' available

amanda@dl380-54:~$ amlabel -f mirror^C

amanda@dl380-54:~$ man amanda.conf

amanda@dl380-54:~$ amlabel -f -o meta-autolabel=META%%% --barcode D00225 mirror

Reading label...

No volume with barcode 'D00225' available

amanda@dl380-54:~$ amlabel -f -o meta-autolabel=META%%% mirror slot 225

Reading label...

Found Amanda volume 'D00225'.

amlabel: Can't call method "make_new_meta_label" on an undefined value at /usr/local/share/perl/5.14.2/Amanda/Changer.pm line 1632.

What I really want to do is to force both sites to label ( one site has a different label as you can see )

amanda@dl380-54:~$ amlabel -f -o meta-autolabel=META%%% mirror slot 457

Reading label...

Error reading volume label: Inconsistent volume labels/datestamps: Got D00457/20130408180904 on tape:/dev/L700/MRO-LW-1 against D10068/20130508071050 on tape:/dev/L700/OPELHAUS-LW-1.

amlabel: Can't call method "make_new_meta_label" on an undefined value at /usr/local/share/perl/5.14.2/Amanda/Changer.pm line 1632.

--

Regards

Dennis


Reply via email to