Package: bacula
Version: 1.36.3-2
Severity: normal

Hi,

Bacula breaks down while sending "loaded drive 0" parameter, so several comands 
fail.

Thanks,
Yann

>From bconsole:
*update
Update choice:
     1: Volume parameters
     2: Pool from resource
     3: Slots from autochanger
Choose catalog item to update (1-3): 3
Automatically selected Storage: Exabyte
Connecting to Storage daemon Exabyte at pollux:9103 ...
3301 Issuing autochanger "loaded drive 0" command.
3991 Bad autochanger "loaded drive 0" command: ERR=Child exited with code 1.
3306 Issuing autochanger "list" command.
No Volumes found to label, or no barcodes.

It seems that Bacula doesn't find a tape in the drive.
There is however a tape in the drive.
The command works ok manually with /etc/bacula/scripts/mtx-changer
Please tell me if you need other configuration parameters from my setup.

# /etc/bacula/scripts/mtx-changer /dev/sg2 loaded drive 0
1

# mtx status
  Storage Changer /dev/changer:1 Drives, 10 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag =
      Storage Element 1:Empty:VolumeTag=
      Storage Element 2:Full :VolumeTag=
      Storage Element 3:Full :VolumeTag=
      Storage Element 4:Full :VolumeTag=
      Storage Element 5:Full :VolumeTag=
      Storage Element 6:Full :VolumeTag=
      Storage Element 7:Full :VolumeTag=
      Storage Element 8:Full :VolumeTag=
      Storage Element 9:Full :VolumeTag=
      Storage Element 10:Full :VolumeTag=

Extract of /etc/bacula/bacula-sd.conf:

Device {
  Name = Exabyte
  Media Type = Tape
  Archive Device = /dev/st0
  LabelMedia = yes;
  Random Access = No;
  AutomaticMount = yes;
  RemovableMedia = yes;
  AlwaysOpen = yes;
  Autochanger = Yes
  Changer Device = /dev/sg2
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

# tapeinfo -f /dev/sg2
Product Type: Medium Changer
Vendor ID: 'EXABYTE '
Product ID: 'VXA 1x10 1U     '
Revision: 'A108'
Attached Changer: No
SerialNumber: '000086003524'
TapeAlert[15]:Undefined.
SCSI ID: 0
SCSI LUN: 0
Ready: yes

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-drbd-1
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages bacula depends on:
ii  bacula-console                1.36.3-2   Network backup, recovery and verif
ii  bacula-director-pgsql [bacula 1.36.3-2   Network backup, recovery and verif
ii  bacula-fd                     1.36.3-2   Network backup, recovery and verif
ii  bacula-sd                     1.36.3-2   Network backup, recovery and verif
ii  debconf                       1.4.59     Debian configuration management sy

bacula recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to