View Full Version : amrecover doesn't do anything

May 12th, 2011, 12:02 AM
Hello dear Community.

I have a big problem with Amanda 2.5.0p2.

I have installed it on my CentOS 5.6 System.
I have read every HowTo there is available for Ubuntu or CentOS or Debian. Nothing helps.

First of a little question. Is the Amanda Client needed to make working backups?
I'm only in the stage of trying to get Amanda running on the Server without backing up anything except the server.

I started with the guide:

So i have installed Amanda per yum.
I started by configuring the amanda.conf in /etc/amanda/DailySet1/
Most parts it was the allready available conf and i just changed minor things:
amanda.conf :

runspercycle 5
tapecycle 6 #just to be under rsc... shouldn't be important on testsystem
tpchanger "chg-disk"
tapedev "file:/dumps/amandatapes/DailySet1"

changerfile "/etc/amanda/DailySet1/changer"

tapetype DISK
# labelstr ~~ #testbackup name not important

define tapetype DISK {
comment "Backup to HD"
length 3072 mbytes

define dumptype example {
comment "example dumptype"
compress client fast # not sure if needed, without a client?
program "GNUTAR"
strategy standard
priority high


alpha /etc example

# alpha has been added to /etc/hosts as " alpha"

tapelist: #written by amanda, just so you now he did something on amdump

20110512 DailySet1-1 reuse
20110512 DailySet1-6 reuse (why amanda start with tape 6 and not 1?
0 DailySet1-5 reuse
0 DailySet1-4 reuse
0 DailySet1-3 reuse
0 DailySet1-2 reuse

/etc/amandahosts: amanda root


service amanda
#only_from =
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = amanda
group = disk
groups = yes
server = /usr/lib/amanda/amandad
server_args = -auth=bsd amdump amindexd amidxtaped


service amandaidx
socket_type = stream
protocol = tcp
wait = no
user = amanda
group = disk
groups = yes
server = /usr/lib/amanda/amindexd
disable = no


service amidxtape
socket_type = stream
protocol = tcp
wait = no
user = amanda
group = disk
groups = yes
server = /usr/lib/amanda/amidxtaped
disable = no

i created the necessary direcotrys under:

/dumps/amanda #i guess there are the holding disks


/dumps/amandatapes/DailySet1/slotX # x= 1-6

i labeled the tapes, loaded the first tape (slot1 linked to "data"),info created well and the i made a amdump. it did something but ended just with a prompt without any info.

so i wanted to restore the just written tape. I loaded slot 6 followed by
/usr/sbin/amrestore file:/dumps/amandatapes/DailySet1
and i tried just restoring the slot 6 to a test-directory:
/usr/sbin/amrestore file:/dumps/amandatapes/DailySet1 alpha /tmp/test #so i see somehing, well i hoped to see somehing...

console said:

amrestore: 1: reached end of tape: date 20110512

I hope that where all the needed info. Cause i need to copy everything per hand from System CentOS to my Windows Laptop where i write this post (*cheers* for console os's XD)

i amcheck'ed my config and it says:

Amanda Tape Server Host Check
Holding disk /dumps/amanda: 66654212 KB disk space available, using 66551812 KB
slot 1: read label 'DailySet1-1, date '20110512'
#i redumped sometime to see if something changes, so DailySet1-6 isn't #there anymore? I don't really know...
slot 2: read label 'DailySet1-2, date 'X' #so i guess this is the next tape amanda uses?

NOTE: skipping tape-writable test
Tape DailySet1-2 label ok
Note: info dir /etc/amanda/DailySet1/curinfo: does not exist
Note: it will created on the next run
Server check took 0.163 seconds

Amanda Backup Client Hosts Check
WARNING: alpha: selfcheck request failed: timeout waiting for ACK
Client check: 1 host checked in 30.009 seconds, 1 problem found

So is the Amanda Client needed? I don't know. And why can't it check itself?

Thanks in advance

mfg Chris

May 12th, 2011, 11:59 PM
So i somehow accomplished a working backup AND could restore it.
Sadly amrecover doesn't work, just amrestore. amrecover prompts after selecting a disk that there is no data to extract.. i dont know why.

i load the same tape manually and then amrestore it, unpack the *.0 file and bams, there are my backuped testfiles..

anyone a suggestion on why amrecover doesn't work?

May 13th, 2011, 08:49 AM
Can you provide complete amrecover session and errors?

May 17th, 2011, 04:52 AM
I will as soon as i reinstall amanda.

I just fragged my centOS system... (never ever mount your sda1 ... bad shit may happen)

Where do i find the logs to your demands?
Is there a session log? if not then i must type it manually... I keep you up. But could take some time( i hope i can work on amanda next week...)