Amanda-Users

Re: question

2003-01-25 22:21:18
Subject: Re: question
From: "John R. Jackson" <jrj AT purdue DOT edu>
To: David.Lee AT arvatousa DOT com
Date: Sat, 25 Jan 2003 21:28:40 -0500
>I tried to do a remote restore from the tape server.
>I got error and the restore was aborted.
>The fellowing is the error message:
>
>[root@cat root]# /usr/local/sbin/amrestore -p /dev/nst0 mws02
>mws02.sda1.20030121.0 | rsh mws02  -l root /sbin/restore ivbf 2  -
>/sbin/restore: cannot open /dev/tty: No such device or address
>amrestore:   0: skipping start of tape: date 20030121 label VOL0001
>amrestore:   1: skipping mws02.sda1.20030121.0
>amrestore:   2: reached end of tape: date 20030121
>Verify tape and initialize maps
>Input is from file/pipe
>/sbin/restore: Tape read error on first record

There are two problems here.  First, I'd suggest doing the "rsh" "the
other way around".  You're trying to tell restore to both read the image
from stdin and get your interactive commands from stdin/tty.  Note that
it was not happy that it could not open /dev/tty.

Assuming the machine with the tape drive is named "SERVER", log on to
mws02 and do it this way:

  [root@mws02 root]# rsh SERVER /usr/local/sbin/amrestore -p /dev/nst0 mws02 
sda1 \
    | /sbin/restore ivbf 2 -

The second problem is the disk name option you gave to amrestore.
Instead of "mws02.sda1.20030121.0", you should just list the disk name,
i.e. "sda1" (as in the example above).

I can see how this might be confusing based on what amrestore is
reporting, but it's telling you in the "skipping" message the host, disk,
date and level all in that "mws02.sda1.20030121.0" string.  But the flag
on the command is only the disk ("sda1"), not all four parts.

>David

John R. Jackson, Technical Software Specialist, jrj AT purdue DOT edu

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