PDA

View Full Version : New to Amanda



jrmontg
October 25th, 2006, 01:09 PM
I followed the guide at http://www.zmanda.com/quick-backup-setup.html

but it left out how to restore. I think that you use amrestore but on what system? Server or Client? What user? root or amandabackup?

I have this
$amadmin DailySet1 find proxy
2006-10-25 15:17:54 proxy /etc/samba 1 DailySet1-08 1 -- OK

So I think I backed up ok.

Please help

ppragin
October 25th, 2006, 01:28 PM
Hello,

You have to use the "amrecover" utility and run it as root from the client. Are you using
Amanda 2.5.1?

Please look at this link:
http://wiki.zmanda.com/index.php/Amrecover

jrmontg
October 25th, 2006, 01:36 PM
Yes I am using 2.5.1. When I run
amrecover -s backup -t DailySet1
I get

AMRECOVER Version 2.5.1p1. Contacting server on backup ...
NAK: amindexd: invalid service

paddy
October 25th, 2006, 01:40 PM
Since you are using 2.5.1p1, please take a look at Amanda wik (http://wiki.zmanda.com/index.php/Configuring_bsd/bsdudp/bsdtcp_authentication)i
and make the configuration file changes (xinetd/.amandahosts)

Paddy

ppragin
October 25th, 2006, 01:41 PM
Try this:
amrecover DailySet1 -t backup -s backup

jrmontg
October 25th, 2006, 01:50 PM
paddy:

In my /var/lib/amanda/.amandahosts on server side I have:
proxy root amindexd amidxtaped

on client:
backup amandabackup amandabackup amdump


ppragin
I get
[root@proxy tmp]# amrecover DailySet1 -t backup -s backup
AMRECOVER Version 2.5.1p1. Contacting server on backup ...
NAK: amindexd: invalid service

ppragin
October 25th, 2006, 01:55 PM
Hello,

1. Please look in the /etc/xinetd.d directory on the server for amanda related files and post their contents.
2. Also look in the /etc/services file on the server and post any amanda related lines from that file.
3. Run "ps -ef | grep xinetd" from the server and post the output

Thanks

jrmontg
October 25th, 2006, 02:02 PM
1. [root@backup xinetd.d]# ls | grep amanda
amandaclient
amandaserver
2. amanda 10080/tcp # amanda backup services
amanda 10080/udp # amanda backup services
3. root 2851 1 0 Aug02 ? 00:00:00 xinetd -stayalive -pidfile /var/run/xinetd.pid

ppragin
October 25th, 2006, 02:08 PM
Please post the content of these files:
amandaclient
amandaserver

jrmontg
October 25th, 2006, 02:12 PM
amandaclient
service amanda
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = amandabackup
group = disk
groups = yes
server = /usr/lib/amanda/amandad
}

amandaserver
service amandaidx
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = amandabackup
group = disk
groups = yes
server = /usr/lib/amanda/amindexd
}
service amidxtape
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = amandabackup
group = disk
groups = yes
server = /usr/lib/amanda/amidxtaped
}

ppragin
October 25th, 2006, 02:18 PM
1. Remove amandaclient and amandaserver files
2. Create new file "/etc/xinetd.d/amandaserver" with these contents:
service amanda
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = amandabackup
group = disk
groups = yes
server = /usr/lib/amanda/amandad
server_args = -auth=bsdtcp amdump amindexd amidxtaped
}

3. restart xinetd "service xinetd restart"
4. check /var/log/messages for errors
4. try running amrecover again

jrmontg
October 25th, 2006, 04:18 PM
Now I am getting:

[root@proxy ~]# amrecover DailySet1 -t backup -s backup
AMRECOVER Version 2.5.1p1. Contacting server on backup ...
[request failed: timeout waiting for ACK]

jrmontg
October 25th, 2006, 05:08 PM
there were no errors in /var/log/messages

paddy
October 25th, 2006, 06:46 PM
What version of amanda are you running on the server? If you are running
2.5.0 or older version, you will have to use amoldrecover.

Logs for amrecover/amoldrecover can be found in /tmp/amanda/client directory on the Amanda client.

Thanks,
Paddy

jrmontg
October 26th, 2006, 05:53 AM
I downloaded this:
amanda-backup_server-2.5.1p1-1.rhel4.i386.rpm

