Bacula-users

[Bacula-users] Dell TL2000 library control

2009-06-11 05:18:24
Subject: [Bacula-users] Dell TL2000 library control
From: Eric Belhomme <eric.belhomme AT eve-team DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 11 Jun 2009 11:15:30 +0200
Hi all,

I'm currently trying to setup a backup system with bacula and a Dell
TL2000 LTO4 library.

My Bacula server is a Debian Lenny install with 2.6.26-2-amd64 Debian
stock kernel. I backported Bacula 3.0.1 to Lenny from the "Experimental"
Debian repository.

The library is correctly recognized :

burp:/etc/bacula# dmesg|grep " 6:0" | cut -c 16-
scsi 6:0:0:0: Sequential-Access IBM   ULT3580-HH4    89B1 PQ: 0 ANSI: 3
scsi 6:0:0:1: Medium Changer    IBM   3573-TL        7.40 PQ: 0 ANSI: 5
scsi 6:0:1:0: Sequential-Access IBM   ULT3580-HH4    89B1 PQ: 0 ANSI: 3
scsi 6:0:1:1: Medium Changer    IBM   3573-TL        7.40 PQ: 0 ANSI: 5
st 6:0:0:0: Attached scsi tape st0
st 6:0:0:0: st0: try direct i/o: yes (alignment 4 B)
st 6:0:1:0: Attached scsi tape st1
st 6:0:1:0: st1: try direct i/o: yes (alignment 4 B)
ch 6:0:0:1: Attached scsi changer ch0
ch 6:0:1:1: Attached scsi changer ch1
st 6:0:0:0: Attached scsi generic sg3 type 1
ch 6:0:0:1: Attached scsi generic sg4 type 8
st 6:0:1:0: Attached scsi generic sg5 type 1
ch 6:0:1:1: Attached scsi generic sg6 type 8

The mtx script works well :

burp:/etc/bacula# /etc/bacula/scripts/mtx-changer /dev/sg4 list
0 /dev/nst0 0
1:BK0001L4
2:BK0004L4
5:BK0002L4
9:BK0003L4
12:CL0001L4

I setted-up bacula-sd as bellow :

Autochanger {
  Name = lib-tl2000-1
  Device = tape-burp-LTO4-1
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg4
}

Device {
  Name = tape-burp-LTO4-1
  Drive Index = 0
  Media Type = LTO4
  Archive Device = /dev/nst0
  AutomaticMount = yes;
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Alert Command = "sh -c '/usr/sbin/smartctl -H -l error %c'"
}

Autochanger {
  Name = lib-tl2000-2
  Device = tape-burp-LTO4-2
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg6
}

Device {
  Name = tape-burp-LTO4-2
  Drive Index = 0
  Media Type = LTO4
  Archive Device = /dev/nst1
  AutomaticMount = yes;
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Alert Command = "sh -c '/usr/sbin/smartctl -H -l error %c'"
}

but I can't handle the lib from bconsole :

*update slots
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
The defined Storage resources are:
     1: filer-burp-storage
     2: tape-burp-lto4-1-storage
     3: tape-burp-lto4-2-storage
Select Storage resource (1-3): 2
Connecting to Storage daemon tape-burp-lto4-1-storage at
burp.eve:9103 ...
3306 Issuing autochanger "slots" command.
Device "tape-burp-LTO4-1" has 0 slots.
No slots in changer to scan.

So What's wrong in my config ??? This worked with bacula 2.4 !

The final idea is to handle backups with one drive, and duplicate tapes
with the other drive. If possible, I would do that in only one job, but
I don't know how to do that... I guess it is possible with bacula 3 ? 

Note that I can configure the TL2000 to handle 1 or 2 "logical
libraries" :
- on 1 logical library mode, the library reports 2 drives an 1
autochanger lib,
- on 1 logical library mode, the library reports 2 autochangers, each
has one drive
I wondered the 2 logical lib is better suited for what I intend to do,
but maybe am I wrong ?

Thanks,

-- 
Rico

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>