Re: still problems with manual tape changer using tapespan
On 02/20/2013 07:07 AM, Jean-Louis Martineau wrote: On 02/20/2013 06:59 AM, Karsten Fuhrmann wrote: Hello Jean-Louis, should i apply the path on trunk or release 3.3.3? The patch apply to trunk and the 3-3 branch, I haven't tested if apply cleanly on the release 3.3.3 but I think it should. Karsten, Let me know if the patch works for you. Jean-Louis
Re: still problems with manual tape changer using tapespan
On 02/20/2013 06:59 AM, Karsten Fuhrmann wrote: Hello Jean-Louis, should i apply the path on trunk or release 3.3.3? The patch apply to trunk and the 3-3 branch, I haven't tested if apply cleanly on the release 3.3.3 but I think it should. Jean-Louis
Re: still problems with manual tape changer using tapespan
Hello Jean-Louis, should i apply the path on trunk or release 3.3.3? On 19.02.2013, at 20:58, Jean-Louis Martineau wrote: > Hello Karsten, > > Can you try the attached patch? > > > Jean-Louis > > > On 02/18/2013 06:57 AM, Karsten Fuhrmann wrote: >> I still can't get tapespan to work, with my single tape drive setup. >> I added interactivity and tapescan to amanda.conf. And updated amanda to >> version 3.3.3 >> >> Now even when i load the right tape into the tapedrive, when i run amcheck, >> i got the following message by email: >> >> >> No acceptable volumes found >> >> Insert volume labeled 'cf-daily-lto8' in chg-single:tape:/dev/nsa0 >> or write the name of a new changer in '/tmp/email_input' >> or write 'abort' in the file to abort the scan. >> >> if i write 'abort' into /tmp/email_input it aborts. but if i just touch >> /tmp/email_input to tell amanda that the proper tape is inserted, i get the >> above email again. What is going on here? >> My shell session looks like this: >> >> % sudo -u amanda amcheck cf-daily-lto >> Amanda Tape Server Host Check >> - >> WARNING: holding disk /mnt/amanda-holding: only 4 GB free, using nothing >> WARNING: Not enough free space specified in amanda.conf >> slot 0: volume 'cf-daily-lto8' >> slot 0: volume 'cf-daily-lto8' >> >> The second 'slot 0: volume 'cf-daily-lto8' comes after i touched the >> /tmp/email_input file. >> >> Here are the relevant parts of my amanda.conf: >> >> define taperscan le_scan { >>comment "bla" >>plugin "lexical" >> } >> >> define interactivity email { >> comment "interactivity email" >> plugin "email" >> property "mailto" "administrat...@cartoon-film.de" >> property "resend_delay" "0" >> property "check-file" "/tmp/email_input" >> property "check-file-delay" "10" >> } >> interactivity "email" >> taperscan "le_scan" >> >> tpchanger "chg-single:tape:/dev/nsa0" >> >> >> Please help me, this thing is killing me. >> >> >> On 14.02.2013, at 18:13, Karsten Fuhrmann wrote: >> >>> Hi, now i added this: >>> >>> define taperscan oldest { >>> comment "bla" >>> plugin "oldest" >>> } >>> taperscan "oldest" >>> >>> into my amanda.conf. Now i got an email to change the tape. But then i am >>> stuck, amanda does not notice the newly inserted tape, and also does not >>> react on the file /tmp/email_input i created with touch. >>> It just waits forever. What am i missing? >>> >>> >>> On 14.02.2013, at 16:53, Jean-Louis Martineau wrote: >>> On 02/14/2013 10:00 AM, Karsten Fuhrmann wrote: > Hello, > i tried that but does not work. I dont get an email to change the tape, > instead amanda quits with: > > FAILURE DUMP SUMMARY: > datastore /tank/koh/user/./k-o lev 0 partial taper: No acceptable > volumes found > > i added the following in my amanda.conf: > > define interactivity email { > comment "interactivity email" > plugin "email" > property "mailto" "administrat...@cartoon-film.de" > property "resend_delay" "0" > property "check-file" "/tmp/email_input" > property "check-file-delay" "10" > } > interactivity "email" > > The default taperscan do not use the interactivity module, you must use the 'oldest' or 'lexical' taperscan. see: man amanda-taperscan Jean-Louis >>> Greetings, >>> Karsten Fuhrmann >>> System Administrator >>> Rothkirch Cartoon-Film GmbH >>> Hasenheide. 54 >>> D-10967 Berlin >>> phone +49 30 698084-109 >>> fax +49 30 698084-29 >>> mobile +49 176 49118462 >>> skype: parceval3000 >>> AIM: in...@mac.com >>> Jabber: parce...@jabber.org >>> >>> >> Greetings, >> Karsten Fuhrmann >> > > Greetings, Karsten Fuhrmann System Administrator Rothkirch Cartoon-Film GmbH Hasenheide. 54 D-10967 Berlin phone +49 30 698084-109 fax +49 30 698084-29 mobile +49 176 49118462 skype: parceval3000 AIM: in...@mac.com Jabber: parce...@jabber.org
Re: still problems with manual tape changer using tapespan
Hello Karsten, Can you try the attached patch? Jean-Louis On 02/18/2013 06:57 AM, Karsten Fuhrmann wrote: I still can't get tapespan to work, with my single tape drive setup. I added interactivity and tapescan to amanda.conf. And updated amanda to version 3.3.3 Now even when i load the right tape into the tapedrive, when i run amcheck, i got the following message by email: No acceptable volumes found Insert volume labeled 'cf-daily-lto8' in chg-single:tape:/dev/nsa0 or write the name of a new changer in '/tmp/email_input' or write 'abort' in the file to abort the scan. if i write 'abort' into /tmp/email_input it aborts. but if i just touch /tmp/email_input to tell amanda that the proper tape is inserted, i get the above email again. What is going on here? My shell session looks like this: % sudo -u amanda amcheck cf-daily-lto Amanda Tape Server Host Check - WARNING: holding disk /mnt/amanda-holding: only 4 GB free, using nothing WARNING: Not enough free space specified in amanda.conf slot 0: volume 'cf-daily-lto8' slot 0: volume 'cf-daily-lto8' The second 'slot 0: volume 'cf-daily-lto8' comes after i touched the /tmp/email_input file. Here are the relevant parts of my amanda.conf: define taperscan le_scan { comment "bla" plugin "lexical" } define interactivity email { comment "interactivity email" plugin "email" property "mailto" "administrat...@cartoon-film.de" property "resend_delay" "0" property "check-file" "/tmp/email_input" property "check-file-delay" "10" } interactivity "email" taperscan "le_scan" tpchanger "chg-single:tape:/dev/nsa0" Please help me, this thing is killing me. On 14.02.2013, at 18:13, Karsten Fuhrmann wrote: Hi, now i added this: define taperscan oldest { comment "bla" plugin "oldest" } taperscan "oldest" into my amanda.conf. Now i got an email to change the tape. But then i am stuck, amanda does not notice the newly inserted tape, and also does not react on the file /tmp/email_input i created with touch. It just waits forever. What am i missing? On 14.02.2013, at 16:53, Jean-Louis Martineau wrote: On 02/14/2013 10:00 AM, Karsten Fuhrmann wrote: Hello, i tried that but does not work. I dont get an email to change the tape, instead amanda quits with: FAILURE DUMP SUMMARY: datastore /tank/koh/user/./k-o lev 0 partial taper: No acceptable volumes found i added the following in my amanda.conf: define interactivity email { comment "interactivity email" plugin "email" property "mailto" "administrat...@cartoon-film.de" property "resend_delay" "0" property "check-file" "/tmp/email_input" property "check-file-delay" "10" } interactivity "email" The default taperscan do not use the interactivity module, you must use the 'oldest' or 'lexical' taperscan. see: man amanda-taperscan Jean-Louis Greetings, Karsten Fuhrmann System Administrator Rothkirch Cartoon-Film GmbH Hasenheide. 54 D-10967 Berlin phone +49 30 698084-109 fax +49 30 698084-29 mobile +49 176 49118462 skype: parceval3000 AIM: in...@mac.com Jabber: parce...@jabber.org Greetings, Karsten Fuhrmann diff --git a/perl/Amanda/Changer/single.pm b/perl/Amanda/Changer/single.pm index 8417d02..2e51062 100644 --- a/perl/Amanda/Changer/single.pm +++ b/perl/Amanda/Changer/single.pm @@ -66,6 +66,11 @@ sub new { config => $config, device_name => $device_name, reserved => 0, + state => undef, + device_status => undef, + f_type => undef, + label => undef, + 'scan-require-update' => 1, }; bless ($self, $class); @@ -82,9 +87,18 @@ sub load { confess "no res_cb supplied" unless (exists $params{'res_cb'}); if ($self->{'reserved'}) { - return $self->make_error("failed", $params{'res_cb'}, - reason => "volinuse", - message => "'$self->{device_name}' is already reserved"); + if (($self->{'label'} and $params{'label'} and + $self->{'label'} eq $params{'label'}) or + ($self->{'slot'} and $params{'slot'} and + $self->{'slot'} eq $params{'slot'})) { + return $self->make_error("failed", $params{'res_cb'}, + reason => "volinuse", + message => "'$self->{device_name}' is already reserved"); + } else { + return $self->make_error("failed", $params{'res_cb'}, + reason => "driveinuse", + message => "'$self->{device_name}' is already reserved"); + } } if (keys %{$params{'except_slots'}} > 0) { @@ -94,6 +108,10 @@ sub load { } my $device = Amanda::Device->new($self->{'device_name'}); +$self->{'state'} = Amanda::Changer::SLOT_FULL; +$self->{'device_status'} = $device->status(); +$self->{'f_type'} = undef; +$self->{'label'} = undef; if ($device->status() != $DEVICE_STATUS_SUCCESS) { return $self->make_error("fatal", $params{'res_cb'}, message => "error opening device '$self->{device_name}': " . $device->error_or_status()); @@ -109,6 +127,14 @@ sub load { my $res = Amanda::Changer::single::Reservation->new($self, $device); $device->read_
Re: still problems with manual tape changer using tapespan
Karsten, Sorry to not replying sooner. I found a bug and i'm working on a fix, it should be ready this week. Jean-Louis On 02/18/2013 06:57 AM, Karsten Fuhrmann wrote: I still can't get tapespan to work, with my single tape drive setup. I added interactivity and tapescan to amanda.conf. And updated amanda to version 3.3.3 Now even when i load the right tape into the tapedrive, when i run amcheck, i got the following message by email: No acceptable volumes found Insert volume labeled 'cf-daily-lto8' in chg-single:tape:/dev/nsa0 or write the name of a new changer in '/tmp/email_input' or write 'abort' in the file to abort the scan. if i write 'abort' into /tmp/email_input it aborts. but if i just touch /tmp/email_input to tell amanda that the proper tape is inserted, i get the above email again. What is going on here? My shell session looks like this: % sudo -u amanda amcheck cf-daily-lto Amanda Tape Server Host Check - WARNING: holding disk /mnt/amanda-holding: only 4 GB free, using nothing WARNING: Not enough free space specified in amanda.conf slot 0: volume 'cf-daily-lto8' slot 0: volume 'cf-daily-lto8' The second 'slot 0: volume 'cf-daily-lto8' comes after i touched the /tmp/email_input file. Here are the relevant parts of my amanda.conf: define taperscan le_scan { comment "bla" plugin "lexical" } define interactivity email { comment "interactivity email" plugin "email" property "mailto" "administrat...@cartoon-film.de" property "resend_delay" "0" property "check-file" "/tmp/email_input" property "check-file-delay" "10" } interactivity "email" taperscan "le_scan" tpchanger "chg-single:tape:/dev/nsa0" Please help me, this thing is killing me. On 14.02.2013, at 18:13, Karsten Fuhrmann wrote: Hi, now i added this: define taperscan oldest { comment "bla" plugin "oldest" } taperscan "oldest" into my amanda.conf. Now i got an email to change the tape. But then i am stuck, amanda does not notice the newly inserted tape, and also does not react on the file /tmp/email_input i created with touch. It just waits forever. What am i missing? On 14.02.2013, at 16:53, Jean-Louis Martineau wrote: On 02/14/2013 10:00 AM, Karsten Fuhrmann wrote: Hello, i tried that but does not work. I dont get an email to change the tape, instead amanda quits with: FAILURE DUMP SUMMARY: datastore /tank/koh/user/./k-o lev 0 partial taper: No acceptable volumes found i added the following in my amanda.conf: define interactivity email { comment "interactivity email" plugin "email" property "mailto" "administrat...@cartoon-film.de" property "resend_delay" "0" property "check-file" "/tmp/email_input" property "check-file-delay" "10" } interactivity "email" The default taperscan do not use the interactivity module, you must use the 'oldest' or 'lexical' taperscan. see: man amanda-taperscan Jean-Louis Greetings, Karsten Fuhrmann System Administrator Rothkirch Cartoon-Film GmbH Hasenheide. 54 D-10967 Berlin phone +49 30 698084-109 fax +49 30 698084-29 mobile +49 176 49118462 skype: parceval3000 AIM: in...@mac.com Jabber: parce...@jabber.org Greetings, Karsten Fuhrmann
still problems with manual tape changer using tapespan
I still can't get tapespan to work, with my single tape drive setup. I added interactivity and tapescan to amanda.conf. And updated amanda to version 3.3.3 Now even when i load the right tape into the tapedrive, when i run amcheck, i got the following message by email: No acceptable volumes found Insert volume labeled 'cf-daily-lto8' in chg-single:tape:/dev/nsa0 or write the name of a new changer in '/tmp/email_input' or write 'abort' in the file to abort the scan. if i write 'abort' into /tmp/email_input it aborts. but if i just touch /tmp/email_input to tell amanda that the proper tape is inserted, i get the above email again. What is going on here? My shell session looks like this: % sudo -u amanda amcheck cf-daily-lto Amanda Tape Server Host Check - WARNING: holding disk /mnt/amanda-holding: only 4 GB free, using nothing WARNING: Not enough free space specified in amanda.conf slot 0: volume 'cf-daily-lto8' slot 0: volume 'cf-daily-lto8' The second 'slot 0: volume 'cf-daily-lto8' comes after i touched the /tmp/email_input file. Here are the relevant parts of my amanda.conf: define taperscan le_scan { comment "bla" plugin "lexical" } define interactivity email { comment "interactivity email" plugin "email" property "mailto" "administrat...@cartoon-film.de" property "resend_delay" "0" property "check-file" "/tmp/email_input" property "check-file-delay" "10" } interactivity "email" taperscan "le_scan" tpchanger "chg-single:tape:/dev/nsa0" Please help me, this thing is killing me. On 14.02.2013, at 18:13, Karsten Fuhrmann wrote: > Hi, now i added this: > > define taperscan oldest { > comment "bla" > plugin "oldest" > } > taperscan "oldest" > > into my amanda.conf. Now i got an email to change the tape. But then i am > stuck, amanda does not notice the newly inserted tape, and also does not > react on the file /tmp/email_input i created with touch. > It just waits forever. What am i missing? > > > On 14.02.2013, at 16:53, Jean-Louis Martineau wrote: > >> On 02/14/2013 10:00 AM, Karsten Fuhrmann wrote: >>> Hello, >>> i tried that but does not work. I dont get an email to change the tape, >>> instead amanda quits with: >>> >>> FAILURE DUMP SUMMARY: >>> datastore /tank/koh/user/./k-o lev 0 partial taper: No acceptable volumes >>> found >>> >>> i added the following in my amanda.conf: >>> >>> define interactivity email { >>> comment "interactivity email" >>> plugin "email" >>> property "mailto" "administrat...@cartoon-film.de" >>> property "resend_delay" "0" >>> property "check-file" "/tmp/email_input" >>> property "check-file-delay" "10" >>> } >>> interactivity "email" >>> >>> >> The default taperscan do not use the interactivity module, you must use the >> 'oldest' or 'lexical' taperscan. >> see: man amanda-taperscan >> >> Jean-Louis >> > > Greetings, > Karsten Fuhrmann > System Administrator > Rothkirch Cartoon-Film GmbH > Hasenheide. 54 > D-10967 Berlin > phone +49 30 698084-109 > fax +49 30 698084-29 > mobile +49 176 49118462 > skype: parceval3000 > AIM: in...@mac.com > Jabber: parce...@jabber.org > > Greetings, Karsten Fuhrmann