I set up an amanda installation between 5 SGI stations backing up to a
central amanda server on SGI (machines run Irix 6.5.0 to 6.5.6)

Backing up seems to be running OK

Restoring with amrestore to the first client fails.

Amrecover functions as expected until the extract command is given: then
the programme stops.

>From the debug files I draw the conclusion that the arguments for
XFSRESTORE are not properly generated.
Is this conclusion correct, or whatelse is going wrong

Thanks
Gerrit Hommersom
[EMAIL PROTECTED]



===== amrcover transcript ====
 /usr/local/amanda/sbin/amrecover -C Tape-2 -s host -t host
AMRECOVER Version 2.4.2. Contacting server on tnesmd ...
220 host AMANDA index server (2.4.2) ready.
200 Access OK
Setting restore date to today (2001-02-27)
200 Working date set to 2001-02-27.
200 Config set to Tape-2.
200 Dump host set to client.aaa.aaa.aaa
$CWD '/tmp/amanda/amandatest' is on disk '/' mounted at '/'.
200 Disk set to /.

Invalid directory - /tmp/amanda/amandatest
amrecover> amrecover> cd /usr/people/
/usr/people
amrecover> ls
2001-02-27 OutOfBox/
2001-02-27 amanda/
2001-02-27 guest/
2001-02-27 steven/
2001-02-27 u762440/
2001-02-27 user12/
amrecover> add u762440
Added dir /usr/people/u762440 at date 2001-02-27
amrecover> extract

Extracting files using tape drive /dev/nrtape2 on host host
The following tapes are needed: Tape-2-08

Restoring files into directory /tmp/amanda/amandatest
Continue? [Y/n]: y

Load tape Tape-2-08 now
Continue? [Y/n]: y
restore: -f argument missing
restore: usage: restore [ -a <alt. workspace dir> ... ]
                        [ -b <blocksize> (use with minimal rmt option) ]

                        [ -c <media change alert program>  ]
                        [ -e (don't overwrite existing files) ]
                        [ -f <source> ... ]
                        [ -h (help) ]
                        [ -i (interactive) ]
                        [ -m <force usage of minimal rmt> ]
                        [ -n <file> (restore only if newer than) ]
                        [ -o (restore owner/group even if not root) ]
                        [ -p <seconds between progress reports> ]
                        [ -r (cumulative restore) ]
                        [ -s <subtree> ... ]
                        [ -t (contents only) ]
                        [ -v <verbosity {silent, verbose, trace}> ]
                        [ -A (don't restore extended file attributes) ]
                        [ -D (restore DMAPI event settings) ]
                        [ -E (don't overwrite if changed) ]
                        [ -F (don't prompt) ]
                        [ -I (display dump inventory) ]
                        [ -J (inhibit inventory update) ]
                        [ -L <session label> ]
                        [ -O <options file> ]
                        [ -Q (force interrupted session completion) ]
                        [ -R (resume) ]
                        [ -S <session id> ]
                        [ -T (don't timeout dialogs) ]
                        [ -X <excluded subtree> ... ]
                        [ -Y <I/O buffer ring length> ]
                        [ - (stdin) ]
                        [ <destination> ]
extract_list - child returned non-zero status: 1
Continue? [Y/n]: y
=========================client amrecover debug file ===========
 more amrecover.debug
amrecover: debug 1 pid 83719 ruid 0 euid 0 start time Tue Feb 27
11:55:33 2001
add_dir_list_item: Adding "2001-02-27" "0" "Tape-2-08" "/.Sgiresources"
add_dir_list_item: Adding "2001-02-27" "0" "Tape-2-08" "/.cshrc"

.
.
.
.
add_dir_list_item: Adding "2001-02-27" "0" "Tape-2-08" "/usr/"
add_dir_list_item: Adding "2001-02-27" "0" "Tape-2-08" "/var/"
add_dir_list_item: Adding "2001-02-27" "0" "Tape-2-08"
"/usr/people/OutOfBox/"
add_dir_list_item: Adding "2001-02-27" "0" "Tape-2-08"
"/usr/people/amanda/"
add_dir_list_item: Adding "2001-02-27" "0" "Tape-2-08"
"/usr/people/guest/"
add_dir_list_item: Adding "2001-02-27" "0" "Tape-2-08"
"/usr/people/steven/"
add_dir_list_item: Adding "2001-02-27" "0" "Tape-2-08"
"/usr/people/u762440/"
add_dir_list_item: Adding "2001-02-27" "0" "Tape-2-08"
"/usr/people/user12/"
add_glob (u762440) -> ^u762440$
add_file: Looking for "u762440[/]*$"
add_file: Converted path="u762440[/]*$" to
path_on_disk="\/usr\/people/u762440[/]*$"
add_file: Pondering ditem->path="/usr/people/OutOfBox/"
add_file: Pondering ditem->path="/usr/people/amanda/"
add_file: Pondering ditem->path="/usr/people/guest/"
add_file: Pondering ditem->path="/usr/people/steven/"
add_file: Pondering ditem->path="/usr/people/u762440/"
add_file: (Successful) Added dir /usr/people/u762440 at date 2001-02-27
add_file: Pondering ditem->path="/usr/people/user12/"
Started amidxtaped with arguments "6 -h -p /dev/nrtape2
client.aaa.aaa.aaa ^/$ 20010227"
Exec'ing /sbin/xfsrestore with arguments:
        restore
        -f
        -
        -v
        silent
        -s
        /usr/people/u762440
amrecover: pid 83719 finish time Tue Feb 27 12:29:23 2001
===============================amidxtaped.debug
more amidxtaped.debug
amidxtaped: debug 1 pid 9073308 ruid 32783 euid 32783 start time Tue Feb
27 12:24:13 2001
amidxtaped: version 2.4.2
> SECURITY USER root
> 6
amrestore_nargs=6
> -h
> -p
> /dev/nrtape2
> client.aaa.aaa.aaa
> ^/$
> 20010227
Ready to execv amrestore with:
path = /usr/prog/amanda/sbin/amrestore
argv[0] = "amrestore"
argv[1] = "-h"
argv[2] = "-p"
argv[3] = "/dev/nrtape2"
argv[4] = "client.aaa.aaa.aaa"
argv[5] = "^/$"
argv[6] = "20010227"
amrestore:   0: skipping start of tape: date 20010227 label Tape-2-08
amrestore:   1: skipping client11.aaa.aaa.aaa._.20010227.1
.
.
.amrestore:   8: skipping client2.aaa.aaa.aaa._.20010227.0
amrestore:   9: restoring client.aaa.aaa.aaa._.20010227.0
Error 32 (Broken pipe) offset 98304+32768, wrote 0
amrestore: pipe reader has quit in middle of file.
amrestore: skipping ahead to start of next file, please wait...
amidxtaped: amrestore terminated normally with status: 2
Rewinding tape: done
amidxtaped: pid 9073308 finish time Tue Feb 27 12:27:01 2001
=====================


Reply via email to