Bacula-users

Re: [Bacula-users] One Library LTO3 and LTO4 drives

2009-09-26 22:10:56
Subject: Re: [Bacula-users] One Library LTO3 and LTO4 drives
From: "Watson, Joe" <ISJOEWAT AT oklahomacounty DOT org>
To: <bacula-users AT lists.sourceforge DOT net>
Date: Sat, 26 Sep 2009 20:54:09 -0500
run the btape test to see if all those drives are working. there are some tests 
you can run from mtx to see if your autochanger is working as well. 

to run btape test type btape -c /usr/bin/bacula/bacula-sd.conf 
/dev/(yourdriveshere) then it enters into a program and you can type test if 
they are valid. and i think its also a way to test your config. you have to 
shutdown bacula director and storage dameon to run that i believe. 

http://www.lllf.uam.es/~antonio/documentos/bacula/dev-manual/Testing_Your_Tape_Drive.html#SECTION004021000000000000000


if you have lsscsi installed its easy to find out what the drives are. lsscsi 
-g gives you a output thats useable. having already installed these i assume 
you know all of this already. i am having a similar problem with the lto 4 
drive i have. 

let me know if you get it working i would like to see how. i have been working 
on mine for sometime trying to get it working. i hope i was of any help

joe watson


-----Original Message-----
From: Mitch Anderson [mailto:mitch AT metauser DOT net]
Sent: Sat 9/26/2009 1:38 PM
To: bacula-users AT lists.sourceforge DOT net
Subject: [Bacula-users] One Library LTO3 and LTO4 drives
 
Hi,

I've been looking around for a while... and I haven't found anything to
answer a question...
I'm running bacula-3.0.1 x86_64.
I have an HP MSL8096, which has two LTO3 drives in in and we just got a new
LTO4 drive.

I'm getting an error when trying to use the new LTO4 drive with the LTO4
tapes... (trying to run label barcodes)
Sending label command for Volume "GFZ452L4" Slot 46 ...
3301 Issuing autochanger "loaded? drive 2" command.
3302 Autochanger "loaded? drive 2", result: nothing loaded.
3304 Issuing autochanger "load slot 46, drive 2" command.
3992 Bad autochanger "load slot 46, drive 2": ERR=Child died from signal 15:
Termination.
Results=Program killed by Bacula (timeout)


Currently my bacula-sd.conf looks like:

Autochanger {
  Name = Autochanger
  Device = lto3-1
  Device = lto3-2
  Device = lto4-3
  Changer Command = "/usr/lib64/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg1
}

Device {
  Name = lto3-1                      #
  Drive Index = 0
  Media Type = LTO3
  Archive Device = /dev/nst0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
}

Device {
  Name = lto3-2                      #
  Drive Index = 1
  Media Type = LTO3
  Archive Device = /dev/nst1
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
}

Device {
  Name = lto4-3
  Drive Index = 2
  Media Type = LTO4
  Archive Device = /dev/nst2
  AutomaticMount = yes;
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
}

And my Storage definitions from the bacula-dir.conf:
# Definition of file storage device
Storage {
  Name = MSL-LTO3
  Address = <host>
  SDPort = 9103
  Password = "Cv70F6pf1t6pBopT4vQOnigDrR0v3LT3Cgkiyj"
  Device = "Autochanger"
  Media Type = LTO3
  Autochanger = yes
  Maximum Concurrent Jobs = 20
}

Storage {
  Name = MSL-LTO4
  Address = <host>
  SDPort = 9103
  Password = "Cv70F6pf1t6pBopT4vQOnigDrR0v3LT3Cgkiyj"
  Device = "Autochanger"
  Media Type = LTO4
  Autochanger = yes
  Maximum Concurrent Jobs = 20
}

Is this the proper way to handle two different tape types?  or is my error
caused by my config or just an issue with the drive?

Thanks for any information,
Mitch Anderson



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
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>