Hi,
I'm wondering if this is a known-problem?
We have two tape drives configured for taper-parallel-write, but
actually there is only tape produced daily.
I'm using amanda-backup_server-3.3.1.svn.4677-1.rhel6.x86_64 with a
patch from Jean-Luis (see below).
There was a protected tape (by mistake) inserted into the tape drive.
"amcheck -t Daily" did not warn, that the coming tape had been
write-protected, so we missed the nagios alarm.
Amanda backed up successfully and it reported, that the backup was to
tape Daily-24.
This has been repeated for a few days, when I spot it's re-using the
same tape.
Question 1: would it be useful for amcheck -t to do a protected tape
check too?
Question 2: Why amanda taper did not abort when it saw a protected tape?
Is it because the patch?
Any hints appreciated.
Thanks,
Attila
diff --git a/server-src/driver.c b/server-src/driver.c
index 5560171..d9bd315 100644
--- a/server-src/driver.c
+++ b/server-src/driver.c
@@ -1890,9 +1890,20 @@ handle_taper_result(
event_release(taper_ev_read);
taper_ev_read = NULL;
}
- need_degraded = 1;
- if (schedule_done && !degraded_mode) {
- start_degraded_mode(&runq);
+ {
+ int all_done = 1;
+ for(taper = tapetable;
+ taper < tapetable+conf_taper_parallel_write;
+ taper++) {
+ if (!(taper->state & TAPER_STATE_DONE))
+ all_done = 0;
+ }
+ if (all_done) {
+ need_degraded = 1;
+ if (schedule_done && !degraded_mode) {
+ start_degraded_mode(&runq);
+ }
+ }
}
start_some_dumps(&runq);
break;
--
Attila Bogár
Systems Administrator
Linguamatics - Cambridge, UK
http://www.linguamatics.com/