> There are symlinks for the archive devices but not the tape drive control
> devices which is what the tape alert commands need.

Ah I see, you need the /dev/sg* equivalent for the /dev/st* in use.

Can you copy the udev rules that produce symlinks for the autochangers
(see link in my last post) and tweak them so that they also work for the
drives themselves?  It looks like they pick up anything that's a 
"type 8" device so if you duplicate the rule but change it to whatever
type number that tape drives are, presumably you'd end up with the same
result.

> My only other idea is that maybe you could create a script that rewrites
> the bacula-sd.conf every boot by parsing the output of this command as it
> shows which sg* devices correspond to the st* ones:

If you wanted to do that it might be easier to have the script
create/update symlinks in /dev so you don't need to rewrite the Bacula
config file.  But this is pretty much what udev does already so better
to get that working if you can.

Cheers,
Adam.


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

Reply via email to