Eu tenho um PC embutido com um sistema operacional Debian e OpenMediaVault para compartilhar recursos através da LAN. Eu tenho um gabinete externo USB / SATA com 1 TB HD. O gabinete USB e o HD funcionam bem conectados a um PC de mesa (Windows, Linux).
Quando conectado ao meu servidor incorporado, acontece que o disco "desconecta" depois de ler ou gravar arquivos bastante grandes (ou seja, algumas centenas de MB). Não tenho certeza se é um problema de hardware ou relacionado à configuração.
dmesg
mostra muitos erros:
[504699.197953] usb 1-2.2: reset high-speed USB device number 3 using xhci_hcd
[504699.277816] usb 1-2.2: device descriptor read/64, error -71
[504699.465874] usb 1-2.2: device descriptor read/64, error -71
[504699.655456] usb 1-2.2: reset high-speed USB device number 3 using xhci_hcd
[504699.735015] usb 1-2.2: device descriptor read/64, error -71
[504699.926043] usb 1-2.2: device descriptor read/64, error -71
[504700.114119] usb 1-2.2: reset high-speed USB device number 3 using xhci_hcd
[504700.114309] usb 1-2.2: Device not responding to setup address.
[504700.321905] usb 1-2.2: Device not responding to setup address.
[504700.533918] usb 1-2.2: device not accepting address 3, error -71
[504700.614297] usb 1-2.2: reset high-speed USB device number 3 using xhci_hcd
[504700.614487] usb 1-2.2: Device not responding to setup address.
[504700.822532] usb 1-2.2: Device not responding to setup address.
[504701.030419] usb 1-2.2: device not accepting address 3, error -71
[504701.031018] scsi host0: uas_eh_bus_reset_handler FAILED err -19
[504701.031035] sd 0:0:0:0: Device offlined - not ready after error recovery
[504701.031046] sd 0:0:0:0: Device offlined - not ready after error recovery
[504701.031091] sd 0:0:0:0: [sda] tag#1 FAILED Result: hostbyte=DID_TIME_OUT dri verbyte=DRIVER_OK
[504701.031109] sd 0:0:0:0: [sda] tag#1 CDB: Write(10) 2a 00 3a 04 1a 30 00 01 3 0 00
[504701.031120] blk_update_request: I/O error, dev sda, sector 973347376
[504701.031666] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyt e=DRIVER_TIMEOUT
[504701.031674] Aborting journal on device sda1-8.
[504701.031721] sd 0:0:0:0: rejecting I/O to offline device
[504701.031749] JBD2: Error -5 detected when updating journal superblock for sda 1-8.
[504701.032782] sd 0:0:0:0: [sda] tag#0 CDB: Read(10) 28 00 6f 84 50 40 00 00 08 00
[504701.032793] blk_update_request: I/O error, dev sda, sector 1870942272
[504701.033379] usb 1-2.2: USB disconnect, device number 3
[504701.033391] sd 0:0:0:0: rejecting I/O to offline device
[504701.033889] EXT4-fs error (device sda1): ext4_journal_check_start:56: Detect ed aborted journal
[504701.034491] EXT4-fs (sda1): Remounting filesystem read-only
[504701.034892] EXT4-fs (sda1): previous I/O error to superblock detected
[504701.070642] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[504701.310280] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte =DID_ERROR driverbyte=DRIVER_OK
[504701.438815] usb 1-2.2: new high-speed USB device number 5 using xhci_hcd
[504701.518690] usb 1-2.2: device descriptor read/64, error -71
[504701.706939] usb 1-2.2: device descriptor read/64, error -71
[504701.894978] usb 1-2.2: new high-speed USB device number 6 using xhci_hcd
[504701.975036] usb 1-2.2: device descriptor read/64, error -71
[504702.163685] usb 1-2.2: device descriptor read/64, error -71
[504702.271251] usb 1-2-port2: attempt power cycle
[504702.874833] usb 1-2.2: new high-speed USB device number 7 using xhci_hcd
[504702.875093] usb 1-2.2: Device not responding to setup address.
[504703.083455] usb 1-2.2: Device not responding to setup address.
[504703.291024] usb 1-2.2: device not accepting address 7, error -71
[504703.371513] usb 1-2.2: new high-speed USB device number 8 using xhci_hcd
[504703.371688] usb 1-2.2: Device not responding to setup address.
[504703.579348] usb 1-2.2: Device not responding to setup address.
[504703.787653] usb 1-2.2: device not accepting address 8, error -71
[504703.788225] usb 1-2-port2: unable to enumerate USB device
[1541960.848889] usb 1-2.1: new high-speed USB device number 9 using xhci_hcd
[1541960.959631] usb 1-2.1: New USB device found, idVendor=152d, idProduct=9561
[1541960.959648] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumb er=5
[1541960.959658] usb 1-2.1: Product: JMS56x Series
[1541960.959668] usb 1-2.1: Manufacturer: JMicron
[1541960.959678] usb 1-2.1: SerialNumber: 00000000000000000000
[1541960.967620] scsi host0: uas
[1541960.970862] scsi 0:0:0:0: Direct-Access WDC WD10 EFRX-68FYTN0 0105 PQ: 0 ANSI: 6
[1541961.007296] sd 0:0:0:0: Attached scsi generic sg0 type 0
[1541961.007901] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/ 932 GiB)
[1541961.009903] sd 0:0:0:0: [sda] Write Protect is off
[1541961.009915] sd 0:0:0:0: [sda] Mode Sense: 67 00 10 08
[1541961.010694] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, su pports DPO and FUA
[1541961.065041] sda: sda1
[1541961.070657] sd 0:0:0:0: [sda] Attached SCSI disk
[1541962.536123] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts : user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl
[1639010.315905] sd 0:0:0:0: [sda] tag#1 uas_eh_abort_handler 0 uas-tag 2 inflig ht: CMD
[1639010.315927] sd 0:0:0:0: [sda] tag#1 CDB: Read(10) 28 00 6f c1 15 60 00 00 0 8 00
[1639016.194194] sd 0:0:0:0: [sda] tag#0 uas_eh_abort_handler 0 uas-tag 1 inflig ht: CMD
[1639016.194216] sd 0:0:0:0: [sda] tag#0 CDB: Write(10) 2a 00 3a 04 16 70 00 00 10 00
[1639016.194239] scsi host0: uas_eh_bus_reset_handler start
[1639016.194450] sd 0:0:0:0: [sda] tag#2 uas_zap_pending 0 uas-tag 3 inflight: C MD
[1639016.194469] sd 0:0:0:0: [sda] tag#2 CDB: Write(10) 2a 00 6e 80 09 00 00 00 78 00
[1639016.274655] usb 1-2.1: reset high-speed USB device number 9 using xhci_hcd
[1639016.354040] usb 1-2.1: device descriptor read/64, error -71
[1639016.546291] usb 1-2.1: device descriptor read/64, error -71
[1639016.734370] usb 1-2.1: reset high-speed USB device number 9 using xhci_hcd
[1639016.818236] usb 1-2.1: device descriptor read/64, error -71
[1639017.006295] usb 1-2.1: device descriptor read/64, error -71
[1639017.194370] usb 1-2.1: reset high-speed USB device number 9 using xhci_hcd
[1639017.194463] usb 1-2.1: Device not responding to setup address.
[1639017.403443] usb 1-2.1: Device not responding to setup address.
[1639017.610796] usb 1-2.1: device not accepting address 9, error -71
[1639017.690555] usb 1-2.1: reset high-speed USB device number 9 using xhci_hcd
[1639017.690632] usb 1-2.1: Device not responding to setup address.
[1639017.898741] usb 1-2.1: Device not responding to setup address.
[1639018.106719] usb 1-2.1: device not accepting address 9, error -71
[1639018.107538] scsi host0: uas_eh_bus_reset_handler FAILED err -19
[1639018.107555] sd 0:0:0:0: Device offlined - not ready after error recovery
[1639018.107566] sd 0:0:0:0: Device offlined - not ready after error recovery
[1639018.107577] sd 0:0:0:0: Device offlined - not ready after error recovery
[1639018.107640] sd 0:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_TIME_OUT dr iverbyte=DRIVER_OK
[1639018.107659] sd 0:0:0:0: [sda] tag#0 CDB: Write(10) 2a 00 3a 04 16 70 00 00 10 00
[1639018.107670] blk_update_request: I/O error, dev sda, sector 973346416
[1639018.108139] Aborting journal on device sda1-8.
[1639018.108157] sd 0:0:0:0: rejecting I/O to offline device
[1639018.108172] sd 0:0:0:0: [sda] killing request
[1639018.108206] sd 0:0:0:0: [sda] tag#1 FAILED Result: hostbyte=DID_OK driverby te=DRIVER_TIMEOUT
[1639018.108221] sd 0:0:0:0: [sda] tag#1 CDB: Read(10) 28 00 6f c1 15 60 00 00 0 8 00
[1639018.108230] blk_update_request: I/O error, dev sda, sector 1874924896
[1639018.108568] usb 1-2.1: USB disconnect, device number 9
[1639018.108581] sd 0:0:0:0: [sda] FAILED Result: hostbyte=DID_NO_CONNECT driver byte=DRIVER_OK
[1639018.108599] sd 0:0:0:0: [sda] CDB: Write(10) 2a 00 6e 80 09 00 00 00 78 00
[1639018.108611] blk_update_request: I/O error, dev sda, sector 1853884672
[1639018.108622] Buffer I/O error on dev sda1, logical block 231735328, lost asy nc page write
[1639018.108650] Buffer I/O error on dev sda1, logical block 231735329, lost asy nc page write
[1639018.108663] Buffer I/O error on dev sda1, logical block 231735330, lost asy nc page write
[1639018.108673] Buffer I/O error on dev sda1, logical block 231735331, lost asy nc page write
[1639018.108684] Buffer I/O error on dev sda1, logical block 231735332, lost asy nc page write
[1639018.108695] Buffer I/O error on dev sda1, logical block 231735333, lost asy nc page write
[1639018.108706] Buffer I/O error on dev sda1, logical block 231735334, lost asy nc page write
[1639018.108717] Buffer I/O error on dev sda1, logical block 231735335, lost asy nc page write
[1639018.108727] Buffer I/O error on dev sda1, logical block 231735336, lost asy nc page write
[1639018.108737] Buffer I/O error on dev sda1, logical block 231735337, lost asy nc page write
[1639018.108841] sd 0:0:0:0: rejecting I/O to offline device
[1639018.109157] EXT4-fs warning (device sda1): htree_dirblock_to_tree:962: inod e #58593054: lblock 0: comm smbd: error -5 reading directory block
[1639018.158796] JBD2: Error -5 detected when updating journal superblock for sd a1-8.
[1639018.320224] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[1639018.558945] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyt e=DID_ERROR driverbyte=DRIVER_OK
[1639018.655462] usb 1-2.1: new high-speed USB device number 10 using xhci_hcd
[1639018.735520] usb 1-2.1: device descriptor read/64, error -71
[1639018.931593] usb 1-2.1: device descriptor read/64, error -71
[1639019.127641] usb 1-2.1: new high-speed USB device number 11 using xhci_hcd
[1639019.207693] usb 1-2.1: device descriptor read/64, error -71
[1639019.403763] usb 1-2.1: device descriptor read/64, error -71
[1639019.519900] usb 1-2-port1: attempt power cycle
[1639020.123973] usb 1-2.1: new high-speed USB device number 12 using xhci_hcd
[1639020.124197] usb 1-2.1: Device not responding to setup address.
[1639020.332253] usb 1-2.1: Device not responding to setup address.
[1639020.540121] usb 1-2.1: device not accepting address 12, error -71
[1639020.628183] usb 1-2.1: new high-speed USB device number 13 using xhci_hcd
[1639020.628360] usb 1-2.1: Device not responding to setup address.
[1639020.713139] EXT4-fs error (device sda1): ext4_find_entry:1469: inode #57933 830: comm smbd: reading directory lblock 0
[1639020.723202] EXT4-fs warning (device sda1): htree_dirblock_to_tree:962: inod e #57933830: lblock 0: comm smbd: error -5 reading directory block
[1639020.840527] usb 1-2.1: Device not responding to setup address.
[1639021.048322] usb 1-2.1: device not accepting address 13, error -71
[1639021.058212] usb 1-2-port1: unable to enumerate USB device
Qual abordagem é recomendada para descobrir a raiz do problema? Essas mensagens são suficientes para entender o que está acontecendo?