Amanda 2.4.2p2, on sparc Solaris 2.6.
This just started happening on an Amanda config that has been running
stably for months.
The config has a labelstr of:
labelstr "^ARCHIVE-[0-9][1-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9]$"
For some (random?) values of label, amlabel returns:
% sudo su - amanda -c "amlabel ARCHIVE ARCHIVE-10-14-2001"
amlabel: label ARCHIVE-10-14-2001 doesn't match labelstr
"^ARCHIVE-[0-9][1-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9]$"
% sudo su - amanda -c "amlabel ARCHIVE ARCHIVE-10-16-2001"
amlabel: label ARCHIVE-10-16-2001 doesn't match labelstr
"^ARCHIVE-[0-9][1-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9]$"
This has nothing to do with the tape itself, of course, it's just
amlabel checking it's command line args with:
labelstr = getconf_str(CNF_LABELSTR);
if(!match(labelstr, label))
error("label %s doesn't match labelstr \"%s\"", label, labelstr);
So it seems to be something down inside match() that's going awry.
Other (random?) values of label work just fine (and have been for months):
% sudo su - amanda -c "amlabel ARCHIVE ARCHIVE-07-04-2001"
rewinding, reading label ARCHIVE-09-30-2001
rewinding, writing label ARCHIVE-07-04-2001, checking label, done.
% sudo su - amanda -c "amlabel ARCHIVE ARCHIVE-12-34-5678"
rewinding, reading label ARCHIVE-07-04-2001
rewinding, writing label ARCHIVE-12-34-5678, checking label, done.
Changing labelstr to something less precise is a workaround:
labelstr "^ARCHIVE-.*"
% sudo su - amanda -c "amlabel ARCHIVE ARCHIVE-10-16-2001"
rewinding, reading label ARCHIVE-12-34-5678
rewinding, writing label ARCHIVE-10-17-2001, checking label, done.
I don't see anything in the mailing list archives. I'm ok with the
simpler labelstr for the moment, but it makes me a little nervous that
match() might fail on me w/o warning in the future.
Anybody ever seen anything similar?
--
Jay Lessert [EMAIL PROTECTED]
Accelerant Networks Inc. (voice)1.503.439.3461
Beaverton OR, USA (fax)1.503.466-9472