I got a problem when i am pluggin USB devices into my server. It looks like the USB devices repeatedly plugged in or re-assign the device letters sdb1: sdb1
The problem with that is that i execute a udev rule, every time a USB device is plugged in. The udev rule is now executed several times, every time the device letters is showing up. I have deactivated the custom udev rules to exclude this as the source of error. So all this effect and logs are created without any custom udev rule.
this effect only remains until I have mounted the device. After mounting the device, this messages stop.
This is the log, when i am connection a RDX-Device via USB
but the effect is the same with USB-Sticks
/var/log/messages
2018-08-06T09:23:29.139628+02:00 SLES12RDX kernel: [241820.600269] sd 4:0:0:0: [sdb] 976764976 512-byte logical blocks: (500 GB/466 GiB)
2018-08-06T09:23:29.171622+02:00 SLES12RDX kernel: [241820.632581] sdb: sdb1
2018-08-06T09:23:44.979634+02:00 SLES12RDX kernel: [241836.437561] sdb: sdb1
2018-08-06T09:24:15.199624+02:00 SLES12RDX kernel: [241866.657525] sdb: sdb1
2018-08-06T09:24:45.415636+02:00 SLES12RDX kernel: [241896.874298] sdb: sdb1
2018-08-06T09:25:15.631630+02:00 SLES12RDX kernel: [241927.093221] sdb: sdb1
2018-08-06T09:25:45.851637+02:00 SLES12RDX kernel: [241957.311295] sdb: sdb1
2018-08-06T09:26:16.067646+02:00 SLES12RDX kernel: [241987.530071] sdb: sdb1
dmesg
[241262.363311] usb 2-1.6: new high-speed USB device number 5 using ehci-pci
[241262.457475] usb 2-1.6: New USB device found, idVendor=1a5a, idProduct=0006
[241262.457487] usb 2-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[241262.457488] usb 2-1.6: Product: RDX
[241262.457490] usb 2-1.6: Manufacturer: TANDBERG
[241262.457491] usb 2-1.6: SerialNumber: 032613566487
[241262.457917] usb-storage 2-1.6:1.0: USB Mass Storage device detected
[241262.458197] scsi host4: usb-storage 2-1.6:1.0
[241263.456000] scsi 4:0:0:0: Direct-Access RDX 0227 PQ: 0 ANSI: 6
[241263.456240] sd 4:0:0:0: Attached scsi generic sg2 type 0
[241263.459249] sd 4:0:0:0: [sdb] Attached SCSI removable disk
[241288.618894] sd 4:0:0:0: [sdb] 976764976 512-byte logical blocks: (500 GB/466 GiB)
[241288.657955] sdb: sdb1
[241294.065836] sdb: sdb1
[241324.282380] sdb: sdb1
[241766.323096] sd 4:0:0:0: [sdb] 976764976 512-byte logical blocks: (500 GB/466 GiB)
[241766.360054] sdb: sdb1
[241776.112351] sdb: sdb1
[241820.600269] sd 4:0:0:0: [sdb] 976764976 512-byte logical blocks: (500 GB/466 GiB)
[241820.632581] sdb: sdb1
[241836.437561] sdb: sdb1
[241866.657525] sdb: sdb1
[241896.874298] sdb: sdb1
[241927.093221] sdb: sdb1
[241957.311295] sdb: sdb1
[241987.530071] sdb: sdb1
/lib/udev
). If you can't see anything obvious, debug, then you'll know which rules get executed, instead of having to guess.dmesg
you didn't tell us? Anything you have installed that could shut down hardware and put it up again? Does this also happen if no USB device is plugged in? Does it happen no matter which port the USB device is plugged in? Does it happen both for USB2 and USB3? (I'm suspecting some hardware glitch that somehow causes the rescan). Any loose cables somewhere?Any error messages in dmesg you didn't tell us?
No, there are no error. messages in dmesg.Anything you have installed that could shut down hardware and put it up again?
not that I know of.Does this also happen if no USB device is plugged in?
No.Does it happen no matter which port the USB device is plugged in?
Yes, i tried all Ports.Does it happen both for USB2 and USB3?
Yes, USB2&USB3. It also happens an several Servers. Alls this servers has the same System installed.Suse Linux Enterprise Server 12 SP2 - Kernel: 4.4.59-92.17-default