[prev in list] [next in list] [prev in thread] [next in thread] 

List:       amanda-users
Subject:    Re: amanda 2.6.1 amrestore issue
From:       Jon LaBadie <jon () jgcomp ! com>
Date:       2009-02-27 18:29:05
Message-ID: 20090227182905.GA14862 () butch ! jgcomp ! com
[Download RAW message or body]

On Fri, Feb 27, 2009 at 12:03:21PM -0500, Dustin J. Mitchell wrote:
> I'm sorry -- I somehow filed this away withot answering.
> 
> On Mon, Feb 23, 2009 at 3:59 PM, Brian Cuttler <brian@wadsworth.org> wrote:
> > read(4, 0x080887A0, 32768) ? ? ? ? ? ? ? ? ? ? ?Err#5 EIO
> 
...
> Note that the actions Amanda is performing are:
>  open
>  rewind
>  read 32k blocks until getting an EOF indication:
>    /2:     read(4, 0x08170A40, 32768)                      = 0
>  attempt to read the next block (which should begin the next file)
> 
> These steps aren't particularly easy to duplicate from the command
> line, since 'dd' closes its input once it reaches an EOF.

You can use a shell workaround/trick to deal with this:

# (
cmd1
cmd2
...
cmdn
) > /dev/"tapedevice" < /dev/"tapedevice"

The shell creates a subprocess that runs the commands
between the parentheses.  Stdin and stdout are open
to the tape device at the start of this subprocess and
stays open through all cmds between the parens.

Any dd commands between the parens should omit and "if="
and "of=" arguments as you want the defaults of stdin/out.

jl
-- 
Jon H. LaBadie                  jon@jgcomp.com
 JG Computing
 12027 Creekbend Drive		(703) 787-0884
 Reston, VA  20194		(703) 787-0922 (fax)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic