* Ross Macintyre <[EMAIL PROTECTED]> (Fri, Feb 23, 2001 at 10:57:54AM +0000)
> I wonder if someone can help me here?
> I'm still tyring to get someone else's setup of amanda running and I 
> feel I'm nearly there. But I'm confused by this:
> 2 night's worth of dumps failed (because I hadn't the correct tape in) 
> and I put in the right tape and ran 'diskflush tape1'. This seemed to 
> work fine but the printout of the dump says:
>       Total size      0.0MB
>       Tape Used       29.2%
>       Compression Ratio --%
>       Filesystems dumped  0
> It then goes on to list lots of Filesystems that I think were dumped.
> I did the flush manually and it certainly wrote a lot to tape, and the 
> 2 logs(amflush.1 and log.20010222.0) look ok. The end of the log says:
> -----------------
> SUCCESS taper hennion /dev/dsk/c0t0d0s3 20010222 1 [sec 0.059 kb 160 kps 2694.6 
> {wr: writers 5 rdwait 0.000 wrwait 0.038 filemark 0.018}]
> INFO taper tape Tape1_125 kb 5956064 fm 146 [OK]
> FINISH amflush date 20010222 time 4164.489
> -----------------

> Does the 5956064 represent the Kb written to tape?

Yes,
It looks like you wrote 146 fileimages to tape, totalling 5956064 kb

If you want to be really sure
run the attached perl script to get a table of contents of your tape
(also included here sicne atatchement apaprently don';t work in digest mode
?)


#!/usr/bin/perl
 
$device = shift || die "Please specify full tapedevice\n";
$dd = "/bin/dd";
$mt = "/bin/mt";
 
print "Rewinding\n";
system("$mt -f $device rewind");
 
$tapeheader = `$dd if=$device bs=32k count=1`;
die "Amanda Label not found!\n$tapeheader\n" unless $tapeheader =~
/TAPESTART/;
print $tapeheader;
push(@stuff,$tapeheader);
 
while ( ! $ierr ){
    $foo = `$dd if=$device bs=32k count=1 | head -3`;
    if ($foo =~ /TAPEEND/) {
        print $foo;
        last;
    } elsif ($foo =~ /FILE/) {
        print $foo;
    } else {
        $foo =~ tr/A-Za-z0-9 \t\r\n/ /cs;
        print "Unexpected thing: $foo\n";
    }
    $ierr = $?;
}
print "Rewinding\n";
system("$mt -f $device rewind");

Currently listening to: 02_JerkOff

        Gerhard,  [@jasongeo.com]   == The Acoustic Motorbiker ==       
-- 
   __O  Hypocrites and Zealots
 =`\<,  are struggling for the throne,
(=)/(=) Kings and queens and presidents
        All younger then the Stones

amanda.toc.pl

Reply via email to