Hello Andrew, Rather than use the /dev/nst0 and /dev/nst1 devices, you should use the device nodes' "by-id" node names. These do not change over reboots the way the /dev/nstX ones can.
First determine the scsi devices in the system and identify the "sg" node for the library's changer device: ----8<---- # lsscsi -g [0:0:0:0] disk IBM RootOS V1.0 /dev/sda /dev/sg0 [0:0:1:0] disk IBM Storage V1.0 /dev/sdb /dev/sg1 ... [3:0:5:0] tape HP Ultrium 4-SCSI B63Z /dev/st0 /dev/sg17 [3:0:5:1] mediumx QUANTUM UHDL 0091 /dev/sch0 /dev/sg18 ----8<---- In the above case, the Library's SCSI "sg" device node is: /dev/sg18 Now, find that matching 'sg' device in the /dev/tape/by-id directory: ----8<---- # ls -la /dev/tape/by-id/ total 0 drwxr-xr-x 2 root root 100 Jun 9 20:33 . drwxr-xr-x 4 root root 80 Jun 9 16:29 .. lrwxrwxrwx 1 root root 9 Jun 9 16:29 scsi-350060b0000ba645e -> ../../st0 lrwxrwxrwx 1 root root 10 Jun 9 16:29 scsi-350060b0000ba645e-nst -> ../../nst0 lrwxrwxrwx 1 root root 10 Jun 9 16:29 scsi-350060b0000XXXXXX-nst -> ../../nst1 lrwxrwxrwx 1 root root 10 Jun 9 20:33 scsi-3500e09efff0e1b57 -> ../../sg18 ----8<---- In your SD's Autochanger and Device resources use: /dev/tape/by-id/scsi-3500e09efff0e1b57 _instead_ of /dev/sg18 And use: /dev/tape/by-id/scsi-350060b0000ba645e-nst _instead_ of /dev/nst0 /dev/tape/by-id/scsi-350060b0000XXXXXX-nst _instead_ of /dev/nst1 In this example, our Autochanger and devices in bacula-sd.conf would be: bacula-sd.conf ----8<---- ... rest of config... Autochanger { Name = QuantumSuperLoader Device = "LTO-0", "LTO-1" ChangerDevice = /dev/tape/by-id/scsi-3500e09efff0e1b57 ... rest of config... } Device { Name = LTO-0 DriveIndex = 0 MediaType = LTO-TAPE ArchiveDevice = /dev/tape/by-id/scsi-350060b0000ba645e-nst ChangerDevice = /dev/tape/by-id/scsi-3500e09efff0e1b57 ... rest of config... } Device { Name = LTO-1 DriveIndex = 1 MediaType = LTO-TAPE ArchiveDevice = /dev/tape/by-id/scsi-350060b0000XXXXXX-nst ChangerDevice = /dev/tape/by-id/scsi-3500e09efff0e1b57 ... rest of config... } ... rest of config... ----8<---- Save the bacula-sd.conf config file and test the syntax: # bacula-sd -t -c /path/to/bacula-sd.conf If no errors, restart bacula-sd and test. Now you can relax knowing that your devices will not switch ids ever again (in a perfect world :) Hope this helps! Bill -- Bill Arlofski http://www.revpol.com/bacula -- Not responsible for anything below this line -- ------------------------------------------------------------------------------ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users