On Thu, Feb 28, 2002 at 07:56:24AM -0500, Joshua Baker-LePain wrote:
> On Wed, 27 Feb 2002 at 5:21pm, Jon Stearley wrote
>
> > On Wed, Feb 27, 2002 at 12:05:10PM -0500, Joshua Baker-LePain wrote:
> > > Well, 2.4.3b2 (derived from the 2.4.2-tapeio branch) has the ability to
> > > use files on disk like tapes. You could back up to files on disk, and
> > > then have the cronjob which runs 'amdump' ftp those to the tape library.
> > > amrecover would still have access to your indexes, and when it asks you
> > > for a "tape" you just grab the right file off the ftp server/tape library.
> >
> > sounds perfect! so i grabbed and built 2.4.3b2 but would appreciate a
> > pointer on how to utilize this functionality, the (.conf?) option is
> > not jumping out at me... thx!
> >
> All is explained in amanda(8). Basically, your tapedev would look like
> "file:/path/to/backup/dir".
works, of course ;) i can amlabel a tape and dump to it. after my
amlabel command, i see the following in the data dir:
00000-mercy00 00000.mercy00 00001-TAPEEND 00001.TAPEEND
from the docs it sounds like the data dir can contain multiple tapes,
that's the part i can't figgure out. if i amlabel a new label, it
just changes the label on the same image files. i tried using
chg-multi with slots set like:
slot 0 /scratch/amanda/images/data/00000.mercy00
slot 1 /scratch/amanda/images/data/00001-mercy01
slot 2 /scratch/amanda/images/data
slot 3 /scratch/amanda/images
none of which work. it never thinks it has a tape loaded...
so i tried ammt and got:
backup@mercy: ammt -d -f /scratch/amanda/images/data/00000.mercy00 status
debug mode!
syntax: eof -> e
syntax: weof -> w
syntax: fsf -> f
syntax: asf -> a
syntax: bsf -> b
syntax: rewind -> rewi
syntax: offline -> o
syntax: rewoffl -> rewo
syntax: status -> s
tapename is "/scratch/amanda/images/data/00000.mercy00"
calling tape_open("/scratch/amanda/images/data/00000.mercy00",0)
processing status(1)
calling tapefd_status()
/scratch/amanda/images/data/00000.mercy00 status failed: Inappropriate
ioctl for device
same if i try the other things i listed as slots above. looks like
file_tape_status is flunking out?
i already browsed tapeio.c, output-file.c, and ammt.c a bit, but no
revelations. any more hints on howto setup multiple (file) "tapes",
ideally controlled as an autoloader? i'm running debian-testing with
a 2.4.13 kernel. thanks much!
-jon