On Sun, Aug 18, 2002 at 08:29:57PM +0200, Sébastien GALLET wrote:
> Yes i do.
> The file mentionned by changerfile in amanda.conf must NOT exist or be
> empty.
>
> In chg-manual, comment the line
> DD if=$tape count=1 >> $logfile 2>&1
>
> This command reads the beginning of the tape (only to log it) and causes an
> Input/Output Error in amanda when it try to get tape label.
>
> Bye
>
> ----- Original Message -----
> From: "Jon LaBadie" <jon AT jgcomp DOT com>
> To: "amanda-users" <amanda-users AT amanda DOT org>
> Sent: Thursday, August 15, 2002 11:22 PM
> Subject: chg-manual has anyone used it successfully?
>
>
> > Investigating a recent posting I looked at the chg-manual code.
> > It contains the following:
> >
> > if [ -f $changerfile ]; then
> > . $changerfile
> > fi
> >
> > $changerfile is <configdir>/changer.conf normally.
> >
> > It is being "sourced" in this code such that the lines should
> > be shell script syntax. But changer.conf is not a shell script.
> > Instead it contains lines like:
> >
> > number_configs 1
> >
> > which the sourcing tries to execute like a command line and
> > of course there is no program called "number_configs".
> >
> > It appears that the author of chg-manual expected the syntax
> > of changer.conf to be parameter assignments like NUM_CONFIG=1.
> >
> > Has anyone been using chg-manual? HOW?
> >
> > --
Interesting coding, "make sure it doesn't exist or this breaks". :))
On your dd line, if you would like to get the tape label into the log
I might suggest these untested changes.
$DD if=$tape count=1 >> $logfile 2>&1
becomes
$DD if=$tape count=1 bs=32k 2>> $logfile | head -1 >> $logfile
Though I'd be tempted to also change the "2>> $logfile" into "2> /dev/null".
Don't know why I'd want to log dd's block counts.
--
Jon H. LaBadie jon AT jgcomp DOT com
JG Computing
4455 Province Line Road (609) 252-0159
Princeton, NJ 08540-4322 (609) 683-7220 (fax)
|