On Thursday 08 February 2007 17:38, Frank Smith wrote: >mario wrote: >> Hello List, >> >> i am trying to backup to disk and i am getting the error: >> >> *** A TAPE ERROR OCCURRED: [new tape not found in rack]. >> >> >> i get the same error when i try to run "amflush DailySet1". >> >> Any ideas or tips? >> >> Here is my amanda.conf: >> -------------------------------------------- >> >> org "DailySet1" >> mailto "root" >> dumpuser "backup" >> inparallel 4 >> netusage 2000 >> >> bumpsize 20 MB >> bumpdays 1 >> bumpmult 4 >> >> dumpcycle 14 days >> tapecycle 14
What about this? Very few run a tapecyle=dumpcycle, preferring instead to run a tapecycle 2 to 4 times the dumpcycle in order that there be more than one generation of backups available. Here, I'm a bit paranoid probably, but the storage space is available, so dumpcycle=5 and tapecycle=21, and the inherent assumption by amanda is that there are sufficient tapes available for use to at least match the 'tapecycle', regardless of the storage format used. There of course can be more in the magazine, and these are then considered spares so if one comes up missing, it can simply go on to the next one without running into the no-reuse problems an exact match would give in that situation. I'm using the FILE: device. >> runtapes 1 >> tpchanger "chg-multi" >> changerfile "/etc/amanda/DailySet1/changer.conf" >> >> tapetype HARD-DISK >> labelstr "^DailySet1[0-9][0-9]*$" >> >> diskdir "/backup/fallback/amanda" # where the holding disk is >> disksize 33290 MB # how much space can we use on it >> >> infofile "/var/lib/amanda/DailySet1/curinfo" # database filename >> logfile "/var/log/amanda/DailySet1/log" # log filename >> >> # where the index files live >> indexdir "/var/lib/amanda/DailySet1/index" >> >> >> define tapetype HARD-DISK { >> comment "Hard disk instead of tape" >> length 4000 mbytes # Simulates end of tape on hard disk (a 4 GB >> disk here) >> } >> >> define dumptype hard-disk-dump { >> comment "Back up to hard disk instead of tape - using dump" >> holdingdisk no >> index yes >> priority high >> } >> >> define dumptype hard-disk-tar { >> hard-disk-dump >> comment "Back up to hard disk instead of tape - using tar" >> program "GNUTAR" >> } >> >> define dumptype comp-user-tar { >> program "GNUTAR" >> comment "Root partitions with compression" >> options compress-fast, index >> priority low >> } >> >> >> >> >> Changer: "/etc/amanda/DailySet1/changer.conf" >> ---------------------------------------------------------------------- >>------------- >> >> multieject 0 >> gravity 0 >> needeject 0 >> ejectdelay 0 >> >> statefile /var/lib/amanda/DailySet1/changer-status >> >> firstslot 1 >> lastslot 5 >> >> slot 1 file:/var2/amandadumps/tape01 >> slot 2 file:/var2/amandadumps/tape02 >> slot 3 file:/var2/amandadumps/tape03 >> slot 4 file:/var2/amandadumps/tape04 >> slot 5 file:/var2/amandadumps/tape05 >> >> Thanks, Mario > >You have tapecylce set to 14 but only have 5 'tapes' in your >changer. Amanda is probably looking for tape06. Either change >tapecyle to 5 or create more tapes (and increase lastslot to match). > >Frank -- Cheers, Gene "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Yahoo.com and AOL/TW attorneys please note, additions to the above message by Gene Heskett are: Copyright 2007 by Maurice Eugene Heskett, all rights reserved.