Hi all,

This is a rather lengthy e-mail, and there may be more than one
configuration error.  Please feel free to respond to only a piece of
it.  Configuration files and permissions info are at the end of the e-mail.

I have been trying to get bacula to work for almost three days now; I
have read through the manual and some mailing list archives, and I hope
I'm only missing something small.

I have a Dell PowerVault 128T autochanger with a single LTO1 drive and a
20 slot library; I'm using CentOS4.4 (RHEL4).

The Unix commands mt and mtx work without problems.  I also checked the
mtx-changer section of the manual
(http://dna.dbi.udel.edu/manuals/bacula/Autochanger_Support.html#SECTION0002915000000000000000)
and the commands work OK except for the following:

[EMAIL PROTECTED] bacula]# ./mtx-changer /dev/sg1 unload
usage: mtx-changer ctl-device command [slot archive-device drive-index]
        Insufficient number of arguments arguments given.
  Command expected 5 arguments

I have also checked the timing of the autochanger, and I don't seem to
need any additional wait or sleep statements to get the drive to work.

I have tested the drive using btape (test, autochanger, fill).  The
first two commands work OK, but the fill test does not properly change
tapes, even though it says it should be aware of the autochanger.  It
simply asks me to change the tape and then overwrites the first tape. 
Is this a problem with my configuration or is it a bug?

The FD authorization error below shows up each time I run the console,
even though I only have one client defined and the password is correct. 
Perhaps I'm misinterpreting the message?

bconsole session
============
You have messages.
*mess
16-Oct 10:57 pitfall-dir: *Console*.2006-10-16_10.53.36 Fatal error:
Unable to authenticate with File daemon. Possible causes:
Passwords or names not the same or
Maximum Concurrent Jobs exceeded on the FD or
FD networking messed up (restart daemon).
Please see http://www.bacula.org/rel-manual/faq.html#AuthorizationErrors
for help.
*mount
Automatically selected Storage: TapeChanger
Connecting to Storage daemon TapeChanger at
pitfall-s89.pcbi.upenn.edu:9103 ...
3905 Device "TapeStorage" (/dev/tape) open but no Bacula volume is mounted.
If this is not a blank tape, try unmounting and remounting the Volume.
*unmount
Automatically selected Storage: TapeChanger
3301 Issuing autochanger "loaded drive 0" command.
3991 Bad autochanger "loaded drive 0" command: ERR=Permission denied.
3002 Device "TapeStorage" (/dev/tape) unmounted.
*mount
Automatically selected Storage: TapeChanger
block.c:945 Read error at file:blk 0:0 on device "TapeStorage"
(/dev/tape). ERR=Input/output error.
block.c:945 Read error at file:blk 0:0 on device "TapeStorage"
(/dev/tape). ERR=Input/output error.
3902 Cannot mount Volume on Storage Device "TapeStorage" (/dev/tape)
because:
Requested Volume "" on "TapeStorage" (/dev/tape) is not a Bacula labeled
Volume, because: ERR=block.c:945 Read error at file:blk 0:0 on device
"TapeStorage" (/dev/tape). ERR=Input/output error.
3905 Device "TapeStorage" (/dev/tape) open but no Bacula volume is mounted.
If this is not a blank tape, try unmounting and remounting the Volume.
*label barcodes
Automatically selected Storage: TapeChanger
Connecting to Storage daemon TapeChanger at
pitfall-s89.pcbi.upenn.edu:9103 ...
3306 Issuing autochanger "slots" command.
Device "PowerVault128T" has 0 slots.
No slots in changer to scan.
*update slots
Automatically selected Storage: TapeChanger
Connecting to Storage daemon TapeChanger at
pitfall-s89.pcbi.upenn.edu:9103 ...
3306 Issuing autochanger "slots" command.
Device "PowerVault128T" has 0 slots.
No slots in changer to scan.


bacula-dir.conf section
===============
Storage {
  Name = TapeChanger
  Address = pitfall-s89.pcbi.upenn.edu
  SDPort = 9103
  Password = "xxx"
  Device = PowerVault128T
  Media Type = LTO
  Autochanger = Yes
}


bacula-sd.conf whole
===============
Storage {                             # definition of myself
  Name = pitfall-storage
  SDPort = 9103                  # Director's port
  WorkingDirectory = "/var/bacula"
  Pid Directory = "/var/run"
  Maximum Concurrent Jobs = 20
}

#
# List Directors who are permitted to contact Storage daemon
#
Director {
  Name = pitfall-dir
  Password = "xxx"
}

Device {
  Name = TapeStorage
  Device Type = Tape
  Media Type = LTO
  Autochanger = Yes
  Changer Device = /dev/sg1
  Removable media = Yes
  Always Open = Yes
  Automatic Mount = Yes
  Archive Device = "/dev/tape"
}

Autochanger {
  Name = PowerVault128T
  Device = TapeStorage
  Changer Device = "/dev/sg1"
  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
}

Messages {
  Name = Standard
  director = pitfall-dir = all
}


permissions
==========
[EMAIL PROTECTED] bacula]# ls -al /dev/tape
lrwxrwxrwx  1 root root 4 Oct 13 09:44 /dev/tape -> nst0

[EMAIL PROTECTED] bacula]# ls -al /dev/*st*
crw-rw----  1 root disk 9, 128 Oct 13 09:44 /dev/nst0
crw-rw----  1 root disk 9, 224 Oct 13 09:44 /dev/nst0a
crw-rw----  1 root disk 9, 160 Oct 13 09:44 /dev/nst0l
crw-rw----  1 root disk 9, 192 Oct 13 09:44 /dev/nst0m
crw-rw----  1 root disk 9,   0 Oct 13 09:44 /dev/st0
crw-rw----  1 root disk 9,  96 Oct 13 09:44 /dev/st0a
crw-rw----  1 root disk 9,  32 Oct 13 09:44 /dev/st0l
crw-rw----  1 root disk 9,  64 Oct 13 09:44 /dev/st0m

[EMAIL PROTECTED] bacula]#ls -al /var
drwxrwx---   3 bacula  bacula   4096 Oct 16 11:23 bacula
...  ... ...

[EMAIL PROTECTED] bacula]# id bacula
uid=101(bacula) gid=6(disk) groups=6(disk),102(bacula)


Thanks,
Alex

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to