Hi!
First at all, I'm not in situation of need for real to restore from tapes,
but I'm the stage where I want to verify that I can restore from tape. But
I can not.
Second, I wrote this message *after* I was doing tests for myself for more
than 5 that incudes backups and restore attempts and *after* I was reading
all the mails on this list archive regarding this subject, documentations,
etc.
Third: is about doing a full backup (always-full) of the content of / on
localhost. There are no stations to backup.
The problem is that I cannot restore even a single file:
[root@server test]# pwd
/root/test
(but the error is exactly the same if I'm working in the /, for a file
deleted for testing restore)
[root@server test]# amrecover my_backup
AMRECOVER Version 2.4.2p1. Contacting server on localhost ...
220 server AMANDA index server (2.4.2p1) ready.
200 Access OK
Setting restore date to today (2001-04-07)
200 Working date set to 2001-04-07.
200 Config set to my_backup.
200 Dump host set to server.mydomain.com.
$CWD '/root/test' is on disk '/' mounted at '/'.
200 Disk set to /.
/root/test
WARNING: not on root of selected filesystem, check man-page!
amrecover> cd /etc
/etc
amrecover> add crontab
Added /etc/crontab
amrecover> extract
Extracting files using tape drive /dev/nst0 on host localhost.
The following tapes are needed: backup_tape_3
Restoring files into directory /root/test
Continue? [Y/n]: y
Load tape backup_tape_3 now
Continue? [Y/n]: 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]: y
amrecover> quit
200 Good bye.
Before displaying "EOF, check...", I saw in /var/log/messages:
Apr 7 08:23:29 server kernel: dpti2o: dpt_buildmsg: scsi opcode 0x11 not supported.
Last time when I've tried I got other errors, instead:
Apr 7 08:11:49 server kernel: scsi : aborting command due to timeout : pid 12235369,
scsi0, channel 0, id 4, lun 0 Rezero Unit 00 00 00 00 00
Apr 7 08:11:49 server kernel: SCSI host 0 abort (pid 12235369) timed out - resetting
Apr 7 08:11:49 server kernel: SCSI bus is being reset for host 0 channel 0.
Apr 7 08:11:50 server kernel: SCSI host 0 channel 0 reset (pid 12235369) timed out -
trying harder
Apr 7 08:11:50 server kernel: SCSI bus is being reset for host 0 channel 0.
Apr 7 08:11:52 server kernel: st0: Error with sense data: [valid=0] Info fld=0x0,
Current st09:00: sense key Unit Attention
Apr 7 08:11:52 server kernel: Additional sense indicates Power on, reset,or bus
device reset occurred
Apr 7 08:11:56 server kernel: st0: Error with sense data: [valid=0] Info fld=0x0,
Current st09:00: sense key Not Ready
Apr 7 08:11:56 server kernel: Additional sense indicates Logical unit is in process
of becoming ready
Apr 7 08:11:59 server kernel: st0: Error with sense data: [valid=0] Info fld=0x0,
Current st09:00: sense key Not Ready
[...]
/tmp/amanda/amidxtaped.debug is looking like this:
amidxtaped: debug 1 pid 17395 ruid 33 euid 33 start time Sat Apr 7
08:23:02 2001
amidxtaped: version 2.4.2p1
> SECURITY USER root
bsd security: remote host server user root local user amanda
amandahosts security check passed
> 6
amrestore_nargs=6
> -h
> -p
> /dev/nst0
> server.mydomain.com
> ^/$
> 20010407
Ready to execv amrestore with:
path = /usr/sbin/amrestore
argv[0] = "amrestore"
argv[1] = "-h"
argv[2] = "-p"
argv[3] = "/dev/nst0"
argv[4] = "server.mydomain.com"
argv[5] = "^/$"
argv[6] = "20010407"
amrestore: 0: skipping start of tape: date 20010407 label bak_tape_3
amrestore: fast-forward: Input/output error
^^^^^^^^ this was the error I was searched for on this list archive
amidxtaped: amrestore terminated normally with status: 2
Rewinding tape: done
amidxtaped: pid 17395 finish time Sat Apr 7 08:23:30 2001
Backup was finished correctly, according to mail received from amanda:
Date: Sat, 7 Apr 2001 07:55:22 -0400
From: Backup Server <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: MY_ORGANISATION AMANDA MAIL REPORT FOR April 7, 2001
These dumps were to tape backup_tape_3.
The next tape Amanda expects to use is: a new tape.
[snip]
DUMP SUMMARY:
DUMPER STATS TAPER STATS
HOSTNAME DISK L ORIG-KB OUT-KB COMP% MMM:SS KB/s MMM:SS KB/s
-------------------------- --------------------------------- ------------
server.mydom / 0 10021121002112 -- 6:102708.1 6:102706.5
(brought to you by Amanda version 2.4.2p1)
Disklist is looking like this:
server.mydomain.com / always-full
and configuration file like this (part of it):
define dumptype global {
comment "Global definitions"
index yes
}
define dumptype always-full {
global
comment "Full dump of this filesystem always"
compress none
priority high
dumpcycle 0
index yes
}
My server is an dual Intel PIII/800 Mhz, with RedHat 6.2 and Kernel
2.2.14-5.0smp. Module for st is loaded:
[root@server /root]# lsmod
Module Size Used by
eepro100 16080 1 (autoclean)
st 24656 0
dpt_i2o 97248 5
Tape unit is:
Vendor: OnStream Model: ADR50 Drive Rev: 2.20
Type: Sequential-Access ANSI SCSI revision: 02
in amanda.conf if configred like these:
tapetype ADR50
define tapetype ADR50 {
comment "OnStream 25/50 Backup Tape"
length 21056 mbytes
filemark 0 kbytes
speed 1579 kbytes
}
One messages found on archive list is the following (part of it):
From: "John R. Jackson" <[EMAIL PROTECTED]>
Date: Fri Feb 16, 2001 0:50am
Subject: Re: AMRECOVER: NEED HELP!!!
>amrestore: fast-forward: Errore di input/output
Assuming I can translate this properly :-), this means the drive reported
an I/O error to the OS (who reported it to Amanda who logged it).
In other words, the tape could not be read.
But all may not be lost. Here are some things to try:
* Find out what file on the tape holds the image you want. Use amtoc
or "amadmin <config> find <host> <disk>". Once you know that,
rewind the tape do a single fsf to that file and try the amrecover
again if the fsf works.
* Try retensioning the tape ("mt retension" or something like that
-- you'll have to look it up in your OS documentation), if the drive
supports that.
* Try cleaning the drive.
It did not work with no one of these options.
What I would like to know:
1) Is there mystake of mine in configuration files?
2) Is there any other options in configuration files that I could try?
3) How is possible to have succesfull backups but no restore possible?
Are my files *really* backed up or not?
4) Is something wrong with the tape drive? Should I change it?
5) Is something wrong with my kernel or with my Amanda?
6) What else should I try in such a situation?
6) What else I can do?
Notes:
1) I work remotelly and there is no way to do operations that require to
be in front of the server
2) I've tryed also with root-tar instead of always-full and I got the
same result(s).
Thank you in advance,
Radu
--
Radu Filip
Network Administrator @ Technical University of Iasi
[EMAIL PROTECTED] Information Technology and Communication Center
http://socrate.tuiasi.ro/ [EMAIL PROTECTED] | http://www.ccti.tuiasi.ro/