Hi Rodi, The "amrecover: Can't read file header" message happened to me when the chg-disk script wasn't being called, and amrecover was trying to read from an empty tape slot directory i.e. the "data" sym-link was wrong.
My amanda.conf has these entries: tpchanger "chg-disk" tapedev "file:/s4/amanda_tapes" rawtapedev "file:/s4/amanda_tapes" changerfile "/usr/local/etc/amanda/clst01/changer" changerdev "/dev/null" amrecover_changer "chg-disk" In amrecover, I do: amrecover> settape chg-disk amrecover> extract ... and it works fine. Doing an "ls -l" on the tape slot directory (/s4/amanda_tapes for me) shows that the "data" sym-link is changed to point to the correct tape slot before each extract begins. The value of "amrecover_changer" seems to be arbitrary - as long as the same string is used in amrecover, then it will use the value of "tpchanger" (AFAIK). Hope this helps, Marc Langlois. On Tue, 2004-02-03 at 06:34, R.M. Evers wrote: > hi amanda-users, > > sorry to bring this up again, but i'm also having problems with using > amrecover with the file: driver.. i have read the recent thread, but i > cannot get it to work properly. snip... > > then, i tried to recover some directory using amrecover. at the final > 'extract'-point, i receive the error: > > -- > Extracting files using tape drive daily01 on host bu2. > Load tape daily02 now > Continue [?/Y/n/s/t]? > EOF, check amidxtaped.<timestamp>.debug file on bu2. > amrecover: short block 0 bytes > UNKNOWN file > amrecover: Can't read file header > extract_list - child returned non-zero status: 1 > -- > > the recover works fine when i issue an "amtape DailySet1 label daily02" > on the backup server, but hey, i'm lazy.. > > i've tried different values for the amrecover_changer parameter > mentioned in the thread last month, but to no avail.. right now, here's > my config: > > -- > tpchanger "chg-disk" > changerfile "/etc/amanda/DailySet1/changer" > tapedev "file:/var/backups/amanda-tapes/DailySet1" > amrecover_changer "file:/var/backups/amanda-tapes/DailySet1" > -- > > i read the docs, googled like there's no tomorrow, but i can't seem to > get this right. what am i missing here? > > thanks & regards, > -rodi.
