I'm in the (hopefully) final stages of setting up my new
Amanda machine.
I want to use a combination of vtapes, and physical tapes
in a RAIT. At the moment, I have 10 vtapes set up but I
may reduce that to 5. My physical tape is a Ultrim 3, which
has a marketing capacity of 400G. I have 1.2T of space to use
for vtapes. I want to use 25 physical tapes in rotation.
Based upon some suggestions from anthony.worrall AT reading.ac DOT uk,
I have modified his script that sets the changer position
to a given portion, and then copies the disklabel from the phys.
tape to the vtape. Here is what I wound up with for that
#!/bin/sh
VTAPE=file:/vtapes/DailyDump/vtape$1
DEV=/dev/nst0
AMMT=/opt/amanda/sbin/ammt
AMDD=/opt/amanda/sbin/amdd
AMDUMP=/opt/amanda/sbin/amdump
AMTAPE=/opt/amanda/sbin/amtape
$AMMT -t $VTAPE rewind
$AMMT -t $DEV rewind
$AMDD if=$DEV of=$VTAPE bs=32k count=1 2>&1 > /dev/null
$AMTAPE DailyDump slot $1
$AMDUMP DailyDump
I believe that I need to set up 3 configs for this to work correctly.
They are:
1. The primary config (DailyDump) in my case, used for normal backups.
2. A tape only config (tape_only in my case). This will be used for labeling
the physical atpes, and for recovering from physical tapes, after
the vtape half of the mirror is gone.
3. A disk only (disk_only in my case). Used for recovering from vtapes
without having to mount the physical tape. Potentially while a backup
is still running.
Now, it seems to me that these 3 configs will need to share a good bit
of stuff. The amanda.conf's will be different (although I'm using the
include directive to bring in many common pieces). I would assume that
the disklist could be linked to each config directory. Which leaves (at
least) the following or discussion:
infofile (I think this should be common)
logdir (I'm uncertain of this0.
indexdir (this pretty much has to be common.
What should I do about tapelist? Also, I'm thinking that dumpcycle ,
runspercycle , and tapecycle will need to be the same everywhere.
a 4, 20, and 25 in my case.
Finally, what should I do about changerfile? I'm using chg-multi.
Thanks for any advice on this somewhat convoluted setup.
--
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong
Terror
- New York Times 9/3/1967
|