Bacula-users

[Bacula-users] bscan fails: cannot find device in config file

2013-02-21 00:09:59
Subject: [Bacula-users] bscan fails: cannot find device in config file
From: Michael Stauffer <mgstauff AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 21 Feb 2013 00:06:55 -0500
Hi,

I'm at last ready to recreate my catalog after a disk failure. I've
posted previously about preparing for this. I've got a new fresh DB
setup but bscan is failing like so:

  ./bscan -V* -c /etc/bacula/bacula-sd.conf -v -s -m /dev/changer

  bscan: butil.c:278 Could not find device "/dev/changer" in config file
  /etc/bacula/bacula-sd.conf.

  20-Feb 23:50 bscan JobId 0: Fatal error: butil.c:168 Cannot find
  device "/dev/changer" in config file /etc/bacula/bacula-sd.conf.

I've also tried '/dev/sg6' and 'i500-changer' instead of
'/dev/changer', which are the system device name and the bacula device
alias, respectively.

I can succesfully access the changer and load/unload tapes like so:

  mtx -f /dev/changer ... (also with /dev/sg6)

I've looked in the archives and elsewhere and see quite a few posts
with this error, but no solutions for my situation.

I tried modiying the *-dir.conf file Storage resources as well per one
of the posts. The advice was to list Device as i500-changer and set
Autochanger = yes. But that didn't help either. That is, I modified
*-dir.conf and simply ran bscan again - would there be any other step
first?

Below are the relavent conf file sections. Note that I haven't changed
the conf files at all and backups were working previously, so
presumably the -sd.conf file was good enough for that. All that
happened is my database got toasted and I'm reconstructing it. The
rest of the install has stayed the same.

Thanks for any advice!!

-sd.conf:

Autochanger {
  Name = i500-changer
  Device = LTO5-0, LTO5-1
  Changer Command = "/usr/lib/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/changer
}

Device  {
  Name = LTO5-0
  Media Type = LTO-5
  Drive Index = 0
  Archive Device = /dev/st0
  Autochanger = yes
  AutomaticMount = yes
  AlwaysOpen = yes
  RemovableMedia = yes
  RandomAccess = no
  Maximum Changer Wait = 600 seconds;
  # Enable the Alert command only if you have the mtx package loaded
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  Maximum Spool Size = 60 G
  Maximum Job Spool Size = 12 G
  Spool Directory = /var/spool/bacula
}

Device  {
  Name = LTO5-1
  Media Type = LTO-5
  Drive Index = 1
  Archive Device = /dev/st1
  Autochanger = yes
  AutomaticMount = yes
  AlwaysOpen = yes
  RemovableMedia = yes
  RandomAccess = no
  Maximum Changer Wait = 600 seconds;
  # Enable the Alert command only if you have the mtx package loaded
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
  Maximum Spool Size = 60 G
  Maximum Job Spool Size = 12 G
  Spool Directory = /var/spool/bacula
}

-dir.conf (is this file actually relevant since bscan just asks for
the -sd.conf file?):

Storage {
  Name = i500-changer
  Address = bacula
  SDPort = 9103
  Password = "backuppassword"
  Device = i500-changer
  Autochanger = yes
  Media Type = LTO-5
  Maximum Concurrent Jobs = 8
}

# drive #1 (NOT #0)
Storage {
  Name = LT05-0-RAWDRIVE
  Address = bacula
  SDPort = 9103
  Password = "backuppassword"
  Device = i500-changer
  Autochanger = yes
  Media Type = LTO-5
  Maximum Concurrent Jobs = 2
}

# drive #0 (NOT #1)
Storage {
  Name = LTO5-1-RAWDRIVE
  Address = bacula
  SDPort = 9103
  Password = "backuppassword"
  Device = i500-changer
  Autochanger = yes
  Media Type = LTO-5
  Maximum Concurrent Jobs = 2
}


-Michael

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
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>