* Debra S Baddorf <badd...@fnal.gov> [20130703 13:04]: > This probably isn't applicable to your problem, but my backups were ignoring > DLEs on the holding disk > and not autoflushing them > until I learned that AUTOFLUSH now has three options -- no, yes, and all. > "yes" only means "flush thing with the same DLE as on your current amdump > command" (paraphrased) > "all" means autoflush from any DLE that you find on the holding disk. > Deb
Thanks for the reply Debra. I had autoflush set to yes and I get the same problem when I set it to 'all'. cheers, jf > > On Jul 3, 2013, at 11:03 AM, Jean-Francois Malouin wrote: > > > Replying to myself... > > > > * Jean-Francois Malouin <jean-francois.malo...@bic.mni.mcgill.ca> [20130627 > > 12:08]: > >> Hi, > >> > >> It's been a while since I had to flush a dump from the holddisk to > >> tape. I use a bash script that contains: > >> > >> amflush -f -b -oflush-threshold-dumped=0 -oflush-threshold-scheduled=0 > >> -otaperflush=0 $conf > >> > >> Whwn invoked as the amanda user I get the error: > >> > >> "/opt/amanda-3.3.2/etc/amanda/top/disklist", line 79: disk device name > >> expected > >> amflush: errors processing config file > >> > >> Line 79 is the 'app-amgtar' below: > >> > >> edgar /opt/amanda { > >> # tar-calc > >> app-amgtar > >> estimate server > >> record no > >> index no > >> strategy noinc > >> } > >> > >> When invoked without any option overrides amflush runs ok. > >> > >> Any hint? It used to work prior to 3.x > >> > >> Regards, > >> jf > > > > I had time to investigate a little further this morning. Still no go. > > > > Here is an example using only 1 DLE in the disklist. > > > > ~# su amanda -c "~amanda/sbin/flush-and-log.sh down" > > "/opt/amanda-3.3.2/etc/amanda/down/disklist", line 1: disk dumptype > > 'app-amgtar-span' not found > > amflush: errors processing config file > > Use of uninitialized value $OF in ref-to-glob cast at > > /opt/amanda/sbin/amtoc line 48, <IF> line 157. > > ERROR: while ejecting volume: Tape device /dev/nst0 is not ready or is empty > > > > (btw, /opt/amanda-3.3.2 points to /opt/amanda, the homedir of the user > > 'amanda'. > > > > The little flush script and other info follows∵ > > > > ~# cat ~amanda/sbin/flush-and-log.sh > > > > #!/bin/sh > > > > conf="$1" > > if [ "$conf" = "" ]; then > > echo "you must provide a config name as an argument!" > > exit 1 > > else > > /opt/amanda/sbin/amflush -f -b -oflush-threshold-dumped=0 > > -oflush-threshold-scheduled=0 -otaperflush=0 $conf > > logdir=`/opt/amanda/sbin/amgetconf $conf logdir` > > log=`ls -1t $logdir/log.*.[0-9] | head -1` > > /opt/amanda/sbin/amtoc -t -a $log > > /opt/amanda/sbin/amtape $conf eject > > fi > > > > The disklist ~amanda/etc/amanda/down/disklist: (edited to include only one > > DLE) > > > > tutor /raid/data8 app-amgtar-span > > > > The dumptype 'app-amgtar-span' is defined in the files included in > > amanda.conf: > > > > includefile "/opt/amanda/common/applications.conf" > > includefile "/opt/amanda/common/dumptype.conf" > > > > /opt/amanda/common/applications.conf: > > > > define application-tool "app-amgtar" { > > plugin "amgtar" > > property "CHECK-DEVICE" "NO" > > property "IGNORE" ": Directory is new$" > > property append "IGNORE" ": Directory has been renamed" > > property append "IGNORE" ": file changed as we read it$" > > property append "IGNORE" ": socket ignored$" > > property append "IGNORE" ": Cannot stat: No such file or directory$" > > } > > > > /opt/amanda/common/dumptype.conf: > > > > define dumptype "app-amgtar-span" { > > "global" > > program "APPLICATION" > > application "app-amgtar" > > priority high > > allow-split > > holdingdisk required > > compress none > > comment "tape-spanning user partitions dumped with amgtar" > > } > > > > In the end it boils down to: > > > > ~# su amanda -c "~amanda/sbin/amadmin down disklist" > > line 1 (/opt/amanda/etc/amanda/down/disklist): > > host tutor: > > interface default > > disk /raid/data8: > > program "APPLICATION" > > application "app-amgtar" > > COMMENT "tape-spanning user partitions dumped with > > amgtar" > > PROGRAM "APPLICATION" > > SERVER-CUSTOM-COMPRESS "" > > CLIENT-CUSTOM-COMPRESS "" > > SERVER-ENCRYPT "" > > CLIENT-ENCRYPT "" > > AMANDAD-PATH "" > > CLIENT-USERNAME "" > > SSH-KEYS "" > > AUTH "BSDTCP" > > EXCLUDE LIST > > EXCLUDE FILE > > INCLUDE LIST > > INCLUDE FILE > > PRIORITY HIGH > > DUMPCYCLE 10 > > MAXDUMPS 6 > > MAXPROMOTEDAY 10000 > > BUMPPERCENT 10 > > BUMPSIZE 10240K > > BUMPDAYS 2 > > BUMPMULT 2.00000 > > STARTTIME 000 > > STRATEGY STANDARD > > ESTIMATE CLIENT > > COMPRESS NONE > > ENCRYPT NONE > > SERVER-DECRYPT-OPTION "-d" > > CLIENT-DECRYPT-OPTION "-d" > > COMPRATE 0.50000 0.50000 > > TAPE-SPLITSIZE 0K > > FALLBACK-SPLITSIZE 10240K > > SPLIT-DISKBUFFER "" > > RECORD yes > > SKIP-INCR no > > SKIP-FULL no > > HOLDINGDISK REQUIRED > > KENCRYPT no > > IGNORE no > > INDEX yes > > APPLICATION "app-amgtar" > > CLIENT-PORT "" > > DATA-PATH AMANDA > > ALLOW-SPLIT yes > > RECOVERY-LIMIT > > DUMP-LIMIT SERVER > > MAX-WARNINGS 20 > > spindle -1 > > > > > > > > jf > -- <° >< Jean-François Malouin | McConnell Brain Imaging Centre Systems/Network Manager | Montréal Neurological Institute