Amanda-Users

amrecover_changer again - can't get it to work

2003-05-19 05:41:11
Subject: amrecover_changer again - can't get it to work
From: Toralf Lund <toralf AT procaptura DOT com>
To: Amanda Mailing List <amanda-users AT amanda DOT org>
Date: Mon, 19 May 2003 11:33:49 +0200
OK, I've installed the 20030516 snapshot in order to get amrecover_changer functionality. I can't get it to work, however. I have

tpchanger "chg-zd-mtx"        # the tape-changer glue script
tapedev "/dev/nrtape" # the no-rewind tape device to be used
rawtapedev "/dev/tape"        # the raw device to be used (ftape only)
changerfile "chg-mtx"
changerdev "/dev/changer"
amrecover_changer "changer"

in amanda.conf. I thought "settape changer" would enable the changer for recovery with this setup, but I get:

amrecover> sethost uppsala
amrecover> setdisk /usr/work
amrecover> add <something>
amrecover> settape changer
Using tape "changer" from server localhost.
amrecover> extract

Extracting files using tape drive changer on host localhost.
The following tapes are needed: Man-2

Restoring files into directory /dumps/misc/uppsala
Continue [?/Y/n]? Y

Extracting files using tape drive changer on host localhost.
Load tape Man-2 now
Continue [?/Y/n/s/t]? Y
EOF, check amidxtaped.<timestamp>.debug file on localhost.
amrecover: short block 0 bytes
UNKNOWN file
amrecover: Can't read file header
extract_list - child returned non-zero status: 1

and [ /tmp/amanda/amidxtaped... ]

amidxtaped: debug 1 pid 6972734 ruid 33 euid 33: start at Mon May 19 11:21:32 2003
amidxtaped: version 2.4.4-20030516
amidxtaped: time 0.000: > SECURITY USER root
amidxtaped: time 0.001: bsd security: remote host localhost user root local user amanda
amidxtaped: time 0.001: amandahosts security check passed
amidxtaped: time 0.002: > CONFIG=ks
amidxtaped: time 0.002: > LABEL=Man-2
amidxtaped: time 0.002: > FSF=5
amidxtaped: time 0.002: > HEADER
amidxtaped: time 0.002: > DEVICE=changer
amidxtaped: time 0.002: > HOST=^uppsala$
amidxtaped: time 0.002: > DISK=^/usr/work$
amidxtaped: time 0.002: > DATESTAMP=20030512
amidxtaped: time 0.002: > END
amidxtaped: time 0.004: amrestore_nargs=0
amidxtaped: time 0.004: Ready to execv amrestore with:
path = /usr/freeware/bin/amrestore
argv[0] = "amrestore"
argv[1] = "-p"
argv[2] = "-h"
argv[3] = "changer"
argv[4] = "^uppsala$"
argv[5] = "^/usr/work$"
argv[6] = "20030512"
amrestore: could not stat changer: No such file or directory
amidxtaped: time 0.020: amrestore terminated normally with status: 2
amidxtaped: could not stat changer: No such file or directory
amidxtaped: time 0.021: could not stat changer: No such file or directory
amidxtaped: time 0.022: pid 6972734 finish time Mon May 19 11:21:32 2003

What am I doing wrong? Note that I'm running amrecover on the tape/index server.

--
Toralf

<Prev in Thread] Current Thread [Next in Thread>
  • amrecover_changer again - can't get it to work, Toralf Lund <=