I'm getting an error when running amrecover which is coming from my configuration I suppose. It's trying to use "0" as the device, when it should look in the chg-scsi.conf for configuration 0 and see the device name, right? And if I change my tapedev to "/dev/nst0" it screws everything else up. Here is the amidxtaped.debug:
[amanda@backup amanda]$ cat /tmp/amanda/amidxtaped.20020314124953.debug amidxtaped: debug 1 pid 3048 ruid 504 euid 504 start time Thu Mar 14 12:49:53 2002 amidxtaped: version 2.4.2p2 > SECURITY USER root bsd security: remote host backup user root local user amanda amandahosts security check passed > 6 amrestore_nargs=6 > -h > -p > 0 > aeoluspn > ^sd2a$ > 20020302 Ready to execv amrestore with: path = /usr/local/sbin/amrestore argv[0] = "amrestore" argv[1] = "-h" argv[2] = "-p" argv[3] = "0" argv[4] = "aeoluspn" argv[5] = "^sd2a$" argv[6] = "20020302" amrestore: could not open tape 0: No such file or directory amidxtaped: amrestore terminated normally with status: 2 amidxtaped: could not stat 0 could not stat 0 amidxtaped: pid 3048 finish time Thu Mar 14 12:49:53 2002 and here are the pertinent lines of my conf files: amanda.conf: runtapes 2 # number of tapes to be used in a single run of amdump tpchanger "chg-scsi" # the tape-changer glue script tapedev "0" # the no-rewind tape device to be used rawtapedev "/dev/null" # the raw device to be used (ftape only) changerfile "/usr/local/etc/amanda/DailySet1/chg-scsi.conf" changerdev "/dev/sch0" chg-scsi.conf: number_configs 1 eject 1 # Tapedrives need an eject command sleep 30 # Seconds to wait until the tape gets ready cleanmax 100 # How many times could a cleaning tape get used changerdev /dev/sch0 # # Next comes the data for drive 0 # config 0 drivenum 0 dev /dev/nst0 startuse 0 # The slots associated with the drive 0 enduse 23 # statfile /usr/local/etc/amanda/DailySet1/tape0-slot # The file where the actual slot is stored cleanfile /usr/local/etc/amanda/DailySet1/tape0-clean # The file where the cleanings are recorded usagecount /usr/local/etc/amanda/DailySet1/totaltime
