Sorry about the /dev/sch0. I've written udev rules to use consistent names regardless of what udev does - I do use the /dev/sgX for changer identification. If you've rebooted your system, the output from lsscsi -g may have changed. You still need the Drive Index line in your bacula-sd.conf .
Ahhh - bacula-sd runs as the bacula user. Did you add bacula to the tape group? Patti On 11/5/18, 1:34 PM, "William Muriithi" <will...@perasotech.com> wrote: Hi Patti, > Use /dev/sch0, not /dev/sg2. Bear in mind, udev is not your friend. If you ever add another tape drive to your library or expand your device fabric, these device references will/can change with every system boot. As is, the /dev/sgX references can change with reboots, but if you only have one changer and one drive, the /dev/sch0 and /dev/nst0 devices should remain static. He seem to have the same problem too https://unix.stackexchange.com/questions/193472/interacting-with-tape-library-on-centos-7-via-mtx Hmm, it doesn't seem to live /dev/sch0. I agree with you that using /dev/sgX isn't reliable, but when I made the change suggested above, it failed with the error below: Tape block granularity is 1024 bytes. btape: butil.c:290-0 Using device: "/dev/nst0" for writing. 05-Nov 13:17 btape JobId 0: 3991 Bad autochanger "loaded? drive 0" command: ERR=Child exited with code 1. Results=/dev/sch0 is not an sg device, or old sg driver > Also, you have "Drive Index = 1" commented out. Uncomment and change it to "Drive Index = 0". All tape drives in a changer must have an index and the first one is zero. Give those a try. Hmm, I have seem this previously and when I implemented it, I had this issue. I have 8 tapes, do I believe I need 8 archive device. However, the system only 3 sgX devices. How would one overcome this problem? [root@eng-backup02 ~]# ls -ltr /dev/sg* crw-rw----. 1 root disk 21, 0 Oct 10 15:42 /dev/sg0 crw-rw----. 1 root tape 21, 1 Nov 5 12:16 /dev/sg1 crw-rw----. 1 root tape 21, 2 Nov 5 12:16 /dev/sg2 [root@eng-backup02 ~]# Regards, William _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users