Re: File driver usage
2007-03-29 12:26:25
> Yes, dear, the file _does_ actually exist:
> > ls -la /xlv1/amanda/algo_test/tape1
>
> total 0
> drwxrwxr-x 3 amanda amanda 22 Mar 28 12:57 .
> drwxrwxr-x 3 amanda amanda 23 Mar 28 12:57 ..
> drwxrwxr-x 2 amanda amanda 9 Mar 28 12:57 data
>
(...)
> runtapes 1 tapedev "file:/xlv1/amanda/algo_test/tape1"
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
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
(don't worry about the info file, it's created by the changer)
I set it up like this (first delete any changer-* file and make sure tapelist
is empty) :
cd /backup/archive
mkdir slot1 slot2
ln -s slot1 data
amlabel archive archive1 slot 1
amlabel archive archive2 slot 2
...
I think that calling the directories 'slotN' is mandatory, but not sure about
that
--
Cédric Lucantis
|
|
|