-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

velociraptor wrote:
> I'm having a weird problem with my tests of bacula for our install.
> 
> For the most part everything was going well--my autochanger tests fine
> using btape as do the individual tapes drives, basic job defs, clients
> on two different OSes (Gentoo & RHEL AS 4), etc.  My director's OS is
> Gentoo 2.6.20-gentoo-r8 using unmasked Bacula 2.0.3.
> 
> In trying to get both tape drives to work without logically
> partitioning my tape library, I read in the archives that I needed to
> configure job definitions to use the autochanger rather than tape
> drives (which wasn't clear from the docs btw) in the director config,
> and also to have autochanger and tape drive entries for each drive in
> the sd config.
> 
> So I did that, but now I am getting an error where the test backups won't run:
> 
> 31-May 18:17 backup01-sd: monitor1-fd.2007-05-31_18.17.00 Fatal error:
>      Device "LTOdrv-2" with MediaType "LTO Autochanger" requested by
> DIR not found in SD Device resources.
> 31-May 18:17 backup01-dir: monitor1-fd.2007-05-31_18.17.00 Fatal error:
>      Storage daemon didn't accept Device "LTOdrv-2" because:
>      3924 Device "LTOdrv-2" not in SD Device resources.
> 
> However, both drives *are* in the SD resources and bacula-sd has been
> restarted (several) times since it was added (e.g. the conf file
> syntax is correct).
> 
> Here are my SD config stanzas:
> 
> Autochanger {
>   Name = DellTL4000
>   Description = "Dell TL4000 Tape Library"
>   Device = LTOdrv-1, LTOdrv-2
>   Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg2
> 
> }
> 
> Device {
>   Name = LTOdrv-1                      #
>   Drive Index = 0
>   Media Type = LTO-3
>   Archive Device = /dev/nst0
>   AutomaticMount = yes;               # when device opened, read it
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   RandomAccess = no;
>   Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg2
>   AutoChanger = yes
>   Maximum Spool Size = 32212254720
>   Spool Directory = /bacula_tmp
>   Alert Command = "sh -c 'smartctl -H -l error %c'"
> }
> 
> Device {
>   Name = LTOdrv-2
>   Drive Index = 1
>   Media Type = LTO-3
>   Archive Device = /dev/nst1
>   AutomaticMount = yes;               # when device opened, read it
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   RandomAccess = no;
>   Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg2
>   AutoChanger = yes
>   Maximum Spool Size = 32212254720
>   Spool Directory = /bacula_tmp
>   Alert Command = "sh -c 'smartctl -H -l error %c'"
> }
> 
> Definitions from bacula-dir:
> 
> JobDefs {
>   Name = "DefaultJob"
>   Type = Backup
>   Level = Incremental
>   FileSet = "Gentoo Full Set"
>   Schedule = "WeeklyCycle"
>   Storage = DellTL4000
>   SpoolData = yes
>   Messages = Standard
>   Pool = Default
>   Priority = 10
> }
> 
> Storage {
>   Name = DellTL4000
>   Description = "Dell TL4000 Tape Library"
>   Address = 10.1.1.100               # N.B. Use a fully qualified name here
>   SDPort = 9103
>   MediaType = "LTO Autochanger"
>   Device = LTOdrv-1, LTOdrv-2
>   Autochanger = yes
>   Password = "md5_hash"  # passwd for Storage daemon
> }
> 
> Storage {
>   Name = LTOdrv-1
>   Address = 10.1.1.100               # N.B. Use a fully qualified name here
>   SDPort = 9103
>   Password = "md5_hash"  # passwd for Storage daemon
>   Device = LTOdrv-1              # must be same as Device in Storage daemon
>   Media Type = LTO-3          # must be same as MediaType in Storage daemon
>   Autochanger = yes           # enable for autochanger device
> }
> 
> Storage {
>   Name = LTOdrv-2
>   Address = 10.1.1.100               # N.B. Use a fully qualified name here
>   SDPort = 9103
>   Password = "md5_hash"  # passwd for Storage daemon
>   Device = LTOdrv-2              # must be same as Device in Storage daemon
>   Media Type = LTO-3          # must be same as MediaType in Storage daemon
>   Autochanger = yes           # enable for autochanger device
> }
> 
> ====
> I've tried "Device = LTOdrv-1, LTOdrv-2" as well as one "Device =
> tape_name" for each.  There's no weird characters in the conf files.
> 
> Any suggestions?  I can santize and post up my full conf files to
> pastebin if folks would like to look at the whole shebang.
> 
> Also, I found that where bacula-dir *requires* a "MediaType" entry for
> the autochanger's Storage stanza, the "Autochanger" stanza in
> bacula-sd throws an error if you include a MediaType entry and the
> storage daemon will not start.  This is an inconsistancy IMO, and
> directly conflicts with the documentation as far as I have been able
> to find (I haven't exhaustively read the documentation, but think I've
> covered the most pertinent portions).
> 
> I appreciate any suggestions from folks, as testing was going well
> using just one tape drive and no autochanger definition.

I don't have an autochanger, and therefore have not gone through the
docs as exhaustively on this section as would be possible... however,
what jumps out at me is that you have LTO-3 as your media type
everywhere except on that one device. Basically Bacula is telling you
"I'm looking for a storage called this with this media type, and I'm not
finding it." I suspect if you change the DELLTL4000 Storage def to use
LTO-3, your problem will go away.

- --
 ---- _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer III
 |$&| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGYGVsmb+gadEcsb4RAi56AKDBVUpT1nrL54hkM2B5g7ZSt5cxgACg3Hu1
uDAJdqEVGf5NbugTiV7rwMk=
=VnEU
-----END PGP SIGNATURE-----
begin:vcard
fn:Ryan Novosielski
n:Novosielski;Ryan
org:UMDNJ;IST/AST
adr;dom:MSB C630;;185 South Orange Avenue;Newark;NJ;07103
email;internet:[EMAIL PROTECTED]
title:Systems Programmer III
tel;work:(973) 972-0922
tel;fax:(973) 972-7412
tel;pager:(866) 20-UMDNJ
x-mozilla-html:FALSE
version:2.1
end:vcard

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to