*#  ##  # New alert command in Bacula 9.0.0#  #  Note: you must have the
sg3_utils (rpms) or the#  #        sg3-utils (deb) installed on your
system.#  #        and you must set the correct control device that#
#        corresponds to the Archive Device#  Control Device = /dev/sg?? #
must be SCSI ctl for /dev/nst0#  Alert Command =
"/etc/bacula/scripts/tapealert %l"##  ##  # Enable the Alert command only
if you have the mtx package loaded#  # Note, apparently on some systems,
tapeinfo resets the SCSI controller#  #  thus if you turn this on, make
sure it does not reset your SCSI#  #  controller.  I have never had any
problems, and smartctl does#  #  not seem to cause such problems.#  ##
Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"#  If you have
smartctl, enable this, it has more info than tapeinfo#  Alert Command = "sh
-c 'smartctl -H -l error %c'"*
*#}*

I'm using Ubuntu 18.04.1 with Bacula 9.0.6 from the main repo.  I'd like to
enable the above alerts from the sample bacula-sd.conf but can't because my
system is assigning random device names after each reboot so that
/dev/nst0, /dev/nst1, etc. can be any /dev/sg* number.  I looked into
creating a udev rule for the drives but there's no output from the control
device that can be uniquely identified (DEVPATH can't be used in a udev
rule I've found out):









*> udevadm info -n /dev/sg1 --query=allP:
/devices/pci0000:00/0000:00:02.0/0000:05:00.0/0000:06:01.0/0000:09:00.0/0000:0a:01.0/0000:0b:00.0/host2/rport-2:0-0/target2:0:0/2:0:0:0/scsi_generic/sg1N:
sg1E: DEVNAME=/dev/sg1E:
DEVPATH=/devices/pci0000:00/0000:00:02.0/0000:05:00.0/0000:06:01.0/0000:09:00.0/0000:0a:01.0/0000:0b:00.0/host2/rport-2:0-0/target2:0:0/2:0:0:0/scsi_generic/sg1E:
MAJOR=21E: MINOR=1E: SUBSYSTEM=scsi_generic*

Is there another way do make this work?  There's a more recent firmware for
my tape library, a Dell ML6000, that I've held off installing.  Do you
think a new firmware might allow the sg driver to provide more output?
Should I quit worrying about getting alerts working since the tape library
itself has a similar capability or is it important for Bacula to function
correctly?

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

Reply via email to