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'.

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 expected:

amanda@dl380-54:~$ amlabel -f mirror D00225 slot '{225,225}'

Reading label...

Found Amanda volume 'D00225'.

Writing label 'D00225'...

Checking label...

Success!

amanda@dl380-54:~$ cat /etc/amanda/mirror/tapelist

0 D00225 reuse BLOCKSIZE:32

--

Big thanks,

Dennis


Am Donnerstag, 27. Juni 2013, 10:10:09 schrieb Jean-Louis Martineau:

> Dennis,

>

> Try the attached patch.

> You can patch the installed Amanda/Changer/rait.pm file.

>

> Jean-Louis


diff --git a/perl/Amanda/Changer/rait.pm b/perl/Amanda/Changer/rait.pm
index d6ba1dd..2234a2e 100644
--- a/perl/Amanda/Changer/rait.pm
+++ b/perl/Amanda/Changer/rait.pm
@@ -687,6 +687,8 @@ sub new {
     $self->{'child_reservations'} = $child_reservations;
 
     $self->{'device'} = $rait_device;
+    my @barcodes = errmap { "" . $_->{'barcode'} } @$child_reservations;
+    $self->{'barcode'} = collapse_braced_alternates(\@barcodes);
 
     my @slot_names;
     @slot_names = errmap { "" . $_->{'this_slot'} } @$child_reservations;

Reply via email to