Re: amrestore problems, could not stat file
2003-12-12 12:42:32
Here is my amanda.conf file:
org "DailySet1" # your organization name for reports
mailto "amanda" # space separated list of operators at your site
dumpuser "amanda" # the user to run dumps under
inparallel 4 # maximum dumpers that will run in parallel
netusage 600 Kbps # maximum net bandwidth for Amanda, in KB per
sec
dumpcycle 2 weeks # the number of days in the normal dump cycle
runspercycle 10 # the number of amdump runs in dumpcycle days
tapecycle 15 tapes # the number of tapes in rotation
# 4 weeks (dumpcycle) times 5 tapes per week
(just
# the weekdays) plus a few to handle errors that
# need amflush and so we do not overwrite the
full
# backups performed at the beginning of the
previous
# cycle
bumpsize 20 Mb # minimum savings (threshold) to bump level 1 ->
2
bumpdays 1 # minimum days at each level
bumpmult 4 # threshold = bumpsize * bumpmult^(level-1)
etimeout 300 # number of seconds per filesystem for
estimates.
runtapes 1 # number of tapes to be used in a single run of
amdump
tpchanger "chg-multi" # the tape-changer glue script
tapedev "file:/backup/" # the no-rewind tape device to be used
changerfile "/etc/amanda/DailySet1/chg-multi.conf"
changerdev "/dev/null"
tapetype HARD-DISK # what kind of tape it is (see tapetypes
below)
define tapetype HARD-DISK{
comment "20GB Hard disk"
length 20000 mbytes
}
labelstr "^DailySet1[0-9][0-9]*$" # label constraint regex: all
tapes must match
holdingdisk hd1 {
comment "main holding disk"
directory "/var/tmp" # where the holding disk is
use 290 Mb
chunks
}
infofile "/var/lib/amanda/DailySet1/curinfo" # database filename
logdir "/var/lib/amanda/DailySet1" # log directory
indexdir "/var/lib/amanda/DailySet1/index" # index directory
define tapetype QIC-60 {
comment "Archive Viper"
length 60 mbytes
filemark 100 kbytes # don't know a better value
speed 100 kbytes # dito
}
define tapetype DEC-DLT2000 {
comment "DEC Differential Digital Linear Tape 2000"
length 15000 mbytes
filemark 8 kbytes
speed 1250 kbytes
}
define tapetype DLT {
comment "DLT tape drives"
length 20000 mbytes # 20 Gig tapes
filemark 2000 kbytes # I don't know what this means
speed 1536 kbytes # 1.5 Mb/s
}
define tapetype SURESTORE-1200E {
comment "HP AutoLoader"
length 3900 mbytes
filemark 100 kbytes
speed 500 kbytes
}
define tapetype EXB-8500 {
comment "Exabyte EXB-8500 drive on decent machine"
length 4200 mbytes
filemark 48 kbytes
speed 474 kbytes
}
define tapetype EXB-8200 {
comment "Exabyte EXB-8200 drive on decent machine"
length 2200 mbytes
filemark 2130 kbytes
speed 240 kbytes
}
define tapetype HP-DAT {
comment "DAT tape drives"
# data provided by Rob Browning <rlb AT cs.utexas DOT edu>
length 1930 mbytes
filemark 111 kbytes
speed 468 kbytes
}
define tapetype DAT {
comment "DAT tape drives"
length 1000 mbytes # these numbers are not accurate
filemark 100 kbytes # but you get the idea
speed 100 kbytes
}
define tapetype MIMSY-MEGATAPE {
comment "Megatape (Exabyte based) drive through Emulex on Vax 8600"
length 2200 mbytes
filemark 2130 kbytes
speed 170 kbytes # limited by the Emulex bus interface,
ugh
}
--exclude-from="filename"
define dumptype global {
comment "Global definitions"
}
define dumptype always-full {
global
comment "Full dump of this filesystem always"
compress none
priority high
dumpcycle 0
}
define dumptype root-tar {
global
program "GNUTAR"
comment "root partitions dumped with tar"
compress none
index
exclude list "/etc/amanda/DailySet1/exclude.gtar"
priority low
}
define dumptype user-tar {
root-tar
comment "user partitions dumped with tar"
priority medium
}
define dumptype high-tar {
root-tar
comment "partitions dumped with tar"
priority high
}
define dumptype comp-root-tar {
root-tar
comment "Root partitions with compression"
compress client fast
}
define dumptype comp-user-tar {
user-tar
compress client fast
}
define dumptype holding-disk {
global
comment "The master-host holding disk itself"
holdingdisk no # do not use the holding disk
priority medium
}
define dumptype comp-user {
global
comment "Non-root partitions on reasonably fast machines"
compress client fast
priority medium
}
define dumptype nocomp-user {
comp-user
comment "Non-root partitions on slow machines"
compress none
}
define dumptype comp-root {
global
comment "Root partitions with compression"
compress client fast
priority low
}
define dumptype nocomp-root {
comp-root
comment "Root partitions without compression"
compress none
}
define dumptype comp-high {
global
comment "very important partitions on fast machines"
compress client best
priority high
}
define dumptype nocomp-high {
comp-high
comment "very important partitions on slow machines"
compress none
}
define dumptype nocomp-test {
global
comment "test dump without compression, no /etc/dumpdates recording"
compress none
record no
priority medium
}
define dumptype comp-test {
nocomp-test
comment "test dump with compression, no /etc/dumpdates recording"
compress client fast
}
define interface local {
comment "a local disk"
use 1000 kbps
}
define interface eth0 {
comment "10 Mbps ethernet"
use 400 kbps
}
On Thu, 2003-12-11 at 19:29, Frank Smith wrote:
> --On Thursday, December 11, 2003 15:21:19 -0500 jessica blackburn <jblackburn
> AT hirzel DOT com> wrote:
>
> > I am very new to this amanda system and am trying to run amrecover.
> > here is what I start with:
> >
> > [root@hccweb RECOVER]# /usr/sbin/amrecover -C DailySet1 -s hccweb
> > AMRECOVER Version 2.4.3. Contacting server on hccweb ...
> > 220 hccweb AMANDA index server (2.4.3) ready.
> > 200 Access OK
> > Setting restore date to today (2003-12-11)
> > 200 Working date set to 2003-12-11.
> > 200 Config set to DailySet1.
> > 200 Dump host set to hccweb.
> > Trying disk / ...
> > Trying disk rootfs ...
> > Can't determine disk and mount point from $CWD '/var/tmp/RECOVER'
> > amrecover> sethost hccweb
> > 200 Dump host set to hccweb.
> > amrecover> setdisk /etc
> > Scanning /var/tmp...
> > RECOVER: skipping cruft directory, perhaps you should delete it.
> > 200 Disk set to /etc.
> > amrecover> add syslog.conf
> > Added /syslog.conf
> > amrecover> extract
> >
> > Extracting files using tape drive file:/backup/ on host localhost.
> > The following tapes are needed: DailySet109
> >
> > Restoring files into directory /var/tmp/RECOVER
> > Continue [?/Y/n]? Y
> >
> > Extracting files using tape drive file:/backup/ on host localhost.
> > Load tape DailySet109 now
> > Continue [?/Y/n/t]? Y
> > EOF, check amidxtaped.debug file on localhost.
> > amrecover: short block 0 bytes
> > UNKNOWN file
> > amrecover: Can't read file header
> > extract_list - child returned non-zero status: 1
> > Continue [?/Y/n]? n
> > amrecover> exit
> > 200 Good bye.
> >
> > When I check the amidxtaped debug file this is what I get:
> >
> > [root@hccweb amanda]# cat amidxtaped.20031211145718.debug
> > amidxtaped: debug 1 pid 3715 ruid 33 euid 33: start at Thu Dec 11
> > 14:57:18 2003
> > amidxtaped: version 2.4.3
> > amidxtaped: time 0.000: > SECURITY USER root
> > amidxtaped: time 0.000: bsd security: remote host hccweb user root local
> > user amanda
> > amidxtaped: time 0.000: amandahosts security check passed
> > amidxtaped: time 0.000: > 6
> > amidxtaped: time 0.000: amrestore_nargs=6
> > amidxtaped: time 0.000: > -h
> > amidxtaped: time 0.000: > -p
> > amidxtaped: time 0.000: > file:/file1
> > amidxtaped: time 0.000: > ^hccweb$
> > amidxtaped: time 0.000: > ^/etc$
> > amidxtaped: time 0.000: > 20031210
> > amidxtaped: time 0.000: Ready to execv amrestore with:
> > path = /usr/sbin/amrestore
> > argv[0] = "amrestore"
> > argv[1] = "-h"
> > argv[2] = "-p"
> > argv[3] = "file:/file1"
> > argv[4] = "^hccweb$"
> > argv[5] = "^/etc$"
> > argv[6] = "20031210"
> > amrestore: could not stat file:/file1
> > amidxtaped: time 0.004: amrestore terminated normally with status: 2
> > amidxtaped: could not stat file:/file1
> > amidxtaped: time 0.004: could not stat file:/file1
> > amidxtaped: time 0.004: pid 3715 finish time Thu Dec 11 14:57:18 2003
> >
> >
> > any suggestions??
>
> It looks to me like Amanda thinks you are using files instead of
> tapes (or the restore needs to be done from the holdingdisk), and
> that it needs /file1 which doesn't seem to exist.
> What does your amanda.conf look like?
>
> Frank
>
>
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Jukebox on SGI, Brian Cuttler
- amrestore problems, could not stat file, jessica blackburn
- Re: amrestore problems, could not stat file, Frank Smith
- Using 2.5, Dana Bourgeois
- Re: amrestore problems, could not stat file,
jessica blackburn <=
- Re: amrestore problems, could not stat file, Frank Smith
- Re: amrestore problems, could not stat file, Paul Bijnens
- RE: amrestore problems, could not stat file, Josh Welch
- Re: amrestore problems, could not stat file, Jon LaBadie
|
|
|