Amanda-Users

amanda client on a linksyss NSLU box

2006-08-21 11:38:17
Subject: amanda client on a linksyss NSLU box
From: "Marc O'Brien" <mobrien AT sgul.ac DOT uk>
To: amanda-users AT amanda DOT org
Date: Mon, 21 Aug 2006 08:32:26 -0700 (PDT)
Hi

I've been struggling to get an amanda client running on an unslung linksys
NSLU box (wonderful little things).

Amanda client and server versions: 2.5.0p2 (also tried2.5.1b2)
Server Solaris: 9
client details: Linux <client name> 2.4.22-xfs #1 Thu Feb 3 22:51:32 CST
2005 armv5b unknown unknown GNU/Linux

unslung 3.18beta
with compilation packages and gnu tar, bison, yacc etc installed


The main compile problem was (apparently) genversion.c truncating lines when
producing version.c.

    size_t len = strlen(string) + 1;

    new_len = strlen(var)
              + SIZEOF("=\\\"")
              + strlen(val)
              + SIZEOF("\\\"")
              + 1;

    new_len = strlen(var)
              + SIZEOF("=")
              + strlen(number)
              + 1;
    v_len = SIZEOF("Amanda-") + strlen(v) + 1;

Changing +1 to +3 allowed compilation and created version.c correctly.

THE PROBLEM
+++++++++++

The server backs up it's own disks OK.

amcheck works fine with client daemons started by inetd (for some reason
xinetd failed to call amandad, and xinetd has no idea that it had failed),
had some problems trying to sort out the new service entries (didn't amandad
used to cover everything), and an FQDN problem as one box is on a different
domain setting.

but amdump gives

FAILURE AND STRANGE DUMP SUMMARY:
  client.sghms.ac.uk  sdb2  lev 0  FAILED [missing result for sdb2 in
client.sghms.ac.uk response]

The client file systems are ext2 and ext3 (therefore no raw directory,
although the configuration of version does seem to think there is a /dev/r),
disklist specifications have been tried as /dev/<filename> and <path>, both
fail with the same error messages.

I include exerts from  the logs, Does any one have any ideas?
Thanks for any input

Marc O'Brien


THE LOGS
++++++++


SERVER side

>From /opt/Amanda/etc/amanda/<conf>/amdump.1
===========================================

planner: time 0.158: got partial result for host <server> disk c1t1d0s7: 0
-> -2K, 1 -> -2K, -1 -> -2K
planner: time 0.158: got partial result for host <server> disk c1t1d0s0: 0
-> -2K, 1 -> -2K, -1 -> -2K
planner: time 0.168: got result for host client.sghms.ac.uk disk sdb2: 0 ->
-2K, -1 -> -2K, -1 -> -2K
error result for host client.sghms.ac.uk disk sdb2: missing estimate


>From /tmp/amanda/server/<conf>/plannerxxxxx.debug
=================================================
planner: time 0.124: no feature set from host client.sghms.ac.uk


CLIENT side

>From /tmp/amanda/amandad on client.sghms.ac.uk
===============================================

<<<<<
SERVICE sendsize
OPTIONS
features=fffffeff9ffeffffff7f;maxdumps=1;hostname=client.sghms.ac.uk;
GNUTAR sdb2  0 1970:1:1:0:0:0 -1
>>>>>
amandad: time 0.069: creating new service: sendsize
OPTIONS
features=fffffeff9ffeffffff7f;maxdumps=1;hostname=client.sghms.ac.uk;
GNUTAR sdb2  0 1970:1:1:0:0:0 -1

amandad: time 0.069: sending ACK pkt:
<<<<<
>>>>>
amandad: dgram_send_addr(addr=0xbffff874, dgram=0x40068eb0)
amandad: (sockaddr_in *)0xbffff874 = { 2, 925, <server IP> }
amandad: dgram_send_addr: 0x40068eb0->socket = 0
amandad: time 0.100: sending REP pkt:
<<<<<
>>>>>
amandad: dgram_send_addr(addr=0xbffff900, dgram=0x40068eb0)
amandad: (sockaddr_in *)0xbffff900 = { 2, 925, <server IP> }
amandad: dgram_send_addr: 0x40068eb0->socket = 0
amandad: time 0.102: dgram_recv(dgram=(nil), timeout=1074237084,
fromaddr=0x3c)
amandad: (sockaddr_in *)0x40078e9c = { 2, 925, <server IP> }
amandad: time 0.102: received ACK pkt:
<<<<<
>>>>>
security_close(handle=0x16f38, driver=0x400677b0 (BSD))
amandad: time 30.796: pid 7761 finish time Tue Aug  8 14:55:45 2006

N.B.
===

Also tried with 'estimate server' in
server:/opt/Amanda/etc/amanda/<config>/amanda.conf

With

estimate server

entry in amanda.conf

Implies a connection error

SERVER
======

These dumps were to tape test2.
The next tape Amanda expects to use is: a new tape.

FAILURE AND STRANGE DUMP SUMMARY:
  client.sghms.ac.uk  /share/flash/conf  lev 0  FAILED [cannot read header:
got 0 instead of 32768]
  client.sghms.ac.uk  /share/flash/conf  lev 0  FAILED [cannot read header:
got 0 instead of 32768]
  client.sghms.ac.uk  /share/flash/conf  lev 0  FAILED [too many dumper
retry: "[couldn't open MESG or INDEX streams]"]
 


CLIENT
======
 
SERVICE sendbackup
OPTIONS features=fffffeff9ffeffffff7f;hostname=client.sghms.ac.uk;
GNUTAR /share/flash/conf  0 1970:1:1:0:0:0 OPTIONS |;bsd-auth;index;
>>>>>
amandad: time 13.972: creating new service: sendbackup
OPTIONS features=fffffeff9ffeffffff7f;hostname=client.sghms.ac.uk;
GNUTAR /share/flash/conf  0 1970:1:1:0:0:0 OPTIONS |;bsd-auth;index;

amandad: time 13.983: sending ACK pkt:
<<<<<
>>>>>
amandad: dgram_send_addr(addr=0xbffff844, dgram=0x40068eb0)
amandad: (sockaddr_in *)0xbffff844 = { 2, 726, <server IP> }
amandad: dgram_send_addr: 0x40068eb0->socket = 0
amandad: time 14.008: sending REP pkt:
<<<<<
>>>>>
amandad: dgram_send_addr(addr=0xbffff8d0, dgram=0x40068eb0)
amandad: (sockaddr_in *)0xbffff8d0 = { 2, 726, <server IP> }
amandad: dgram_send_addr: 0x40068eb0->socket = 0
amandad: time 14.003: dgram_recv(dgram=(nil), timeout=1074237084,
fromaddr=0x3c)
amandad: (sockaddr_in *)0x40078e9c = { 2, 726, <server IP> }
amandad: time 14.003: received ACK pkt:
<<<<<
>>>>>
security_close(handle=0x168e0, driver=0x400677b0 (BSD))
amandad: time 29.847: pid 8004 finish time Wed Aug  9 16:55:18 2006


-- 
View this message in context: 
http://www.nabble.com/amanda-client-on-a-linksyss-NSLU-box-tf2140952.html#a5909099
Sent from the Amanda - Users forum at Nabble.com.


<Prev in Thread] Current Thread [Next in Thread>
  • amanda client on a linksyss NSLU box, Marc O'Brien <=