Logs:
from /tmp/amanda/client/DailySet1
amrecover: debug 1 pid 4243 ruid 0 euid 0: start at Thu Oct 26 08:31:34 2006
Could not open conf file "/etc/amanda/amanda-client.conf": No such file or directory
Could not open conf file "/etc/amanda/DailySet1/amanda-client.conf": No such file or directory
amrecover: debug 1 pid 4243 ruid 0 euid 0: rename at Thu Oct 26 08:31:34 2006
security_getdriver(name=bsd) returns 0x80e0e0
security_handleinit(handle=0x8cc4a78, driver=0x80e0e0 (BSD))
amrecover: bind_portrange2: Try port 841: Available - Success
amrecover: dgram_bind: socket bound to 0.0.0.0.841
amrecover: dgram_send_addr(addr=0xbff1c8d0, dgram=0x80f084)
amrecover: (sockaddr_in *)0xbff1c8d0 = { 2, 10080, 10.0.0.13 }
amrecover: dgram_send_addr: 0x80f084->socket = 3
amrecover: dgram_send_addr(addr=0xbff1c670, dgram=0x80f084)
amrecover: (sockaddr_in *)0xbff1c670 = { 2, 10080, 10.0.0.13 }
amrecover: dgram_send_addr: 0x80f084->socket = 3
amrecover: dgram_send_addr(addr=0xbff1c670, dgram=0x80f084)
amrecover: (sockaddr_in *)0xbff1c670 = { 2, 10080, 10.0.0.13 }
amrecover: dgram_send_addr: 0x80f084->socket = 3
security_seterror(handle=0x8cc4a78, driver=0x80e0e0 (BSD) error=timeout waiting for ACK)
security_close(handle=0x8cc4a78, driver=0x80e0e0 (BSD))

ppragin
October 26th, 2006, 06:29 AM
1. Create this file on the client /etc/amanda/amanda-client.conf:


conf "DailySet1" # your config name
index_server "backup" # your amindexd server
tape_server "backup" # your amidxtaped server
#tapedev "" # your tape device
# auth - authentication scheme to use between server and client.
# Valid values are "bsd", "bsdudp", "bsdtcp" and "ssh".
# Default: [auth "bsdtcp"]
auth "bsdtcp"

2. run amrecover

jrmontg
October 26th, 2006, 06:41 AM
I get this:
[root@proxy etc]# amrecover
AMRECOVER Version 2.5.1p1. Contacting server on backup ...
220 backup AMANDA index server (2.5.1p1) ready.
Setting restore date to today (2006-10-26)
200 Working date set to 2006-10-26.
200 Config set to DailySet1.
200 Dump host set to proxy
Use the setdisk command to choose dump disk to recover
amrecover>

ppragin
October 26th, 2006, 06:57 AM
its working

jrmontg
October 26th, 2006, 07:04 AM
So it is, thank you for the help.

jrmontg
October 26th, 2006, 09:33 AM
That seems to be working fine now on the linux side. But again following the guide I am trying to setup to backup my windows XP machine.

From the email log:

FAILURE AND STRANGE DUMP SUMMARY:
jmontgomery-xp //jmontgomery-xp/MyDocuments RESULTS MISSING
planner: ERROR Request to jmontgomery-xp failed: timeout waiting for ACK

Can you help with this?

paddy
October 26th, 2006, 10:20 AM
Did you try running amcheck with Windows XP machine? Are you running
Amanda client on Windows XP machine or using Samba?

Paddy

jrmontg
October 26th, 2006, 12:04 PM
Samba.

I will try to install the client now...

When I tried with the client it says Version 2.5.1p1 Contacting server on backup.. request failed; backup: ssh could not resolve hostname

I think I like the samba idea better becuase you don't have to install software.

jrmontg
October 27th, 2006, 06:03 AM
Still can't get the amrecover client to work. I keep getting that the request failed because ssh could not resolve hostname for backup. I added backup to my hosts file on windows and I still get the message.

Also samba is working because I can mount the drive on the server to the shared drive on the windows machine.

Grubsy
November 15th, 2006, 07:21 PM
Have you added a user to the windows xp pc that has access to the files?

also have you created the amandapass file?

more /etc/amandapass
//WINDOWS_PC/backup_share windows_user%password WORKGROUP

windows_user must have access to the share & files you want to backup


I have this in my disklist

backupserver.mydomain.com //WINDOWS_PC/backup_share comp-user-tar


Hope this is of some help