On Fri, 2020-06-26 at 16:00 -0700, Samuel Sieb wrote: > On 6/26/20 2:45 PM, Patrick O'Callaghan wrote: > > On Fri, 2020-06-26 at 13:56 -0700, Samuel Sieb wrote: > > > On 6/26/20 1:33 PM, Patrick O'Callaghan wrote: > > > > udisksctl power-off -b /dev/sdd > > > > > > > > This works too, but unfortunately also removes the /sys/block/sdd > > > > files, meaning I can't turn the thing on again. However, if I > > > > physically switch it on and off, it reappears, IOW it causes a USB > > > > "insertion" event. > > > > > > Isn't that command telling the drive to disconnect and turn off? If so, > > > there's no way you can get its attention again without power cycling it. > > > > In theory, yes, however the drive doesn't actually turn off (though it > > will spin down after 30 minutes). It's not powered by the USB interface > > but has its own power cable. In fact even after the drives go into idle > > mode the dock itself is still powered (the lights are on). Think of a > > thumb drive that's still in the socket (though that may not be the best > > analogy). I'm asking if there's a way to reactivate it without > > physically pulling it out and reinserting it. > > Can you show the log messages from running that command? > > When I tested it with a USB flash drive, it disconnected from the USB > bus and trying the rescan idea didn't do anything. That sounds like what I see. > I messed around > enough that I confused that USB controller and that entire bus was dead. > Fortunately, I managed to reset the controller and got it back by > telling the driver to remove it and then add it back. How did you do that? Did it involve physically pulling and reinserting the drive? FWIW, this is what happens when I power on the dock: Jun 27 11:33:55 Bree kernel: usb 3-3: new high-speed USB device number 4 using xhci_hcd Jun 27 11:33:55 Bree kernel: usb 3-3: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00 Jun 27 11:33:55 Bree kernel: usb 3-3: New USB device strings: Mfr=2, Product=3, SerialNumber=1 Jun 27 11:33:55 Bree kernel: usb 3-3: Product: ASM1156-PM Jun 27 11:33:55 Bree kernel: usb 3-3: Manufacturer: ASMT Jun 27 11:33:55 Bree kernel: usb 3-3: SerialNumber: 00000000000000000000 Jun 27 11:33:55 Bree kernel: scsi host6: uas Jun 27 11:33:55 Bree mtp-probe[6798]: checking bus 3, device 4: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3" Jun 27 11:33:55 Bree mtp-probe[6798]: bus: 3, device: 4 was not an MTP device Jun 27 11:33:55 Bree mtp-probe[6803]: checking bus 3, device 4: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3" Jun 27 11:33:55 Bree mtp-probe[6803]: bus: 3, device: 4 was not an MTP device Jun 27 11:33:55 Bree kernel: scsi 6:0:0:0: Direct-Access ASMT ASM1156-PM 0 PQ: 0 ANSI: 6 Jun 27 11:33:55 Bree kernel: scsi 6:0:0:1: Direct-Access ASMT ASM1156-PM 0 PQ: 0 ANSI: 6 Jun 27 11:33:55 Bree kernel: sd 6:0:0:0: Attached scsi generic sg4 type 0 Jun 27 11:33:55 Bree kernel: sd 6:0:0:1: Attached scsi generic sg5 type 0 Jun 27 11:33:55 Bree kernel: sd 6:0:0:0: [sdd] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB) Jun 27 11:33:55 Bree kernel: sd 6:0:0:0: [sdd] 4096-byte physical blocks Jun 27 11:33:55 Bree kernel: sd 6:0:0:0: [sdd] Write Protect is off Jun 27 11:33:55 Bree kernel: sd 6:0:0:0: [sdd] Mode Sense: 43 00 00 00 Jun 27 11:33:55 Bree kernel: sd 6:0:0:1: [sde] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB) Jun 27 11:33:55 Bree kernel: sd 6:0:0:1: [sde] 4096-byte physical blocks Jun 27 11:33:55 Bree kernel: sd 6:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA Jun 27 11:33:55 Bree kernel: sd 6:0:0:1: [sde] Write Protect is off Jun 27 11:33:55 Bree kernel: sd 6:0:0:1: [sde] Mode Sense: 43 00 00 00 Jun 27 11:33:55 Bree kernel: sd 6:0:0:1: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA Jun 27 11:33:55 Bree kernel: sd 6:0:0:0: [sdd] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes) Jun 27 11:33:55 Bree kernel: sd 6:0:0:1: [sde] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes) Jun 27 11:33:55 Bree systemd[1747]: dbus-:1.2-org.gnome.ChromeGnomeShell@0.service: Succeeded. Jun 27 11:33:55 Bree kernel: sd 6:0:0:0: [sdd] Attached SCSI disk Jun 27 11:33:55 Bree kernel: sd 6:0:0:1: [sde] Attached SCSI disk Jun 27 11:33:55 Bree kernel: md/raid1:md127: active with 2 out of 2 mirrors Jun 27 11:33:55 Bree kernel: md127: detected capacity change from 0 to 1000069595136 Jun 27 11:33:55 Bree kernel: md127: p1 Jun 27 11:33:56 Bree systemd[1]: Condition check resulted in Software RAID monitoring and management being skipped. Jun 27 11:33:56 Bree systemd[1]: Condition check resulted in Software RAID monitoring and management being skipped. (Those last two lines always appear, but the RAID system seems to be working correctly). When using powering off with 'udisksctl power-off ...' (having previously stopped the RAID system), I get: un 27 11:38:57 Bree udisksd[963]: Successfully sent SCSI command SYNCHRONIZE CACHE to /dev/sdd Jun 27 11:38:58 Bree udisksd[963]: Successfully sent SCSI command START STOP UNIT to /dev/sdd Jun 27 11:38:58 Bree kernel: sd 6:0:0:0: [sdd] Synchronizing SCSI cache Jun 27 11:38:58 Bree systemd-udevd[7034]: sdd: Process '/sbin/mdadm -If sdd --path pci-0000:00:14.0-usb-0:3:1.0-scsi-0:0:0:0' failed with exit code 1. Jun 27 11:38:58 Bree systemd-homed[960]: block device /sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3:1.0/host6/target6:0:0/6:0:0:0/block/sdd has been removed. Jun 27 11:38:58 Bree dolphin[2186]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_00RKKA0_WD_WMC1S6497928" Jun 27 11:38:58 Bree plasmashell[1911]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_00RKKA0_WD_WMC1S6497928" Jun 27 11:38:58 Bree dolphin[2340]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_00RKKA0_WD_WMC1S6497928" Jun 27 11:38:58 Bree org_kde_powerdevil[2695]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_00RKKA0_WD_WMC1S6497928" Jun 27 11:38:58 Bree dolphin[2262]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_00RKKA0_WD_WMC1S6497928" Jun 27 11:38:58 Bree dolphin[2340]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_00RKKA0_WD_WMC1S6497928" Jun 27 11:38:58 Bree dolphin[2186]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_00RKKA0_WD_WMC1S6497928" Jun 27 11:38:58 Bree dolphin[2262]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_00RKKA0_WD_WMC1S6497928" Jun 27 11:38:58 Bree plasmashell[1911]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_00RKKA0_WD_WMC1S6497928" Jun 27 11:38:58 Bree kernel: sd 6:0:0:1: [sde] tag#15 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=0s Jun 27 11:38:58 Bree kernel: sd 6:0:0:1: [sde] tag#15 CDB: Read(10) 28 00 74 70 6d 00 00 00 08 00 Jun 27 11:38:58 Bree kernel: blk_update_request: I/O error, dev sde, sector 1953524992 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Jun 27 11:38:58 Bree kernel: sd 6:0:0:1: [sde] tag#13 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=0s Jun 27 11:38:58 Bree kernel: sd 6:0:0:1: [sde] tag#13 CDB: Read(10) 28 00 74 70 6d a0 00 00 08 00 Jun 27 11:38:58 Bree kernel: blk_update_request: I/O error, dev sde, sector 1953525152 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Jun 27 11:38:58 Bree kernel: sd 6:0:0:0: [sdd] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK Jun 27 11:38:58 Bree kernel: sd 6:0:0:1: [sde] tag#16 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=0s Jun 27 11:38:58 Bree kernel: sd 6:0:0:1: [sde] tag#16 CDB: Read(10) 28 00 74 70 6d af 00 00 01 00 Jun 27 11:38:58 Bree kernel: blk_update_request: I/O error, dev sde, sector 1953525167 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Jun 27 11:38:58 Bree kernel: sd 6:0:0:1: [sde] Synchronizing SCSI cache Jun 27 11:38:58 Bree kernel: blk_update_request: I/O error, dev sde, sector 1953525166 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Jun 27 11:38:58 Bree kernel: blk_update_request: I/O error, dev sde, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Jun 27 11:38:58 Bree kernel: blk_update_request: I/O error, dev sde, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Jun 27 11:38:58 Bree systemd-udevd[7031]: sde: Process '/sbin/mdadm -If sde --path pci-0000:00:14.0-usb-0:3:1.0-scsi-0:0:0:1' failed with exit code 1. Jun 27 11:38:58 Bree systemd-homed[960]: block device /sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3:1.0/host6/target6:0:0/6:0:0:1/block/sde has been removed. Jun 27 11:38:58 Bree org_kde_powerdevil[2695]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_60WN4A1_WD_WCC6Y6NP5JPL" Jun 27 11:38:58 Bree dolphin[2340]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_60WN4A1_WD_WCC6Y6NP5JPL" Jun 27 11:38:58 Bree dolphin[2262]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_60WN4A1_WD_WCC6Y6NP5JPL" Jun 27 11:38:58 Bree dolphin[2186]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_60WN4A1_WD_WCC6Y6NP5JPL" Jun 27 11:38:58 Bree plasmashell[1911]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_60WN4A1_WD_WCC6Y6NP5JPL" Jun 27 11:38:58 Bree dolphin[2340]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_60WN4A1_WD_WCC6Y6NP5JPL" Jun 27 11:38:58 Bree dolphin[2262]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_60WN4A1_WD_WCC6Y6NP5JPL" Jun 27 11:38:58 Bree dolphin[2186]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_60WN4A1_WD_WCC6Y6NP5JPL" Jun 27 11:38:58 Bree plasmashell[1911]: org.kde.solid.udisks2: Error getting props: "org.freedesktop.DBus.Error.UnknownMethod" "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/UDisks2/drives/WDC_WD10EZEX_60WN4A1_WD_WCC6Y6NP5JPL" Jun 27 11:38:58 Bree kernel: sd 6:0:0:1: [sde] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK Jun 27 11:38:58 Bree udisksd[963]: Powered off /dev/sdd - successfully wrote to sysfs path /sys/devices/pci0000:00/0000:00:14.0/usb3/3-3/remove Jun 27 11:38:58 Bree kernel: usb 3-3: USB disconnect, device number 4 (Note the message from mdadm. The RAID array has /dev/sdd and /dev/sde, but, again, RAID has already been stopped before running udisksctl.) At this point, /sys/class/scsi_host/host6/scan no longer exists, so the only option is to physically toggle the power switch on the dock to get it back. poc _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx