Hello all. I am having a small problem with Amanda 2.4.3b2, Samba 2.2.5 &
FreeBSD 4.6.
Backups of the FreeBSD host itself, battlebridge, and the linux client (so
far just the one) succeed just fine. Amcheck reports on them, dumps them
and can restore without difficulty. However, when attempting to connect to
the NT server, I am met with the ubiquitous "selfcheck request timed out.
Host down?" message.
I have read through the docs/SAMBA file and have perused this list in the
hopes of find the error, but thus far have been less than fruitful.
I compiled Amanda from the BSD ports collection (I was surprised to find a
beta in there) specifying the port to use smbclient and a few other items.
I had installed Samba from the ports collection immediately prior to
installing Amanda.
The user I was utilising to connect to the NT server is administrator and
the appropriate password. We are on an internal network here, with no
outside access to either the backup server or the NT server, so this was
thought to be safe enough and it was hoped would avoid issues of not having
the proper permissions on the NT shares. I have also tried a new user,
amanda and a new password. That also fails.
There are two shares, both on a secondary drive, in the NT server: Shared
and Home.
Amanda is in the operator and bin groups if that makes a difference - though
I wouldn't suspect it would make a difference when connecting to an NT
system.
My disklist file is:
battlebridge# more /usr/local/etc/amanda/acg/disklist
192.168.1.221 //corvette/Shared nocomp-user-gnutar 1
192.168.1.221 //corvette/Home nocomp-user-gnutar 1
battlebridge / comp-root
battlebridge /home comp-high
battlebridge /usr comp-high
battlebridge /var comp-high
192.168.1.229 / comp-root
192.168.1.229 /boot comp-high
192.168.1.229 /opt comp-high
192.168.1.229 /usr comp-high
192.168.1.229 /var comp-high
battlebridge#
The amandapass file:
battlebridge# more /etc/amandapass
#//Corvette/Shared administrator%password NEWPATHDSL
#//Corvette/Home administrator%password NEWPATHDSL
#//192.168.1.221/Shared administrator%password NEWPATHDSL
//192.168.1.221/Shared amanda%password NEWPATHDSL
//192.168.1.221/Home administrator%password NEWPATHDSL
#battlebridge //192.168.1.221/Shared password NEWPATHDSL
battlebridge#
Note the attempts at modifying the structure of this file - none of which
succeeded.
The IP address of the NT system has been added to the /etc/hosts file as we
do not have internal DNS running.
The arguments that were passed to make on Amanda build (via changes to the
Ports Makefile):
For the Server portion:
CONFIGURE_ARGS= --with-user=amanda --with-group=bin --with-fqdn
--with-buffered-dump \
--disable-libtool --with-smbclient --with-client
--with-amandahosts
For the Client portion:
CONFIGURE_ARGS= --with-user=amanda --with-group=bin --with-fqdn
--with-buffered-dump \
--disable-libtool --with-smbclient --with-amandahosts
I looked at the configure.log and noted that Amanda did indeed find the
correct path to the smbclient during the build: /usr/local/bin/smbclient
When smbclient is used to pull data across the wire and write directly to
tape, the dump succeeds. But Amanda appears to not be calling smbclient at
all, according to the debug files (it knows about the client, but smbclient
never seems to activate, unless I'm missing something obvious):
battlebridge# more amandad.20020718110827.debug
amandad: debug 1 pid 6472 ruid 1001 euid 1001 start time Thu Jul 18 11:08:27
2002
amandad: version 2.4.3b2
amandad: build: VERSION="Amanda-2.4.3b2"
amandad: BUILT_DATE="Fri Jul 12 13:04:36 CDT 2002"
amandad: BUILT_MACH="FreeBSD battlebridge.acg-solutions.net
4.6-RELEASE FreeBSD 4.6
-RELEASE #0: Tue Jun 11 06:14:12 GMT 2002
[EMAIL PROTECTED]:/usr/src/sys/comp
ile/GENERIC i386"
amandad: CC="cc"
amandad: paths: bindir="/usr/local/bin" sbindir="/usr/local/sbin"
amandad: libexecdir="/usr/local/libexec" mandir="/usr/local/man"
amandad: AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda"
amandad: CONFIG_DIR="/usr/local/etc/amanda" DEV_PREFIX="/dev/"
amandad: RDEV_PREFIX="/dev/r" DUMP="/sbin/dump"
amandad: RESTORE="/sbin/restore"
amandad: SAMBA_CLIENT="/usr/local/bin/smbclient"
amandad: GNUTAR="/usr/local/bin/gtar" COMPRESS_PATH="/usr/bin/gzip"
amandad: UNCOMPRESS_PATH="/usr/bin/gzip" MAILER="/usr/bin/Mail"
amandad: listed_incr_dir="/usr/local/var/amanda/gnutar-lists"
amandad: defs: DEFAULT_SERVER="battlebridge.acg-solutions.net"
amandad: DEFAULT_CONFIG="DailySet1"
amandad: DEFAULT_TAPE_SERVER="battlebridge.acg-solutions.net"
amandad: DEFAULT_TAPE_DEVICE="/dev/null" HAVE_MMAP HAVE_SYSVSHM
amandad: LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
amandad: AMANDA_DEBUG_DAYS=4 BSD_SECURITY USE_AMANDAHOSTS
amandad: CLIENT_LOGIN="amanda" FORCE_USERID HAVE_GZIP
amandad: COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
amandad: COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
got packet:
--------
Amanda 2.4 REQ HANDLE 001-80860808 SEQ 1027008508
SECURITY USER amanda
SERVICE selfcheck
OPTIONS ;
DUMP /var 0 OPTIONS |;bsd-auth;compress-best;index;
DUMP /usr 0 OPTIONS |;bsd-auth;compress-best;index;
DUMP /home 0 OPTIONS |;bsd-auth;compress-best;index;
DUMP / 0 OPTIONS |;bsd-auth;compress-fast;index;
--------
sending ack:
----
Amanda 2.4 ACK HANDLE 001-80860808 SEQ 1027008508
----
bsd security: remote host battlebridge.acg-solutions.net user amanda local
user amanda
amandahosts security check passed
amandad: running service "/usr/local/libexec/selfcheck"
amandad: sending REP packet:
----
Amanda 2.4 REP HANDLE 001-80860808 SEQ 1027008508
OPTIONS ;
OK /dev/ad0s1h
OK /dev/ad0s1g
OK /dev/ad0s1f
OK /dev/ad0s1a
OK /sbin/dump executable
OK /sbin/restore executable
OK /usr/bin/gzip executable
OK /etc/dumpdates read/writable
OK /dev/null read/writable
OK /tmp/amanda has more than 64 KB available.
OK /tmp/amanda has more than 64 KB available.
OK /etc has more than 64 KB available.
----
amandad: got packet:
----
Amanda 2.4 ACK HANDLE 001-80860808 SEQ 1027008508
----
amandad: pid 6472 finish time Thu Jul 18 11:08:27 2002
battlebridge#
And:
battlebridge# more amcheck.20020718153617.debug
amcheck: debug 1 pid 6711 ruid 1001 euid 0 start time Thu Jul 18 15:36:17
2002
amcheck: dgram_bind: socket bound to 0.0.0.0.760
amcheck: pid 6711 finish time Thu Jul 18 15:36:47 2002
battlebridge#
This group has been a huge help in the past and I'm hoping someone can point
out my error. I have not included the amanda.conf file here since it
doesn't seem to me that the error would be there. I'm leaning towards a
problem with how amcheck/amdump calls smbclient.
If anyone can assist, it will be very much appreciated.
--
Kyle Allender [EMAIL PROTECTED]
W4270 Hwy 16 [EMAIL PROTECTED]
Rio, WI 53960 [EMAIL PROTECTED]
920.992.6448 [EMAIL PROTECTED]
515.334.4073 office
515.210.5027 cell