bismosa
Posts: 42
Joined: Sun Dec 23, 2012 11:43 am

RPi 4 - hdparm let system crash

Sat Apr 18, 2020 12:34 pm

Hello!

I am using a Raspberry 4 (2 + 4GB RAM) with Libreelec 9.2.1
(Linux Video 4.19.106 #1 SMP Tue Mar 3 15:40:36 EST 2020 armv7l GNU/Linux)

I have a script running to monitor the system status. There is a line:

Code: Select all

hdparm -C /dev/sda
to get the status active/ide/standby from the HDD.

Every few hours the system crashes. First the HDD is not responsible and some time later the rpi doesn't response.

In dmesg i have the folowing output:

Code: Select all

[17465.830008] xhci_hcd 0000:01:00.0: A Set TR Deq Ptr command is pending.
[17465.953911] usb 2-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[17481.190151] xhci_hcd 0000:01:00.0: WARN Cannot submit Set TR Deq Ptr
[17481.190157] xhci_hcd 0000:01:00.0: A Set TR Deq Ptr command is pending.
[17481.314050] usb 2-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[17497.190307] xhci_hcd 0000:01:00.0: WARN Cannot submit Set TR Deq Ptr
[17497.190312] xhci_hcd 0000:01:00.0: A Set TR Deq Ptr command is pending.
[17497.314195] usb 2-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[17528.977259] xhci_hcd 0000:01:00.0: WARN Cannot submit Set TR Deq Ptr
[17528.977264] xhci_hcd 0000:01:00.0: A Set TR Deq Ptr command is pending.
[17529.101161] usb 2-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[17544.337394] xhci_hcd 0000:01:00.0: WARN Cannot submit Set TR Deq Ptr
[17544.337399] xhci_hcd 0000:01:00.0: A Set TR Deq Ptr command is pending.
[17544.461300] usb 2-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
If i than try to read Data from the Drive i get

Code: Select all

[18066.706030] usb 2-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[18066.724117] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x03 driverbyte=0x00
[18066.724128] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 3a 38 57 80 00 00 08 00
[18066.724135] print_req_error: I/O error, dev sda, sector 976770944
What can i do to avoid this problems?

Regards
Bismosa

Return to “Troubleshooting”