orion wrote:This case should mean that you got read errors on those 2 disks at the same time. If you know how to use putty by ssh session, you can execute "dmesg" command to see if it's the case. However, I'm not sure why you see only one disk error in ADM log. Anyway, "dmesg" should be the trusted log. You may post it here if you can.
In fact, I did not realize what the actual problem was until I entered ssh and tried to copy the file from there. The RAID probably did not report mistake, it was rather some other layer, may be SMB or my windows computer which probably got some timeout because the reading of the file used to hang for long time and reported me error.
Anyway, from ssh I was able to copy the file (with many long hangs, but the copying eventually finished). Sorry for misinforming the forum

, there was probably no I/O mistake on the level of file system (above the RAID) at all (but there were, of course, errors while reading the second disk).
Now, I could clearly see with help of 'dmesg' that the RAID indeed redirects to the first disc after encountering an error on the second.

Thanks for advising that!
Still, I do not understand whether the RAID tries at all to repair broken sectors in the course of regular disk access when encountering a bad sector, as it looks to be documented in 'md' man. I made a number of attempts to copy the same problematic file and I got hangs again and again and dmesg reports mostly the same sectors at each copying, as if they were not recovered. Any help with that?
Also, whatever the answer for the previous question is, would you recommend to use 'scrubbing' ( echo check > ...md/sync_action ) on Asustor NAS to repair bad sectors periodically? Is it safe? I could not find any recommendations regarding that on the forum.
Thank you for the help!
BTW, here is one of my dmesg logs during copying the problematic file one time. I can send others if you need.
[97000.341913] ata2.00: exception Emask 0x0 SAct 0x180 SErr 0x0 action 0x0
[97000.348775] ata2.00: irq_stat 0x40000008
[97000.352888] ata2.00: failed command: READ FPDMA QUEUED
[97000.358194] ata2.00: cmd 60/00:38:a0:0e:dd/08:00:2c:01:00/40 tag 7 ncq 1048576 in
[97000.358194] res 41/40:00:27:12:dd/00:00:2c:01:00/40 Emask 0x409 (media error) <F>
[97000.374471] ata2.00: status: { DRDY ERR }
[97000.378634] ata2.00: error: { UNC }
[97000.384589] ata2.00: configured for UDMA/133
[97000.389139] md/raid1:md1: sdb4: rescheduling sector 5038476960
[97000.395332] ata2: EH complete
[97010.549278] md/raid1:md1: redirecting sector 5038476960 to other mirror: sda4
[97018.798549] ata2.00: exception Emask 0x0 SAct 0x7e00 SErr 0x0 action 0x0
[97018.805541] ata2.00: irq_stat 0x40000008
[97018.809614] ata2.00: failed command: READ FPDMA QUEUED
[97018.814920] ata2.00: cmd 60/40:48:00:08:db/05:00:2c:01:00/40 tag 9 ncq 688128 in
[97018.814920] res 41/40:00:b0:0b:db/00:00:2c:01:00/40 Emask 0x409 (media error) <F>
[97018.831050] ata2.00: status: { DRDY ERR }
[97018.835230] ata2.00: error: { UNC }
[97018.840028] ata2.00: configured for UDMA/133
[97018.844478] md/raid1:md1: sdb4: rescheduling sector 5038344192
[97018.850629] ata2: EH complete
[97025.862340] ata2.00: exception Emask 0x0 SAct 0x3e0000 SErr 0x0 action 0x0
[97025.869480] ata2.00: irq_stat 0x40000008
[97025.873591] ata2.00: failed command: READ FPDMA QUEUED
[97025.878984] ata2.00: cmd 60/60:a8:40:0d:db/01:00:2c:01:00/40 tag 21 ncq 180224 in
[97025.878984] res 41/40:00:80:0d:db/00:00:2c:01:00/40 Emask 0x409 (media error) <F>
[97025.895227] ata2.00: status: { DRDY ERR }
[97025.899372] ata2.00: error: { UNC }
[97025.904107] ata2.00: configured for UDMA/133
[97025.908581] md/raid1:md1: sdb4: rescheduling sector 5038345536
[97025.914648] ata2: EH complete
[97032.926152] ata2.00: exception Emask 0x0 SAct 0x3c000000 SErr 0x0 action 0x0
[97032.933453] ata2.00: irq_stat 0x40000008
[97032.937506] ata2.00: failed command: READ FPDMA QUEUED
[97032.942807] ata2.00: cmd 60/40:d0:a0:0e:db/05:00:2c:01:00/40 tag 26 ncq 688128 in
[97032.942807] res 41/40:00:e7:0e:db/00:00:2c:01:00/40 Emask 0x409 (media error) <F>
[97032.959069] ata2.00: status: { DRDY ERR }
[97032.963229] ata2.00: error: { UNC }
[97032.968019] ata2.00: configured for UDMA/133
[97032.972519] md/raid1:md1: sdb4: rescheduling sector 5038345888
[97032.978666] ata2: EH complete
[97088.661512] md/raid1:md1: redirecting sector 5038344192 to other mirror: sda4
[97125.790644] md/raid1:md1: redirecting sector 5038345536 to other mirror: sda4
[97142.421021] md/raid1:md1: redirecting sector 5038345888 to other mirror: sda4
[97159.360864] ata2.00: exception Emask 0x0 SAct 0x1fe0 SErr 0x0 action 0x0
[97159.367802] ata2.00: irq_stat 0x40000008
[97159.371874] ata2.00: failed command: READ FPDMA QUEUED
[97159.377241] ata2.00: cmd 60/10:28:00:00:c3/07:00:2c:01:00/40 tag 5 ncq 925696 in
[97159.377241] res 41/40:00:30:05:c3/00:00:2c:01:00/40 Emask 0x409 (media error) <F>
[97159.393381] ata2.00: status: { DRDY ERR }
[97159.397549] ata2.00: error: { UNC }
[97159.402396] ata2.00: configured for UDMA/133
[97159.406926] md/raid1:md1: sdb4: rescheduling sector 5036769280
[97159.413037] ata2: EH complete
[97166.424668] ata2.00: exception Emask 0x0 SAct 0x3f8000 SErr 0x0 action 0x0
[97166.431819] ata2.00: irq_stat 0x40000008
[97166.435902] ata2.00: failed command: READ FPDMA QUEUED
[97166.441198] ata2.00: cmd 60/f0:a8:10:07:c3/00:00:2c:01:00/40 tag 21 ncq 122880 in
[97166.441198] res 41/40:00:50:07:c3/00:00:2c:01:00/40 Emask 0x409 (media error) <F>
[97166.457474] ata2.00: status: { DRDY ERR }
[97166.461640] ata2.00: error: { UNC }
[97166.466416] ata2.00: configured for UDMA/133
[97166.470912] md/raid1:md1: sdb4: rescheduling sector 5036771088
[97166.477009] ata2: EH complete
[97224.810322] md/raid1:md1: redirecting sector 5036769280 to other mirror: sda4
[97243.259813] md/raid1:md1: redirecting sector 5036771088 to other mirror: sda4
[97254.197902] ata2.00: exception Emask 0x0 SAct 0x8000 SErr 0x0 action 0x0
[97254.204855] ata2.00: irq_stat 0x40000008
[97254.208945] ata2.00: failed command: READ FPDMA QUEUED
[97254.214283] ata2.00: cmd 60/00:78:a0:96:db/08:00:2c:01:00/40 tag 15 ncq 1048576 in
[97254.214283] res 41/40:00:37:97:db/00:00:2c:01:00/40 Emask 0x409 (media error) <F>
[97254.230628] ata2.00: status: { DRDY ERR }
[97254.234757] ata2.00: error: { UNC }
[97254.239602] ata2.00: configured for UDMA/133
[97254.244092] md/raid1:md1: sdb4: rescheduling sector 5038380704
[97254.250306] ata2: EH complete
[97265.051589] md/raid1:md1: redirecting sector 5038380704 to other mirror: sda4
[97275.415282] ata2.00: exception Emask 0x0 SAct 0x70 SErr 0x0 action 0x0
[97275.422073] ata2.00: irq_stat 0x40000008
[97275.426151] ata2.00: failed command: READ FPDMA QUEUED
[97275.431458] ata2.00: cmd 60/a0:20:00:88:da/06:00:2c:01:00/40 tag 4 ncq 868352 in
[97275.431458] res 41/40:00:00:8a:da/00:00:2c:01:00/40 Emask 0x409 (media error) <F>
[97275.447659] ata2.00: status: { DRDY ERR }
[97275.451820] ata2.00: error: { UNC }
[97275.456598] ata2.00: configured for UDMA/133
[97275.461071] md/raid1:md1: sdb4: rescheduling sector 5038311424
[97275.467217] ata2: EH complete
[97315.434511] md/raid1:md1: redirecting sector 5038311424 to other mirror: sda4
[97326.470166] ata2.00: exception Emask 0x0 SAct 0x3c00 SErr 0x0 action 0x0
[97326.477114] ata2.00: irq_stat 0x40000008
[97326.481227] ata2.00: failed command: READ FPDMA QUEUED
[97326.486587] ata2.00: cmd 60/40:50:a0:8e:dc/05:00:2c:01:00/40 tag 10 ncq 688128 in
[97326.486587] res 41/40:00:d0:90:dc/00:00:2c:01:00/40 Emask 0x409 (media error) <F>
[97326.502940] ata2.00: status: { DRDY ERR }
[97326.507113] ata2.00: error: { UNC }
[97326.511907] ata2.00: configured for UDMA/133
[97326.516396] md/raid1:md1: sdb4: rescheduling sector 5038444192
[97326.522593] ata2: EH complete
[97357.419145] ata2.00: exception Emask 0x0 SAct 0x10 SErr 0x0 action 0x0
[97357.425904] ata2.00: irq_stat 0x40000008
[97357.430012] ata2.00: failed command: READ FPDMA QUEUED
[97357.435335] ata2.00: cmd 60/08:20:a0:92:dc/00:00:2c:01:00/40 tag 4 ncq 4096 in
[97357.435335] res 41/40:00:a0:92:dc/00:00:2c:01:00/40 Emask 0x409 (media error) <F>
[97357.451326] ata2.00: status: { DRDY ERR }
[97357.455517] ata2.00: error: { UNC }
[97357.460322] ata2.00: configured for UDMA/133
[97357.464840] ata2: EH complete
[97357.476086] md/raid1:md1: read error corrected (8 sectors at 5038707360 on sdb4)
[97369.692494] md/raid1:md1: redirecting sector 5038444192 to other mirror: sda4
[97376.968260] ata2.00: exception Emask 0x0 SAct 0x60000000 SErr 0x0 action 0x0
[97376.975564] ata2.00: irq_stat 0x40000008
[97376.979632] ata2.00: failed command: READ FPDMA QUEUED
[97376.984981] ata2.00: cmd 60/00:e8:00:c0:da/08:00:2c:01:00/40 tag 29 ncq 1048576 in
[97376.984981] res 41/40:00:07:c5:da/00:00:2c:01:00/40 Emask 0x409 (media error) <F>
[97377.001340] ata2.00: status: { DRDY ERR }
[97377.005496] ata2.00: error: { UNC }
[97377.010279] ata2.00: configured for UDMA/133
[97377.014739] md/raid1:md1: sdb4: rescheduling sector 5038325760
[97377.020884] ata2: EH complete
[97385.351982] md/raid1:md1: redirecting sector 5038325760 to other mirror: sda4