[nycbug-talk] why I posted the job for FreeBSD/Bacula/SpectraLogic. (LONG!)

Freeman, Joshua j
Sun Aug 15 20:31:36 EDT 2004


I've lost a couple of weeks now trying to get bacula to work with the tape library we have.

it's a spectralogic 10000 library with 2 ait2 drives and 20 tape slots...

Here, in some detail, are the steps I've taken so far..

1)- configure bacula (it's already installed mind you, but I figured I'll start 'clean')

pawpaw# ./configure --with-mysql

...

(lots of config output cut)

...


configure: WARNING: resolv.h: present but cannot be compiled
configure: WARNING: resolv.h: check for missing prerequisite headers?
configure: WARNING: resolv.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf at gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for resolv.h... yes

...
(more config output cut)
...

Configuration on Sat Aug 14 09:39:45 EDT 2004:

  Host:                       i386-unknown-freebsd4.10 -- freebsd 4.10-RELEASE
  Bacula version:             1.34.6 (28 July 2004)
  Source code location:       .
  Install binaries:           /sbin
  Install config files:       /etc/bacula
  Scripts directory:          /etc/bacula
  Working directory:          /var/bacula/working
  PID directory:              /var/run
  Subsys directory:           /var/run/subsys
  C Compiler:                 gcc 2.95.4
  C++ Compiler:               g++ 2.95.4
  Compiler flags:              -g -O2 -pthread
  Linker flags:                
  Libraries:                  -pthread  -lxpg4
  Statically Linked Tools:    no
  Statically Linked FD:       no
  Statically Linked SD:       no
  Statically Linked DIR:      no
  Statically Linked CONS:     no
  Database type:              MySQL
  Database lib:               -L/usr/local/lib/mysql -lmysqlclient_r -lz

  Job Output Email:           root at localhost
  Traceback Email:            root at localhost
  SMTP Host Address:          localhost

  Director Port:              9101
  File daemon Port:           9102
  Storage daemon Port:        9103

  Director User:              
  Director Group:             
  Storage Daemon User:        
  Storage DaemonGroup:        
  File Daemon User:           
  File Daemon Group:          

  SQL binaries Directory      /usr/local/bin

  Large file support:         yes
  Bacula conio support:       yes -ltermcap
  readline support:           no 
  TCP Wrappers support:       no
  ZLIB support:               yes
  enable-smartalloc:          yes
  enable-gnome:               no 
  enable-wx-console:          no
  client-only:                no
  ACL support:                no

2) make bacula...

pawpaw# make

...
make output cut
...

3) make install

...
make install output cut
...

==== Make of filed is good ====
 
/usr/bin/install -c -m 0754 bacula-fd /sbin/bacula-fd
  ==> Found existing bacula-fd.conf, installing new conf file as bacula-fd.conf.new
/usr/bin/install -c -m 640 bacula-fd.conf /etc/bacula/bacula-fd.conf.new
==== Make of console is good ====
 
/usr/bin/install -c -m 0754 bconsole /sbin/bconsole
  ==> Found existing bconsole.conf, installing new conf file as bconsole.conf.new
