Amanda-Users

Can't make amcheck happy with HP SureStore DAT24x6

2002-12-10 12:38:47
Subject: Can't make amcheck happy with HP SureStore DAT24x6
From: Sciallo <rick AT rpwebworks DOT com>
To: amanda-users AT amanda DOT org
Date: Tue, 10 Dec 2002 10:25:35 -0500
I've been juggling configs for two days to try to use my HP SureStore 24x6 
with amanda with no luck.

My hopes were high when I found this article: 
http://www.soti.org/~soggie/linux/hw/hp-surestore-24x6/ but as it's always 
the case with me and how-to's it din't solve it. I'm guessing I have 
something wrong in my charger config file. I keep reading other people's 
posts about "having to change one line in the mtx script" but never found 
more info on where and how. 

For the record, mt and mtx seem to work fine from command prompt. I can load 
tapes, move to next or previous rewind etc the only thing that doesn't seem 
to work so far is eject.

The message I get when issuing amcheck:

-bash-2.05b$ /usr/sbin/amcheck DailySet1
Amanda Tape Server Host Check
-----------------------------
Holding disk /var/tmp: 7856688 KB disk space available, that's plenty
amcheck-server: could not get changer info: badly formed result from changer: 
"/usr/lib/amanda/chg-zd-mtx: line 140: [: -eq: unary operator expected"

Amanda Backup Client Hosts Check
--------------------------------
Client check: 1 host checked in 0.143 seconds, 0 problems found

(brought to you by Amanda 2.4.2p2)



Here is the pertinent parts of config files:

###################################
#### /etc/amanda/DailySet1/amanda.conf
###################################

.......

runtapes 2              # number of tapes to be used in a single run of amdump
tpchanger "chg-zd-mtx"  # the tape-changer glue script
tapedev "/dev/nst0"     # the no-rewind tape device to be used
rawtapedev "/dev/st0"   # the raw device to be used (ftape only)
changerfile "/etc/amanda/mtx-changer"
changerdev "/dev/sga"
tapetype HP1557A        # what kind of tape it is (see tapetypes below)
labelstr "^DailySet1[0-9][0-9]*$"       # label constraint regex: all tapes 
must match

.....

infofile "/var/lib/amanda/DailySet1/curinfo"    # database filename
logdir   "/var/lib/amanda/DailySet1"            # log directory
indexdir "/var/lib/amanda/DailySet1/index"      # index directory
#tapelist "/var/lib/amanda/DailySet1/tapelist"  # list of used tapes
# tapelist is stored, by default, in the directory that contains amanda.conf

......

define tapetype HP1557A {
    comment "HP SureStore DAT24x6 tape drive"
    length 12000 mbytes
    filemark 111 kbytes
    speed 3000 kbytes
}

......

#############################
## /etc/amanda/mtx-changer.conf
#############################


number_configs  1
eject           1       # Tapedrives need an eject command
sleep           5       # Seconds to wait until the tape gets ready
cleanmax        20      # How many times could a cleaning tape get used
changerdev      /dev/sga
#
# Next comes the data for drive 0
#
config          0
drivenum        0
dev             /dev/st0        # the device that is used for the tapedrive 0
startuse        1       # The slots associated with the drive 0
enduse          6       #
statfile        /usr/local/etc/amanda/tape0-slot  # The file where the actual 
slot is stored
cleancart       6       # the slot where the cleaningcartridge for drive 0 is 
located
cleanfile       /usr/local/etc/amanda/tape0-clean # The file where the 
cleanings are recorded
usagecount      /usr/local/etc/amanda/backup/totaltime


# This is the end

Any help is truly appreciated. TIA
Rick


<Prev in Thread] Current Thread [Next in Thread>
  • Can't make amcheck happy with HP SureStore DAT24x6, Sciallo <=