We recently replaced a working LTO5 + Scalar i40 jukebox with an IBM
LTO8 tape + Scalar i3 jukebox. The controller and all software remained
the same. I am suspecting a configuration problem and would greatly
appreciate guidance.

When I tried to label the new tapes it loaded the first one fine, labled
it fine, then failed miserably to unload it. I tried adding the "Offline
On Unmount" command to the config (see below) but that didn't help.

I then tried running
 /usr/bin/sudo /sbin/btape -c /etc/bacula/bacula-sd.conf /dev/tape/0
which worked fine until it got to the 'test the autochanger' part of the
test,
then failed just as miserably. The results are different (I/O errors) if
the unmount
setting is there, but it fails either way.

I'll attach two script files that show various btape runs. Note that between
the tests I did the following reset:
   sudo mt -f /dev/tape/0 rewoffl
   sudo mtx -f /dev/changer/0 unload 1
   sudo mtx -f /dev/changer/0 load 1

Nothing interesting shows up in the system logs.

The IBM ITDT suite works fine testing these devices.

Software:
CentOS Stream release 8
kernel 4.18.0-408.el8.x86_64

: || lvd@harrier ~ [125] ; lsmod | grep -i sas
mpt3sas               335872  0
raid_class             16384  1 mpt3sas
scsi_transport_sas     45056  1 mpt3sas

> The version of Bacula you are using
9.0.6 (from CentOS bacula RPMs)

Hardware:
[0:0:0:0]    tape    IBM      ULTRIUM-HH8      P381  /dev/st0
[0:0:0:1]    mediumx QUANTUM  Scalar i3-i6     291G  /dev/sch0

The controller is:
01:00.0 Serial Attached SCSI controller: Broadcom / LSI SAS3008 PCI-Express
Fusion-MPT SAS-3 (rev 02)

The tape & jukebox are the only devices attached to this controller.

> bacula-sd.conf entries:
Autochanger {
  Name = LTO8
  Device = Drive-1
  Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/changer/0
}
# Drive Type: LTO8  Media Type:Ultrium8
Device {
  Name = Drive-1
  Drive Index = 0
  Media Type = Ultrium8
  Archive Device = /dev/tape/0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Alert Command = "/usr/libexec/bacula/tapealert %l"
  Control Device = /dev/tape/0
  Spool Directory = /bkup0/bacula/Drive-1
  Maximum Job Spool Size = 1288490188800 #1.2 TB in bytes
  Maximum Spool Size = 1288490188800 #1.2 TB in bytes
  Maximum Network Buffer Size = 65536
  Maximum Concurrent Jobs = 1
  Autoselect=yes
#  ## added for LTO8
#  Offline On Unmount = yes
}

/dev/changer/0 is a link to /dev/sg4
/dev/tape/0 is a link to /dev/nst0

> Have you run the btape “test” command?

Yes. It runs for a while then starts kicking out errors. See the attached
files for the results.

nomad

Attachment: btape_with_unmount.out
Description: Binary data

Attachment: btape_no_unmount.out
Description: Binary data

_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to