10-18-2020, 11:37 AM
Update: I bought a new SATA adapter, plugged it in, and everything seemed to work. However, trying to actually use the partition caused a panic.
I rebuilt the RAID-1 virtual drive, reformatted at EXT4. Then trying to mount the new partition, I get this: (md127 was what I think the kernel automatically detected after I deleted the mdadm file and removed the partition info from fstab).
[ 536.361958] md127: detected capacity change from 12000003358720 to 0
[ 536.361985] md: md127 stopped.
[ 598.569637] md/raid1:md0: not clean -- starting background reconstruction
[ 598.569642] md/raid1:md0: active with 2 out of 2 mirrors
[ 598.637543] md0: detected capacity change from 0 to 12000003358720
[ 598.701396] md: resync of RAID array md0
[ 691.037890] ata1.00: failed to read SCR 1 (Emask=0x40)
[ 691.037910] ata1.01: failed to read SCR 1 (Emask=0x40)
[ 691.037915] ata1.02: failed to read SCR 1 (Emask=0x40)
[ 691.087979] Internal error: synchronous external abort: 96000210 [#1] PREEMPT SMP
[ 691.088796] Modules linked in: xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp ip6table_mangle ip6table_nat iptable_mangle iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables nfnetlink ip6table_filter ip6_tables iptable_filter bpfilter bridge governor_performance bnep snd_soc_hdmi_codec hci_uart btqca btrtl btbcm btintel snd_soc_simple_card snd_soc_audio_graph_card hantro_vpu© pwm_fan rockchip_vdec© snd_soc_simple_card_utils bluetooth v4l2_h264 rockchip_rga videobuf2_dma_contig videobuf2_vmalloc v4l2_mem2mem videobuf2_dma_sg fusb302 videobuf2_memops tcpm typec snd_soc_es8316 videobuf2_v4l2 rc_cec dw_hdmi_cec panfrost snd_soc_rockchip_i2s gpu_sched dw_hdmi_i2s_audio videobuf2_common zstd snd_soc_core rfkill videodev snd_pcm_dmaengine snd_pcm mc snd_timer snd soundcore sg cpufreq_dt zram sch_fq_codel g_serial libcomposite ip_tables x_tables autofs4 raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx raid0 multipath
[ 691.088909] linear raid1 md_mod realtek rockchipdrm analogix_dp dw_hdmi dwmac_rk dw_mipi_dsi stmmac_platform drm_kms_helper stmmac cec mdio_xpcs rc_core drm drm_panel_orientation_quirks
[ 691.099456] CPU: 2 PID: 214 Comm: scsi_eh_0 Tainted: G C 5.8.16-rockchip64 #20.08.12
[ 691.100379] Hardware name: Pine64 RockPro64 v2.1 (DT)
[ 691.100901] pstate: 80000005 (Nzcv daif -PAN -UAO BTYPE=--)
[ 691.101483] pc : ahci_scr_read+0x44/0x88
[ 691.101890] lr : sata_scr_read+0x70/0x90
[ 691.102297] sp : ffff8000128fbad0
[ 691.102640] x29: ffff8000128fbad0 x28: 0000000000000000
[ 691.103187] x27: ffff800011acb828 x26: ffff0000f5262ca8
[ 691.103733] x25: ffff0000f617ab80 x24: ffff0000f5aea040
[ 691.104282] x23: 0000000000000003 x22: 0000000000000000
[ 691.104829] x21: ffff0000f5aea3e0 x20: ffff0000f5aea040
[ 691.105375] x19: ffff0000f5aea440 x18: 0000000000000020
[ 691.105920] x17: 0000000000000000 x16: 0000000000000000
[ 691.106468] x15: ffff80001181e000 x14: ffff800011a06242
[ 691.107014] x13: 0000000000000000 x12: ffff800011a05000
[ 691.107561] x11: ffff80001181e000 x10: ffff800011a05888
[ 691.108106] x9 : 0000000000000000 x8 : 0000000000000004
[ 691.108654] x7 : ffff0000f5aea040 x6 : ffff8000128fbb74
[ 691.109200] x5 : 0000000000000001 x4 : ffff800010f3b098
[ 691.109747] x3 : 0000000000000100 x2 : ffff8000128fbb74
[ 691.110300] x1 : ffff800011cd5130 x0 : ffff800011cd5000
[ 691.110847] Call trace:
[ 691.111107] ahci_scr_read+0x44/0x88
[ 691.111479] ata_eh_link_autopsy+0x88/0xbb8
[ 691.111912] ata_eh_autopsy+0xec/0x100
[ 691.112303] sata_pmp_error_handler+0x4c/0x950
[ 691.112764] ahci_error_handler+0x40/0x88
[ 691.113179] ata_scsi_port_error_handler+0x238/0x5f8
[ 691.113690] ata_scsi_error+0x94/0xd8
[ 691.114071] scsi_error_handler+0xa0/0x388
[ 691.114500] kthread+0x118/0x150
[ 691.114837] ret_from_fork+0x10/0x34
[ 691.115214] Code: b8615881 340001c1 8b21c061 8b010001 (b9400021)
[ 691.115843] ---[ end trace 9880ab5860dacb97 ]--
I'll reboot, since maybe that's needed for the kernel to recognise the md127 -> md0. I also opted for EXT4 this time, maybe that's easier on the Kernel. Who knows. I'm running out of options.
I rebuilt the RAID-1 virtual drive, reformatted at EXT4. Then trying to mount the new partition, I get this: (md127 was what I think the kernel automatically detected after I deleted the mdadm file and removed the partition info from fstab).
[ 536.361958] md127: detected capacity change from 12000003358720 to 0
[ 536.361985] md: md127 stopped.
[ 598.569637] md/raid1:md0: not clean -- starting background reconstruction
[ 598.569642] md/raid1:md0: active with 2 out of 2 mirrors
[ 598.637543] md0: detected capacity change from 0 to 12000003358720
[ 598.701396] md: resync of RAID array md0
[ 691.037890] ata1.00: failed to read SCR 1 (Emask=0x40)
[ 691.037910] ata1.01: failed to read SCR 1 (Emask=0x40)
[ 691.037915] ata1.02: failed to read SCR 1 (Emask=0x40)
[ 691.087979] Internal error: synchronous external abort: 96000210 [#1] PREEMPT SMP
[ 691.088796] Modules linked in: xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp ip6table_mangle ip6table_nat iptable_mangle iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables nfnetlink ip6table_filter ip6_tables iptable_filter bpfilter bridge governor_performance bnep snd_soc_hdmi_codec hci_uart btqca btrtl btbcm btintel snd_soc_simple_card snd_soc_audio_graph_card hantro_vpu© pwm_fan rockchip_vdec© snd_soc_simple_card_utils bluetooth v4l2_h264 rockchip_rga videobuf2_dma_contig videobuf2_vmalloc v4l2_mem2mem videobuf2_dma_sg fusb302 videobuf2_memops tcpm typec snd_soc_es8316 videobuf2_v4l2 rc_cec dw_hdmi_cec panfrost snd_soc_rockchip_i2s gpu_sched dw_hdmi_i2s_audio videobuf2_common zstd snd_soc_core rfkill videodev snd_pcm_dmaengine snd_pcm mc snd_timer snd soundcore sg cpufreq_dt zram sch_fq_codel g_serial libcomposite ip_tables x_tables autofs4 raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx raid0 multipath
[ 691.088909] linear raid1 md_mod realtek rockchipdrm analogix_dp dw_hdmi dwmac_rk dw_mipi_dsi stmmac_platform drm_kms_helper stmmac cec mdio_xpcs rc_core drm drm_panel_orientation_quirks
[ 691.099456] CPU: 2 PID: 214 Comm: scsi_eh_0 Tainted: G C 5.8.16-rockchip64 #20.08.12
[ 691.100379] Hardware name: Pine64 RockPro64 v2.1 (DT)
[ 691.100901] pstate: 80000005 (Nzcv daif -PAN -UAO BTYPE=--)
[ 691.101483] pc : ahci_scr_read+0x44/0x88
[ 691.101890] lr : sata_scr_read+0x70/0x90
[ 691.102297] sp : ffff8000128fbad0
[ 691.102640] x29: ffff8000128fbad0 x28: 0000000000000000
[ 691.103187] x27: ffff800011acb828 x26: ffff0000f5262ca8
[ 691.103733] x25: ffff0000f617ab80 x24: ffff0000f5aea040
[ 691.104282] x23: 0000000000000003 x22: 0000000000000000
[ 691.104829] x21: ffff0000f5aea3e0 x20: ffff0000f5aea040
[ 691.105375] x19: ffff0000f5aea440 x18: 0000000000000020
[ 691.105920] x17: 0000000000000000 x16: 0000000000000000
[ 691.106468] x15: ffff80001181e000 x14: ffff800011a06242
[ 691.107014] x13: 0000000000000000 x12: ffff800011a05000
[ 691.107561] x11: ffff80001181e000 x10: ffff800011a05888
[ 691.108106] x9 : 0000000000000000 x8 : 0000000000000004
[ 691.108654] x7 : ffff0000f5aea040 x6 : ffff8000128fbb74
[ 691.109200] x5 : 0000000000000001 x4 : ffff800010f3b098
[ 691.109747] x3 : 0000000000000100 x2 : ffff8000128fbb74
[ 691.110300] x1 : ffff800011cd5130 x0 : ffff800011cd5000
[ 691.110847] Call trace:
[ 691.111107] ahci_scr_read+0x44/0x88
[ 691.111479] ata_eh_link_autopsy+0x88/0xbb8
[ 691.111912] ata_eh_autopsy+0xec/0x100
[ 691.112303] sata_pmp_error_handler+0x4c/0x950
[ 691.112764] ahci_error_handler+0x40/0x88
[ 691.113179] ata_scsi_port_error_handler+0x238/0x5f8
[ 691.113690] ata_scsi_error+0x94/0xd8
[ 691.114071] scsi_error_handler+0xa0/0x388
[ 691.114500] kthread+0x118/0x150
[ 691.114837] ret_from_fork+0x10/0x34
[ 691.115214] Code: b8615881 340001c1 8b21c061 8b010001 (b9400021)
[ 691.115843] ---[ end trace 9880ab5860dacb97 ]--
I'll reboot, since maybe that's needed for the kernel to recognise the md127 -> md0. I also opted for EXT4 this time, maybe that's easier on the Kernel. Who knows. I'm running out of options.