RE: File driver usage
2007-03-29 12:29:23
From: Cédric Lucantis [mailto:omer AT no-log DOT org] (also from Tim Johnson
J.)
| Hmm, weird... tapedev should be on a separate line, but I
| guess something was
| wrong with your copy/paste (?), otherwise amcheck would have
| choke on it
Indeed - editing problem in the mail, not in amanda.conf.
| Anyway, your setup seems to be wrong: tapedev should be a
| directory containing
| the tapes, not the tape itself, and data must be a sym link
| pointing to one
| of the tapes. For instance, I have tapedev="file:/backup/archive"
and:
|
| amanda@pc-cedric:/home/omer$ ls -l /backup/archive/
| total 12
| lrwxrwxrwx 1 amanda amanda 21 2007-03-28 07:02 data ->
| /backup/archive/slot1
| -rw------- 1 amanda amanda 15 2007-03-29 17:12 info
| drwxr-xr-x 2 amanda amanda 4096 2007-03-27 16:07 slot1
| drwxr-xr-x 2 amanda amanda 4096 2007-03-27 16:09 slot2
Hmmm. With a similar setup
> pwd
/xlv1/amanda/algo_test
> ls -al
total 0
drwxrwxr-x 4 amanda amanda 50 Mar 29 17:15 .
drwxr-xr-x 4 amanda sys 64 Mar 28 19:27 ..
lrwxrwxr-x 1 amanda amanda 5 Mar 29 17:15 data -> slot1
drwxrwxr-x 3 amanda amanda 22 Mar 28 12:57 slot1
drwxrwxr-x 3 amanda amanda 22 Mar 29 17:14 slot2
and
tapedev "file:/xlv1/amanda/algo_test"
I get the following behavior:
> amlabel algo_test TEST-1 slot 1
amlabel: no tpchanger specified in
"/usr/local/etc/amanda/algo_test/amanda.conf", so slot command invalid
Usage: amlabel [-f] <conf> <label> [slot <slot-number>]
> amcheck algo_test
...
ERROR: file:/xlv1/amanda/algo_test: No such file or directory
(expecting a new tape)
...
So I suppose I should get chg-multi involved, as per the wiki page,
but
I'm not entirely hopeful that will solve everything.
--
Jurgen Pletinckx
AlgoNomics NV
|
|
|