/usr/bin/install -c -m 640 bconsole.conf /etc/bacula/bconsole.conf.new
if test -f static-bconsole; then  /usr/bin/install -c -m 0754 static-bconsole /sbin/static-bconsole;  fi
/usr/bin/install -c -m 0754 create_mysql_database /etc/bacula/create_mysql_database
/usr/bin/install -c -m 0754 update_mysql_tables /etc/bacula/update_mysql_tables
/usr/bin/install -c -m 0754 make_mysql_tables /etc/bacula/make_mysql_tables
/usr/bin/install -c -m 0754 grant_mysql_privileges /etc/bacula/grant_mysql_privileges
/usr/bin/install -c -m 0754 drop_mysql_tables /etc/bacula/drop_mysql_tables
/usr/bin/install -c -m 0754 drop_mysql_database /etc/bacula/drop_mysql_database
/usr/bin/install -c -m 0754 create_bacula_database /etc/bacula/create_bacula_database
/usr/bin/install -c -m 0754 update_bacula_tables /etc/bacula/update_bacula_tables
/usr/bin/install -c -m 0754 make_bacula_tables /etc/bacula/make_bacula_tables
/usr/bin/install -c -m 0754 grant_bacula_privileges /etc/bacula/grant_bacula_privileges
/usr/bin/install -c -m 0754 drop_bacula_tables /etc/bacula/drop_bacula_tables
/usr/bin/install -c -m 0754 drop_bacula_database /etc/bacula/drop_bacula_database
/usr/bin/install -c -m 0754 make_catalog_backup /etc/bacula/make_catalog_backup
/usr/bin/install -c -m 0754 delete_catalog_backup /etc/bacula/delete_catalog_backup
==== Make of dird is good ====
 
/usr/bin/install -c -m 0754 bacula-dir /sbin/bacula-dir
  ==> Found existing bacula-dir.conf, installing new conf file as bacula-dir.conf.new
/usr/bin/install -c -m 640 bacula-dir.conf /etc/bacula/bacula-dir.conf.new
if  test -f /etc/bacula/query.sql; then  /bin/mv -f /etc/bacula/query.sql /etc/bacula/query.sql.save;  fi
/usr/bin/install -c -m 644 query.sql /etc/bacula/query.sql
===== Make of stored is good ====
 
/usr/bin/install -c -m 0754 bacula-sd /sbin/bacula-sd
/usr/bin/install -c -m 0754 bls /sbin/bls
/usr/bin/install -c -m 0754 bextract /sbin/bextract
/usr/bin/install -c -m 0754 bcopy /sbin/bcopy
/usr/bin/install -c -m 0754 bscan /sbin/bscan
/usr/bin/install -c -m 0754 btape /sbin/btape
  ==> Found existing bacula-sd.conf, installing new conf file as bacula-sd.conf.new
/usr/bin/install -c -m 640 bacula-sd.conf /etc/bacula/bacula-sd.conf.new
/usr/bin/install -c -m 0754 bsmtp /sbin/bsmtp
chmod 755 /sbin/bsmtp
/usr/bin/install -c -m 0754 dbcheck /sbin/dbcheck


4) so, then we cd-ed into platforms/freebsd and typed...

pawpaw# c++ -g -Wall -c tapetest.c
pawpaw# c++ -g -Wall tapetest.o -o tapetest
pawpaw# ./tapetest /dev/sa0
*rewind
Rewound /dev/sa0
*rawfill



5) ... 24 hours later we see:

weof_dev
Wrote EOF to /dev/sa0
Write failed.  Last block written=17043522. stat=-1 ERR=Invalid argument
*rewind
Rewound /dev/sa0
*scan
Starting scan at file 0
Bad status from read -1. ERR=Invalid argument
*quit


so...

6) pawpaw# c++ -g -Wall -pthread -c tapetest.c
pawpaw# c++ -g  -Wall -pthread tapetest.o -o tapetest
pawpaw# ./tapetest /dev/sa0
*rewind
Rewound /dev/sa0
*rawfill
Begin writing blocks of 64512 bytes.

7) and 24 hours after that we see:

weof_dev
Wrote EOF to /dev/sa0
Write failed.  Last block written=17043522. stat=-1 ERR=Invalid argument
*rewind
Rewound /dev/sa0
*scan
Starting scan at file 0
Bad status from read -1. ERR=Invalid argument
*quit


So.. if you've gotten this far, do you have any idea what's going wrong?  I'm lost...

:-)

J.

Joshua S. Freeman
Director, Information Technology, NYBG
v: 718 817 8937 m: 347 392 2560
jfreeman at nybg dot org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nycbug.org/pipermail/talk/attachments/20040815/c0fa6053/attachment.html 



More information about the talk mailing list