Amanda-Users

Amanda client working on a linksys NSLU box

2006-08-23 06:12:06
Subject: Amanda client working on a linksys NSLU box
From: "Marc O'Brien" <mobrien AT sgul.ac DOT uk>
To: amanda-users AT amanda DOT org
Date: Wed, 23 Aug 2006 03:01:57 -0700 (PDT)
The Linksys NSLU is an amazing box, it's a little bigger than a pack of cards
and runs an embedded linux.
Has 2 USB 2.0 ports and can share 2 x 250GB external drives.

By default it shares to windows boxes using SAMBA, however it can be
'altered' to do many things...

See:

http://www.nslu2-linux.org/wiki/Main/HomePage

Mine is an NFS NAS file server, with SSH logins, SFTP, GNU gcc compilation
toolchain, and most of the standard
linux core utilities.

Amanda client and server versions: 2.5.0p2
Server details: Solaris 9, Sun Blade 1000 with Quantum DLT-V4 160/320 GB
tape drive
client details: Linux <client name> 2.4.22-xfs #1 Thu Feb 3 22:51:32 CST
2005 armv5b unknown unknown GNU/Linux

unslung version:        3.18beta

with compilation packages/toolchain, gnu tar, bison, yacc etc installed


The main compilation 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 created version.c correctly and allowed compilation.


make gives yacc errors with amrecover so build without 

./configure --prefix=/share/hdd/conf/opt/Amanda --with-user=mandy
--with-group=root 
--without-server --without-amrecover
--with-includes=/opt/armeb/armv5b-softfloat-linux/sys-include 
LDFLAGS=-L/share/hdd/data/armeb/armv5b-softfloat-linux/lib

Runtime libs not found so link the libraries to /lib

# ln -s /share/hdd/conf/opt/Amanda/lib/libamclient-2.5.0p2.so
/lib/libamclient-2.5.0p2.so
# ln -s /share/hdd/conf/opt/Amanda/lib/libamanda-2.5.0p2.so
/lib/libamanda-2.5.0p2.so

amcheck gave 0kb available in /tmp/amanda error so give quick fix (and write
script to recreate link
after reboots).

# ln -s /share/hdd/data/amanda /tmp/amanda

Client configuration files
==========================

xinetd fails silently so use inetd (used on server and client)

/etc/inetd.conf

amanda dgram udp wait mandy /share/hdd/conf/opt/Amanda/libexec/amandad
amandad

/opt/Amanda/.amandahosts

server.full.domain.name mandy amdump
-- 
View this message in context: 
http://www.nabble.com/Amanda-client-working-on-a-linksys-NSLU-box-tf2151485.html#a5941443
Sent from the Amanda - Users forum at Nabble.com.


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