error whith amlabel and chg-rait

2013-06-27 Thread Dennis Benndorf
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

Re: error whith amlabel and chg-rait

2013-06-27 Thread Jean-Louis Martineau
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,

Re: error whith amlabel and chg-rait

2013-06-27 Thread Dennis Benndorf
grep meta-autolabel /etc/amanda/mirror/amanda.conf show nothing. -- Regards Dennis Benndorf Dennis, Do you have 'meta-autolabel' set in your amanda.conf? unset it. Jean-Louis On 06/27/2013 08:33 AM, Dennis Benndorf wrote: Ok I understand but why does it tell me those messages:

Re: error whith amlabel and chg-rait

2013-06-27 Thread Jean-Louis Martineau
Dennis, Try the attached patch. You can patch the installed Amanda/Changer/rait.pm file. Jean-Louis On 06/27/2013 08:41 AM, Dennis Benndorf wrote: grep meta-autolabel /etc/amanda/mirror/amanda.conf show nothing. -- Regards Dennis Benndorf Am Donnerstag, 27. Juni 2013, 08:39:11 schrieb

Re: error whith amlabel and chg-rait

2013-06-27 Thread Dennis Benndorf
Hi, amanda@dl380-54:~$ amlabel -f mirror slot '{225,225}' Reading label... Found Amanda volume 'D00225'. Newly-generated label '' does not match labelstr '^D0[0-9]*$' Dont know why this happend, because labelstr is set to ^D0[0-9]*$ and autolabel to $b any . but if I set it by hand it works as

Re: error whith amlabel and chg-rait

2013-06-27 Thread Jean-Louis Martineau
Dennis, Try the attached patch. The barcode for the rait is '{D00225,D00225}', You must adjust the labelstr. Jean-Louis On 06/27/2013 10:30 AM, Dennis Benndorf wrote: Hi, amanda@dl380-54:~$ amlabel -f mirror slot '{225,225}' Reading label... Found Amanda volume 'D00225'.