Amanda-Users

Re: How can I specify the correct "tape device" to amrecover for vtpaes?

2006-04-30 16:45:58
Subject: Re: How can I specify the correct "tape device" to amrecover for vtpaes?
From: stan <stanb AT panix DOT com>
To: Jon LaBadie <jon AT jgcomp DOT com>
Date: Sun, 30 Apr 2006 16:41:21 -0400
On Sun, Apr 30, 2006 at 12:23:46PM -0400, Jon LaBadie wrote:
> On Sun, Apr 30, 2006 at 09:20:45AM -0400, stan wrote:
> > I'm setting up a system that uses a RAIT of vtapes, and a real tape
> > drive. I'm attempting to get 3 configs, one the "normal" on that
> > is used for backups, and one for tape only, and another for disk only.
> > 
> > At present when I try to use amrecover on the disk only config, it fails
> > I've determined that is because it's trying to use the physical tape
> > device /dev/nst0 (which is the compiled in default). How can
> > I properly invoke amrecover to use the vtapes? I'm using chg-multi,
> > and I'm fairly certain that the changer config file for the disk only
> > config is correct, but that does not seem to be enough.
> 
> Show it please, including where it is, whether it is a link, etc..
> 
The 3 configs share a common amanda.conf with only the following exceptions:

>From the disk_only config

includefile "/opt/amanda/etc/amanda.conf.main"
tpchanger "chg-multi"
changerfile "/opt/amanda/etc/disk_only/chg-multi.conf"
tapetype HARD-DISK

>From the "main" config

includefile "/opt/amanda/etc/amanda.conf.main"
tpchanger "chg-multi"
changerfile "/opt/amanda/etc/DailyDump/chg-multi.conf"
tapetype RAIT

The chg-multi.conf's are alaike except for lines that look lik:

for the disk_only config:

slot 1 file:/vtapes/DailyDump/vtape1
slot 2 file:/vtapes/DailyDump/vtape2
.
.
slot 24 file:/vtapes/DailyDump/vtape24
slot 25 file:/vtapes/DailyDump/vtape25

For the "main" config:

slot 1 rait:{file:/vtapes/DailyDump/vtape1,tape:/dev/nst0}
slot 2 rait:{file:/vtapes/DailyDump/vtape2,tape:/dev/nst0}
.
.
slot 24 rait:{file:/vtapes/DailyDump/vtape24,tape:/dev/nst0}
slot 25 rait:{file:/vtapes/DailyDump/vtape25,tape:/dev/nst0}

But when I run amecover disk_only, it defaults to the compiled in 
/dev/nst0

Make sense?

-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967

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