Re: [Bacula-users] Persistent device name for autochanger

2019-03-04 Thread Kern Sibbald
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. 

Re: [Bacula-users] Persistent device name for autochanger

2019-03-03 Thread Sven Hartge
On 03.03.19 18:02, William Muriithi wrote: > Hi Sven, >> What version is your mtx? > Its the default that is shipped with RHEL 7. > > [root@eng-backup01 ~]# rpm -qa | grep mtx > mtx-1.3.12-14.el7.x86_64 1.3.12 is the latest mtx version available. The code triggering here is in scsi_linux.c: #i

Re: [Bacula-users] Persistent device name for autochanger

2019-03-03 Thread William Muriithi
Hi Sven, > > At least in *your* case the system already recognizes the device as SCSI > changer and sets up the special device /dev/sch0 for you. > > mtx complaining about it not being an /dev/sgX device is more of a bug > inside mtx clinging to the past device names instead of embracing the > ne

Re: [Bacula-users] Persistent device name for autochanger

2019-03-03 Thread William Muriithi
ch0 E: MAJOR=86 E: MINOR=0 E: SUBSYSTEM=scsi_changer Regards, William From: Sven Hartge Sent: March 3, 2019 10:21 AM To: bacula-users@lists.sourceforge.net Subject: Re: [Bacula-users] Persistent device name for autochanger On 03.03.19 16:00, Pedro Oliveira

Re: [Bacula-users] Persistent device name for autochanger

2019-03-03 Thread Sven Hartge
On 03.03.19 16:40, William Muriithi wrote: > Thanks for the link. I actually looked at it before Hartge responded and > funny enough came to the same conclusion. The info maps the tape nicely but > I don't get enough info from udev to do the dame with autochanger. > > I only get this: > > [r

Re: [Bacula-users] Persistent device name for autochanger

2019-03-03 Thread Sven Hartge
On 03.03.19 16:00, Pedro Oliveira wrote: > https://nonhazardo.us/tape/storage/udev/2016/03/14/udev-persistent-tape-drive-naming.html This is all well and fine, but only talks about /dev/stX and /dev/nstX. But persitently naming the tape devices is not the question here. The real question is on h

Re: [Bacula-users] Persistent device name for autochanger

2019-03-03 Thread Pedro Oliveira
https://nonhazardo.us/tape/storage/udev/2016/03/14/udev-persistent-tape-drive-naming.html William Muriithi escreveu no dia domingo, 3/03/2019 à(s) 14:40: > Hi guys, > > On Centos 7 system and had a working tape storage system. Then I restarted > and the whole thing stopped working. > > I have ju

[Bacula-users] Persistent device name for autochanger

2019-03-03 Thread William Muriithi
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 thou