Re: persistent generic device for tape changer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, 2019-02-07 at 10:56 +0100, Helmut Drodofsky wrote:
> Hello,
> 
> mtx and therefor amanda use generic device /dev/sg<x> for tape
> changer.
> 
> These devices change on reboot.
> 
> How to make them persistent?
> 
> /dev/sch0 and /dev/sch1 seem to be persistent.
> 
> /dev/tape/by-id/ shows links from WWID to generic device
> 
> An UDEV rule could help? I have not found any example.

I had a similar issue when I moved to Mint 18 with the tape device.
 This works with kernel 4.10 and later.  Copy /lib/udev/rules.d/60-
persistent-storage-tape.rules to /etc/udev/rules.d and make a change as
shown:

diff -n /lib/udev/rules.d/60-persistent-storage-tape.rules
/etc/udev/rules.d/60-persistent-storage-tape.rules 
d9 1
a9 2
   SYMLINK+="changer"
#  SYMLINK+="tape/by-id/scsi-$env{ID_SERIAL}"

This created /dev/changer as a link to the /dev/sg<x> device that will
be consistent every time the system is booted.

> 
> 
-- 
Ron Loftin			reloftin@xxxxxxxxxxxx

"God, root, what is difference ?"	Piter from UserFriendly


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux