Jan Stary <h...@stare.cz> writes:

> On Jan 05 12:19:13, o...@drijf.net wrote:
>> On Mon, Jan 05, 2015 at 11:33:13AM +0100, Jan Stary wrote:
>> 
>> > On Jan 05 10:58:02, o...@drijf.net wrote:
>> > > On Mon, Jan 05, 2015 at 10:19:54AM +0100, Jan Stary wrote:
>> > > 
>> > > > This is a daily mail from my Alix router.
>> > > > I do a dump in daily.local (see below)
>> > > > and most of the time it works just fine.
>> > > > Occasionaly though, the DUMP fails saying
>> > > > 
>> > > > >   DUMP: End of tape detected
>> > > > >   DUMP: Volume 1 completed at: Mon Jan  5 01:30:44 2015
>> > > > >   DUMP: Volume 1 took 0:00:07
>> > > > >   DUMP: Volume 1 transfer rate: 2101 KB/s
>> > > > >   DUMP: Change Volumes: Mount volume #2
>> > > > >   DUMP: fopen on /dev/tty fails: Device not configured
>> > > > >   DUMP: The ENTIRE dump is aborted.
>> > > > 
>> > > > That puzzles me, as I dump to stdout,
>> > > > redirecting to a file (see below).
>> > > > 
>> > > > (I vaguely remember that the reason I switched from
>> > > > "dump -f file.dump ..." to "dump -f - ... > file.dump"
>> > > > was that I was advised her by a developer about
>> > > > the tape legacy of dump, but I forgot what exactly
>> > > > was the problem then and can't find it in archives.)
>> > > > 
>> > > > Why would "dump -f -  ... > file.dump" think
>> > > > that it reached an end of tape?
>> > > 
>> > > Because dump is a bit dumb. You need to use -a, see man page.
>> > 
>> > But I do, see the code below.
>> 
>> Hmm indeed, then it's my guess you are running out of disk. The
>> numbers do not seems to warrant that, though.
>
> Hm. This is dump of level 0, on a Monday morning,
> when I rm the previous dumps and start anew
> - could it be that the free space made by rm
> only becomes available a _bit_ late due to softdep?
>
>       [ "x$l" = "x0" ] && rm -f $BKPDIR/dump$fsname.?
>       f=$BKPDIR/dump$fsname.$l
>       > $f && chown $BKPUSR:$BKPGRP $f && chmod 600 $f
>       dump -$l -a -u -f - $fs > $f 2> $BKPLOG
>
> Because that happens, right? Create a few huge files
> on a softdep FS, then remove them; the free space
> only "appears a bit later".
>
> I will try to add a sync in between the rm and the dump -0

I have had this type of message when dump asks some question to the
operator. I don't remember what the issue was and cannot reproduce. It
was on level 1 dump too.
-- 
Manuel Giraud

Reply via email to