Sorry if I have not followed this whole thread, but the command you want
to do is:

lsscsi -g

The control device names are listed in the last column.  The control
device name is needed by mtx to actuate the autochanger.   The control
device name is also needed for some of the tape alert commands.  When
reading/writing the volumes the normal names in the second to last
column are used.

By the way, here I use the device names defined in /dev/tape/by-id/. 
Here mine look like:
lrwxrwxrwx 1 root root  9 Feb  6 09:24 scsi-3500143801403cf21 -> ../../sg1
lrwxrwxrwx 1 root root  9 Feb  6 09:24 scsi-3500143801403cf22 -> ../../st0
lrwxrwxrwx 1 root root 10 Feb  6 09:24 scsi-3500143801403cf22-nst ->
../../nst0

I am pretty sure they are defined there by default -- my system is
Ubuntu 18.04, but I am not 100% sure about it.


Best regards,
Kern



On 3/3/19 3:37 PM, William Muriithi wrote:
> Hi guys,
>
> On Centos 7 system and had a working tape storage system. Then I restarted 
> and the whole thing stopped working.
>
> I have just noticed that the autochanger changed from /dev/sg2 to /dev/sg3.  
> My initial thought was to use the device UUID, but this device don't seem to 
> use UUID.  
>
> I thought I could use the alternate name that I pulled from lsscsi command, 
> but it looks like either the device driver or the script only want to use the 
> device with sg prefix on the name
>
> [root@eng-backup01 ~]# mtx -f /dev/sch0 status
> /dev/sch0 is not an sg device, or old sg driver
> [root@eng-backup01 ~]# 
>
> So, how do you guys solve this problem so that it don't fall apart on every 
> restart?
>
> [root@eng-backup01 ~]# lsscsi -l
> [0:2:0:0]    disk    DELL     PERC H710P       3.13  /dev/sda 
>   state=running queue_depth=256 scsi_level=6 type=0 device_blocked=0 
> timeout=90
> [0:2:1:0]    disk    DELL     PERC H710P       3.13  /dev/sdb 
>   state=running queue_depth=256 scsi_level=6 type=0 device_blocked=0 
> timeout=90
> [1:0:0:0]    tape    IBM      ULTRIUM-HH7      J4D1  /dev/st0 
>   state=running queue_depth=256 scsi_level=7 type=1 device_blocked=0 
> timeout=900
> [1:0:0:1]    mediumx QUANTUM  UHDL             0094  /dev/sch0
>   state=running queue_depth=256 scsi_level=3 type=8 device_blocked=0 timeout=0
> [root@eng-backup01 ~]# 
>
>
> Regards,
> William 
>
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>




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

Reply via email to