On Tuesday 16 July 2002 06:13, Phil Launchbury wrote: >Hi, > >I have just set up amanda on my linux box here (Mandrake 8.2 with > a Sun DLT4700 autochanger/DLT attached & using the chg-zd-mtx). > >Everything appears to be working except that amdump/amflush can't > find the right tape! > >I have run amlabel to label all the tapes in the rack (1-6 anyway > cos 7 is a cleaning tape) and that worked fine. > >Here is the relevent part of the amanda.conf: > >dumpcycle 2 days # the number of days in the normal dump > cycle runspercycle 20 # the number of amdump runs in > dumpcycle days > >tapecycle 6 tapes # the number of tapes in rotation > >Amdump produces this report: > >*** A TAPE ERROR OCCURRED: [label Tape1 or new tape not found in > rack]. Some dumps may have been left in the holding disk. >Run amflush to flush them to tape. >The next 2 tapes Amanda expects to used are: Tape1, Tape2. > >Yet if you use the amtape show command you get this: > >[root: DailySet1]# amtape DailySet1 show >amtape: scanning all 6 slots in tape-changer rack: >slot 3: date X label Tape3 >slot 4: date X label Tape4 >slot 5: date X label Tape5 >slot 6: date X label Tape6 >slot 1: date X label Tape1 >slot 2: date X label Tape2 > >What's going on? Amanda is expecting Tape1 and amdump fails yet > amtape quite clearly shows the tape in the slot!
Didja change the tape label string specification to match something like "^Tape[0-9][0-9]? This is the "labelstr" line in amanda.conf, and mine, for "DailySet1" looks like this: labelstr "^DailySet1-[0-9][0-9]*$" # label constraint regex: all tapes must match >From that, howto edit looks to be self-explanatory... -- Cheers, Gene AMD K6-III@500mhz 320M Athlon1600XP@1400mhz 512M 99.06% setiathome rank, not too shabby for a WV hillbilly
