Hi,
> Were you issuing the amrecover cmd from /home/oliver?
>From /home/olivier. Client and server are on the same machine.
I assume it works perfectly for you without using setdisk cmd.
Another problem is that first extract fail, but second works. I think
that i have to rewind the pseudo tape or something like that. I will
look in archives for this, it does not seem to have any relation
between both problems i just mention it in case of.
My configuration files, an amrecover session, and /tmp/amanda/*
follow. ( disklist and fstab files are in previous post )
Revelant (?) extract:
* "Can't determine disk and mount point from $CWD '/home/olivier'" when
issuing a amrecover cmd.
* amindexd.*.debug
> DISK /
< 501 No index records for disk: /. Invalid?
> DISK root
< 501 No index records for disk: root. Invalid?
* amrecover.*.debug
Does a backuped _directory_ is set with guess_disk function ?
How does it look for a similar working config ?
Furthermore, if someone see something weird/useless in this tapeless
configuration feel free to comment :)
Thank you and Bye.
* amanda.conf :
panda:~# grep ^[^#] /usr/local/amanda/etc/amanda/DailySet1/amanda.conf | cut -d "#" -f1
org "DailySet1"
mailto "backup"
dumpuser "backup"
inparallel 4
netusage 600 Kbps
dumpcycle 1 weeks
runspercycle 7
tapecycle 8 tapes
bumpsize 20 Mb
bumpdays 1
bumpmult 4
etimeout 300
dtimeout 1800
ctimeout 30
tapebufs 20
runtapes 1
tpchanger "chg-multi"
changerfile "/usr/local/amanda/etc/amanda/DailySet1/changer.conf"
tapetype HARD-DISK
labelstr "^DailySet1-[0-9]*$"
holdingdisk hd1 {
comment "main holding disk"
directory "/usr/local/amanda/holdingdisk"
use 290 Mb
chunksize 1Gb
}
autoflush no
infofile "/usr/local/amanda/etc/amanda/DailySet1/curinfo"
logdir "/usr/local/amanda/etc/amanda/DailySet1"
indexdir "/usr/local/amanda/etc/amanda/DailySet1/index"
define tapetype HARD-DISK {
comment "20GB Hard disk"
length 200 mbytes
}
define dumptype hard-disk-dump {
comment "Back up to hard disk instead of tape - using dump"
holdingdisk no
index yes
priority high
}
define dumptype hard-disk-tar {
hard-disk-dump
comment "Back up to hard disk instead of tape - using tar"
holdingdisk no
index yes
priority high
program "GNUTAR"
}
* changer.conf :
panda:~# grep ^[^#] /usr/local/amanda/etc/amanda/DailySet1/changer.conf
multieject 0
gravity 0
needeject 0
ejectdelay 0
statefile /usr/local/amanda/etc/amanda/DailySet1/multi-changer-status
firstslot 0
lastslot 7
slot 0 file:/usr/local/amanda/backup/tape0
[snip 1..6]
slot 7 file:/usr/local/amanda/backup/tape7
* amrecover session :
panda:~# cd /home/olivier/
panda:/home/olivier# hostname -f
panda.baobab.home
panda:/home/olivier# hostname -d
baobab.home
panda:/home/olivier# ls
panda:/home/olivier# rm /tmp/amanda/*
panda:/home/olivier# amrecover
AMRECOVER Version 2.4.3b2. Contacting server on panda ...
220 panda AMANDA index server (2.4.3b2) ready.
200 Access OK
Setting restore date to today (2002-02-25)
200 Working date set to 2002-02-25.
200 Config set to DailySet1.
200 Dump host set to panda.baobab.home.
Trying disk / ...
Trying disk root ...
Can't determine disk and mount point from $CWD '/home/olivier'
amrecover> setdisk /home/olivier
Warning: no log files found for tape DailySet1-7 written 0-00-00
[snip 6-4]
Warning: no log files found for tape DailySet1-3 written 0-00-00
Scanning /usr/local/amanda/holdingdisk...
200 Disk set to /home/olivier.
amrecover> settape panda.baobab.home:file:/usr/local/amanda/backup/tape2
Using tape file:/usr/local/amanda/backup/tape2 from server panda.baobab.home.
amrecover> add a*
Added /amanda-2.4.3b2.tar.gz
amrecover> extract
Extracting files using tape drive file:/usr/local/amanda/backup/tape2 on host
panda.baobab.home.
The following tapes are needed: DailySet1-2
Restoring files into directory /home/olivier
Continue? [Y/n]:
Load tape DailySet1-2 now
Continue? [Y/n/t]:
./amanda-2.4.3b2.tar.gz
amrecover> exit
200 Good bye.
panda:/home/olivier# ls
amanda-2.4.3b2.tar.gz
panda:/home/olivier# find /tmp/amanda -type f -name '*debug' -exec echo -e "\n* {}\n"
\; -exec cat {} \;
* /tmp/amanda/amrecover.20020225091318.debug
amrecover: debug 1 pid 1739 ruid 0 euid 0 start time Mon Feb 25 09:13:18 2002
amrecover: stream_client_privileged: connected to 172.16.16.17.10082
amrecover: stream_client_privileged: our side is 0.0.0.0.745
guess_disk: 13: "/home/olivier"
guess_disk: 0: 1: "/": "/dev/root"
guess_disk: local_disk = 1, fsname = "root"
guess_disk: 1: 5: "/proc": "proc"
guess_disk: 1: 8: "/dev/pts": "devpts"
guess_disk: 1: 13: "/proc/bus/usb": "usbdevfs"
guess_disk: 1: 1: "/": "/dev/hda2"
guess_disk: 1: 5: "/proc": "proc"
guess_disk: 1: 8: "/dev/pts": "devpts"
guess_disk: 1: 13: "/proc/bus/usb": "usbdevfs"
guess_disk: 1: 1: "/": "/dev/hda2"
guess_disk: 1: 4: "none": "/dev/hda1"
guess_disk: 1: 5: "/proc": "proc"
guess_disk: 1: 7: "/floppy": "/dev/fd0"
guess_disk: 1: 6: "/cdrom": "/dev/cdrom"
add_dir_list_item: Adding "2002-02-25" "1" "DailySet1-2" "/."
add_dir_list_item: Adding "2002-02-25" "1" "DailySet1-2" "/amanda-2.4.3b2.tar.gz"
add_dir_list_item: Adding "2002-02-25" "1" "DailySet1-2" "/spampl-0.21.tar.gz"
add_glob (a*) -> ^a[^/]*$
add_file: Looking for "a[^/]*[/]*$"
add_file: Converted path="a[^/]*[/]*$" to path_on_disk="/a[^/]*[/]*$"
add_file: Pondering ditem->path="/."
add_file: Pondering ditem->path="/amanda-2.4.3b2.tar.gz"
add_file: (Successful) Added /amanda-2.4.3b2.tar.gz
add_file: Pondering ditem->path="/spampl-0.21.tar.gz"
amrecover: stream_client_privileged: connected to 172.16.16.17.10083
amrecover: stream_client_privileged: our side is 0.0.0.0.866
amrecover: try_socksize: receive buffer size is 65536
Started amidxtaped with arguments "6 -h -p file:/usr/local/amanda/backup/tape2
panda.baobab.home ^/home/olivier$ 20020225"
Exec'ing /bin/tar with arguments:
tar
-xpGvf
-
./amanda-2.4.3b2.tar.gz
amrecover: pid 1739 finish time Mon Feb 25 09:15:26 2002
* /tmp/amanda/amindexd.20020225091318.debug
amindexd: debug 1 pid 1740 ruid 34 euid 34 start time Mon Feb 25 09:13:18 2002
amindexd: version 2.4.3b2
< 220 panda AMANDA index server (2.4.3b2) ready.
> SECURITY USER root
bsd security: remote host panda.baobab.home user root local user backup
amandahosts security check passed
< 200 Access OK
> DATE 2002-02-25
< 200 Working date set to 2002-02-25.
> SCNF DailySet1
< 200 Config set to DailySet1.
> HOST panda.baobab.home
< 200 Dump host set to panda.baobab.home.
> DISK /
< 501 No index records for disk: /. Invalid?
> DISK root
< 501 No index records for disk: root. Invalid?
> DISK /home/olivier
- 2002-02-25 1 DailySet1-2 1
- 2002-02-24 0 DailySet1-0 1
< 200 Disk set to /home/olivier.
> OISD /
Uncompress command: /bin/gzip -dc
'/usr/local/amanda/etc/amanda/DailySet1/index/panda.baobab.home/_home_olivier/20020225_1.gz'
2>/dev/null | sort >
'/usr/local/amanda/etc/amanda/DailySet1/index/panda.baobab.home/_home_olivier/20020225_1'
f
/usr/local/amanda/etc/amanda/DailySet1/index/panda.baobab.home/_home_olivier/20020225_1
< 200 "/" is a valid directory
> OLSD /
Uncompress command: /bin/gzip -dc
'/usr/local/amanda/etc/amanda/DailySet1/index/panda.baobab.home/_home_olivier/20020224_0.gz'
2>/dev/null | sort >
'/usr/local/amanda/etc/amanda/DailySet1/index/panda.baobab.home/_home_olivier/20020224_0'
< 200- Opaque list of /
< 201- 2002-02-25 1 DailySet1-2 /
< 201- 2002-02-25 1 DailySet1-2 /amanda-2.4.3b2.tar.gz
< 201- 2002-02-25 1 DailySet1-2 /spampl-0.21.tar.gz
< 200 Opaque list of /
> QUIT
Removing index file:
/usr/local/amanda/etc/amanda/DailySet1/index/panda.baobab.home/_home_olivier/20020224_0
Removing index file:
/usr/local/amanda/etc/amanda/DailySet1/index/panda.baobab.home/_home_olivier/20020225_1
< 200 Good bye.
amindexd: pid 1740 finish time Mon Feb 25 09:15:26 2002
* /tmp/amanda/amidxtaped.20020225091519.debug
amidxtaped: debug 1 pid 1748 ruid 34 euid 34 start time Mon Feb 25 09:15:19 2002
amidxtaped: version 2.4.3b2
> SECURITY USER root
bsd security: remote host panda.baobab.home user root local user backup
amandahosts security check passed
> 6
amrestore_nargs=6
> -h
> -p
> file:/usr/local/amanda/backup/tape2
> panda.baobab.home
> ^/home/olivier$
> 20020225
Ready to execv amrestore with:
path = /usr/local/amanda/sbin/amrestore
argv[0] = "amrestore"
argv[1] = "-h"
argv[2] = "-p"
argv[3] = "file:/usr/local/amanda/backup/tape2"
argv[4] = "panda.baobab.home"
argv[5] = "^/home/olivier$"
argv[6] = "20020225"
amrestore: 0: skipping start of tape: date 20020225 label DailySet1-2
amrestore: 1: restoring panda.baobab.home._home_olivier.20020225.1
amrestore: 2: reached end of information
amidxtaped: amrestore terminated normally with status: 1
Rewinding tape: done
amidxtaped: pid 1748 finish time Mon Feb 25 09:15:20 2002
* amadmin ( works with fqdn too )
panda:/home/olivier# amadmin DailySet1 info panda /home/olivier
Current info for panda.baobab.home /home/olivier:
Stats: dump rates (kps), Full: -1.0, -1.0, -1.0
Incremental: 1133.0, -1.0, -1.0
compressed size, Full: 65.0%,-100.0%,-100.0%
Incremental: 99.4%,-100.0%,-100.0%
Dumps: lev datestmp tape file origK compK secs
0 20020224 DailySet1-0 1 20 13 0
1 20020225 DailySet1-2 1 1140 1133 1
EOT :)