First of all you should not use /dev/st0 as that is the rewinding tape
device but /dev/nst0 the non rewinding one for the normal backups.
Your actual problem is that Bareos keeps the device open so you cannot
run smartctl on either the /dev/st0 or /dev/nst0 but need if you
really want to use this alert reporting you need to use the SCSI
generic device. "lsscsi -g" should list the generic device that can
be used for the specific tape drive. You can either hardcode the device
name in the alert cmd or set the new "Diagnostic Device" option and use
the "%D" e.g. "smartctl -H -l error %D" The Alert Command however is
probably replaced by the tapealert plugin in the future as that captures
the real alerts and stores them in the database so you can at any time
see past alerts being reported by the drive. The idea is that such
functionality will eventually be included in the bareos-webui. We already
have statistics collection and this tapealert collecting in 14.2 and as
tapealert is a plugin it can use the same handle bareos has open for the
taoe device and as such has no need to use the generic SCSI device.
--
Marco van Wieringen marco.van...@bareos.com
Bareos GmbH & Co. KG Phone: +49-221-63069389
http://www.bareos.com
Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, M. Außendorf, J. Steffens,
P. Storz, M. v. Wieringen