Amanda-Users

file:driver configuration problems

2003-05-29 13:33:25
Subject: file:driver configuration problems
From: Jon LaBadie <jon AT jgcomp DOT com>
To: Jon LaBadie <amanda-users AT amanda DOT org>
Date: Thu, 29 May 2003 13:30:28 -0400
Since I upgraded from 2.4.2, thought I'd try some new features.
First up, the file:driver.

For a while I kept an article of someones notes on setting up
the file:driver configuration.  Now I can't find it.  I think
it was about a month ago.  Any pointers?

I have my config to the point of wanting to play with the "tape
drive and changer" :)

I'm using the directory /w2/FileDrive as the top-level for the
storage -- that is the "tapedev" right?  I.e. tapedev "file:/w2/FileDrive"
Although a how-to in the FOM says this should be commented out, so I've
tried it both ways.  Or should it be the changerdev?

Anyway, here are what I think are the significant parts of the config files.
In their current state.

=== amanda.conf ===
tpchanger "chg-multi"   # the tape-changer glue script
#tapedev "file:/w2/FileDrive"   # the no-rewind tape device to be used
#rawtapedev "/dev/null" # the raw device to be used (ftape only)
changerfile "/usr/local/etc/amanda/FT/changer.conf"
#changerdev "file:/w2/FileDrive"

tapetype FT             # what kind of tape it is (see tapetypes below)
labelstr "^FTape-[0-9][0-9]*$"  # label constraint regex: all tapes must match

# tapelist is stored, by default, in the directory that contains amanda.conf
# tapelist file exists, is empty (JHL)

# tapetypes

define tapetype FT {
    comment "File Driver"
    length 4096 mbytes
    filemark 0 kbytes
    speed 10000 kbytes          # limited by the Emulex bus interface, ugh
}

# dumptypes

define dumptype ft-tar {
    program "GNUTAR"
    record no
    compress server fast
    index
}


=== disklist ===
#
butch var1 /var { 
  ft-tar
} 0


=== changer.conf ===
# config file for the chg-multi tape changer program.
# Used when tpchanger "chg-multi" is specified in amanda.conf.

gravity 0
needeject 0
ejectdelay 0
posteject 0

# Names a status file where the current ``changer'' state is stored.
statefile /usr/local/etc/amanda/FT/changer-status

# What are the slot numbers used in the tape rack?
firstslot 1
lastslot 10

# Enumerate the device files that go with the particular tape changer
# slots. Don't forget to specify the no-rewind version of the device.
slot  1 file:/w2/FileDrive/FTape-01
slot  2 file:/w2/FileDrive/FTape-02
slot  3 file:/w2/FileDrive/FTape-03
slot  4 file:/w2/FileDrive/FTape-04
slot  5 file:/w2/FileDrive/FTape-05
slot  6 file:/w2/FileDrive/FTape-06
slot  7 file:/w2/FileDrive/FTape-07
slot  8 file:/w2/FileDrive/FTape-08
slot  9 file:/w2/FileDrive/FTape-09
slot 10 file:/w2/FileDrive/FTape-10

# The above named "slots" exist as directories (JHL)


=== changer-status ===
# multi-changer state cache: DO NOT EDIT!
curslot 1
curloaded 0


======================

Here are some results I get.


$ chg-multi -reset
1 chg-multi: slot is empty

$ chg-multi -slot 1
1 chg-multi: slot is empty

The changer.debug file reports this:

Args -> -slot 1
MT -> /usr/local/sbin/ammt -f
     -> rewind file:/w2/FileDrive/FTape-01
file:/w2/FileDrive/FTape-01 rewind failed: I/O error
Exit -> 1 chg-multi: slot is empty


Amanda version is current snapshot (5/29).  Ideas?

jon
-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

<Prev in Thread] Current Thread [Next in Thread>