Thank you for responding.
It looks like you don’t have the raid device mounted anywhere.
That makes sense. I removed files and directories from /mnt/raid
and the space used on /dev/mmcblk0p1
decreased correspondingly.
Steps to fix the problem:
configured fstab
:
# cat /etc/config/fstab
config global
option anon_swap '0'
option anon_mount '0'
option auto_swap '1'
option auto_mount '1'
option delay_root '5'
option check_fs '0'
config mount
option enabled '1'
option uuid '5e7f5135-c923-4ec5-b6b4-17e76908b4c0'
option target '/mnt/kingston'
config mount
option target '/mnt/raid'
option enabled '1'
option fstype 'btrfs'
option device '/dev/md0'
rebooted:
# reboot
check disks and blocks
# df -h
Filesystem Size Used Available Use% Mounted on
/dev/mmcblk0p1 7.3G 4.4G 3.0G 60% /
tmpfs 1011.1M 400.0K 1010.7M 0% /tmp
tmpfs 512.0K 4.0K 508.0K 1% /dev
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 3.7T 0 disk
sdb 8:16 0 3.7T 0 disk
mtdblock0 31:0 0 1M 0 disk
mtdblock1 31:1 0 7M 0 disk
mmcblk0 179:0 0 7.3G 0 disk
`-mmcblk0p1 179:1 0 7.3G 0 part /
mmcblk0boot0 179:8 0 4M 1 disk
mmcblk0boot1 179:16 0 4M 1 disk
mmcblk0rpmb 179:24 0 4M 0 disk
check the state of the device:
# mdadm --examine --brief /dev/sda /dev/sdb
ARRAY /dev/md/0 metadata=1.2 UUID=91da414e:c83be60a:c33b9493:07123c98 name=turris:0
only internal RAM visible:
# btrfs fi show
Label: none uuid: 1ecd23ea-3018-4a83-9072-d337b0d00c5c
Total devices 1 FS bytes used 4.31GiB
devid 1 size 7.28GiB used 7.28GiB path /dev/mmcblk0p1
bring up the RAID device:
# mdadm --assemble --scan
mdadm main: failed to get exclusive lock on mapfile
mdadm: /dev/md/0 has been started with 2 drives.
mount device:
# /dev/md0 /mnt/raid
-ash: /dev/md0: Permission denied
edit
# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath]
md0 : active raid1 sda[0] sdb[1]
3906887360 blocks super 1.2 [2/2] [UU]
[>....................] resync = 1.1% (46450944/3906887360) finish=324.8min speed=198041K/sec
unused devices: <none>
/ edit
edit 2
Does this mean that one of the drives has failed? It was new.
[ 608.244476] md/raid1:md0: Disk failure on sdb, disabling device.
full text:
# dmesg
....
[ 217.535134] md: md0 stopped.
[ 217.536088] md: bind<sdb>
[ 217.536287] md: bind<sda>
[ 217.536621] md/raid1:md0: not clean -- starting background reconstruction
[ 217.536628] md/raid1:md0: active with 2 out of 2 mirrors
[ 217.536685] md0: detected capacity change from 0 to 4000652656640
[ 217.537211] md: resync of RAID array md0
[ 217.537219] md: minimum _guaranteed_ speed: 1000 KB/sec/disk.
[ 217.537224] md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for resync.
[ 217.537237] md: using 128k window, over a total of 3906887360k.
[ 217.786133] BTRFS: device fsid 6282e17f-2797-49dc-b4f9-e9452c35b922 devid 1 transid 14 /dev/md0
[ 217.845325] BTRFS info (device md0): disk space caching is enabled
[ 217.845332] BTRFS: has skinny extents
[ 547.978710] ata1.00: exception Emask 0x0 SAct 0xfc000 SErr 0x0 action 0x6 frozen
[ 547.986154] ata1.00: cmd 60/80:70:80:a2:d3/00:00:06:00:00/40 tag 14 ncq 65536 in
[ 547.986154] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 548.001004] ata1.00: cmd 60/80:78:00:a3:d3/00:00:06:00:00/40 tag 15 ncq 65536 in
[ 548.001004] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 548.015906] ata1.00: cmd 60/80:80:80:a3:d3/00:00:06:00:00/40 tag 16 ncq 65536 in
[ 548.015906] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 548.030774] ata1.00: cmd 60/80:88:00:a4:d3/00:00:06:00:00/40 tag 17 ncq 65536 in
[ 548.030774] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 548.045619] ata1.00: cmd 60/80:90:80:a4:d3/00:00:06:00:00/40 tag 18 ncq 65536 in
[ 548.045619] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 548.060494] ata1.00: cmd 60/00:98:00:a5:d3/01:00:06:00:00/40 tag 19 ncq 131072 in
[ 548.060494] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 548.075499] ata1: hard resetting link
[ 548.075531] ata2.00: exception Emask 0x0 SAct 0x7e0 SErr 0x0 action 0x6 frozen
[ 548.082801] ata2.00: cmd 61/80:28:80:96:d3/00:00:06:00:00/40 tag 5 ncq 65536 out
[ 548.082801] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 548.097710] ata2.00: cmd 61/80:30:00:97:d3/00:00:06:00:00/40 tag 6 ncq 65536 out
[ 548.097710] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 548.112552] ata2.00: cmd 61/00:38:80:97:d3/01:00:06:00:00/40 tag 7 ncq 131072 out
[ 548.112552] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 548.127475] ata2.00: cmd 61/00:40:80:98:d3/01:00:06:00:00/40 tag 8 ncq 131072 out
[ 548.127475] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 548.142429] ata2.00: cmd 61/00:48:80:99:d3/05:00:06:00:00/40 tag 9 ncq 655360 out
[ 548.142429] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 548.157409] ata2.00: cmd 61/00:50:80:9e:d3/04:00:06:00:00/40 tag 10 ncq 524288 out
[ 548.157409] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 548.172442] ata2: hard resetting link
[ 558.078352] ata1: softreset failed (1st FIS failed)
[ 558.083282] ata1: hard resetting link
[ 558.178343] ata2: softreset failed (1st FIS failed)
[ 558.183281] ata2: hard resetting link
[ 568.088037] ata1: softreset failed (1st FIS failed)
[ 568.092932] ata1: hard resetting link
[ 568.188065] ata2: softreset failed (1st FIS failed)
[ 568.192973] ata2: hard resetting link
[ 603.086962] ata1: softreset failed (1st FIS failed)
[ 603.091859] ata1: limiting SATA link speed to 3.0 Gbps
[ 603.091865] ata1: hard resetting link
[ 603.186957] ata2: softreset failed (1st FIS failed)
[ 603.191849] ata2: limiting SATA link speed to 3.0 Gbps
[ 603.191853] ata2: hard resetting link
[ 608.196818] ata2: softreset failed (1st FIS failed)
[ 608.201731] ata2: reset failed, giving up
[ 608.205752] ata2.00: disabled
[ 608.205759] ata2.00: device reported invalid CHS sector 0
[ 608.205764] ata2.00: device reported invalid CHS sector 0
[ 608.205767] ata2.00: device reported invalid CHS sector 0
[ 608.205771] ata2.00: device reported invalid CHS sector 0
[ 608.205774] ata2.00: device reported invalid CHS sector 0
[ 608.205778] ata2.00: device reported invalid CHS sector 0
[ 608.205797] ata2: EH complete
[ 608.205834] sd 1:0:0:0: [sdb] tag#11 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 608.205837] sd 1:0:0:0: [sdb] tag#13 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 608.205842] sd 1:0:0:0: [sdb] tag#13 CDB: opcode=0x8a 8a 00 00 00 00 00 06 d3 98 80 00 00 01 00 00 00
[ 608.205846] blk_update_request: I/O error, dev sdb, sector 114530432
[ 608.205873] sd 1:0:0:0: [sdb] tag#14 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 608.205878] sd 1:0:0:0: [sdb] tag#14 CDB: opcode=0x8a 8a 00 00 00 00 00 06 d3 97 80 00 00 01 00 00 00
[ 608.205880] blk_update_request: I/O error, dev sdb, sector 114530176
[ 608.205890] sd 1:0:0:0: [sdb] tag#15 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 608.205894] sd 1:0:0:0: [sdb] tag#15 CDB: opcode=0x8a 8a 00 00 00 00 00 06 d3 97 00 00 00 00 80 00 00
[ 608.205896] blk_update_request: I/O error, dev sdb, sector 114530048
[ 608.205904] sd 1:0:0:0: [sdb] tag#16 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 608.205908] sd 1:0:0:0: [sdb] tag#16 CDB: opcode=0x8a 8a 00 00 00 00 00 06 d3 96 80 00 00 00 80 00 00
[ 608.205910] blk_update_request: I/O error, dev sdb, sector 114529920
[ 608.231335] sd 1:0:0:0: [sdb] tag#11 CDB: opcode=0x8a 8a 00 00 00 00 00 06 d3 9e 80 00 00 04 00 00 00
[ 608.231340] blk_update_request: I/O error, dev sdb, sector 114531968
[ 608.237739] sd 1:0:0:0: [sdb] tag#12 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 608.237745] sd 1:0:0:0: [sdb] tag#12 CDB: opcode=0x8a 8a 00 00 00 00 00 06 d3 99 80 00 00 05 00 00 00
[ 608.237749] blk_update_request: I/O error, dev sdb, sector 114530688
[ 608.244476] md/raid1:md0: Disk failure on sdb, disabling device.
[ 608.244476] md/raid1:md0: Operation continuing on 1 devices.
[ 608.256273] md: md0: resync interrupted.
[ 608.296809] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[ 613.296664] ata1.00: qc timeout (cmd 0xec)
[ 613.296679] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[ 613.296687] ata1.00: revalidation failed (errno=-5)
[ 613.301581] ata1: hard resetting link
[ 623.306358] ata1: softreset failed (1st FIS failed)
[ 623.311257] ata1: hard resetting link
[ 633.316065] ata1: softreset failed (1st FIS failed)
[ 633.320961] ata1: hard resetting link
[ 668.313156] ata1: softreset failed (1st FIS failed)
[ 668.318050] ata1: limiting SATA link speed to 1.5 Gbps
[ 668.318055] ata1: hard resetting link
[ 673.522771] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[ 683.521994] ata1.00: qc timeout (cmd 0xec)
[ 683.522009] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[ 683.522014] ata1.00: revalidation failed (errno=-5)
[ 683.526908] ata1: hard resetting link
[ 693.531252] ata1: softreset failed (1st FIS failed)
[ 693.536151] ata1: hard resetting link
[ 703.540541] ata1: softreset failed (1st FIS failed)
[ 703.545436] ata1: hard resetting link
[ 738.538317] ata1: softreset failed (1st FIS failed)
[ 738.543214] ata1: hard resetting link
[ 743.747910] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[ 773.745950] ata1.00: qc timeout (cmd 0xec)
[ 773.745967] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[ 773.745972] ata1.00: revalidation failed (errno=-5)
[ 773.750863] ata1.00: disabled
[ 773.750875] ata1.00: device reported invalid CHS sector 0
[ 773.750880] ata1.00: device reported invalid CHS sector 0
[ 773.750884] ata1.00: device reported invalid CHS sector 0
[ 773.750887] ata1.00: device reported invalid CHS sector 0
[ 773.750890] ata1.00: device reported invalid CHS sector 0
[ 773.750894] ata1.00: device reported invalid CHS sector 0
[ 773.750906] ata1: hard resetting link
[ 783.755188] ata1: softreset failed (1st FIS failed)
[ 783.760117] ata1: hard resetting link
[ 793.764459] ata1: softreset failed (1st FIS failed)
[ 793.769357] ata1: hard resetting link
[ 828.762068] ata1: softreset failed (1st FIS failed)
[ 828.766980] ata1: hard resetting link
[ 833.971779] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[ 833.971810] ata1: EH complete
[ 833.971845] sd 0:0:0:0: [sda] tag#28 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 833.971848] sd 0:0:0:0: [sda] tag#22 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 833.971853] sd 0:0:0:0: [sda] tag#22 CDB: opcode=0x88 88 00 00 00 00 00 06 d3 a5 00 00 00 01 00 00 00
[ 833.971858] sd 0:0:0:0: [sda] tag#28 CDB: opcode=0x35 35 00 00 00 00 00 00 00 00 00
[ 833.971863] blk_update_request: I/O error, dev sda, sector 114533632
[ 833.971865] blk_update_request: I/O error, dev sda, sector 8
[ 833.971869] md: super_written gets error=-5
[ 833.983931] sd 0:0:0:0: [sda] tag#23 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 833.983938] sd 0:0:0:0: [sda] tag#23 CDB: opcode=0x88 88 00 00 00 00 00 06 d3 a4 80 00 00 00 80 00 00
[ 833.983942] blk_update_request: I/O error, dev sda, sector 114533504
[ 833.990642] sd 0:0:0:0: [sda] tag#24 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 833.990651] sd 0:0:0:0: [sda] tag#24 CDB: opcode=0x88 88 00 00 00 00 00 06 d3 a4 00 00 00 00 80 00 00
[ 833.990655] blk_update_request: I/O error, dev sda, sector 114533376
[ 833.997048] sd 0:0:0:0: [sda] tag#25 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 833.997055] sd 0:0:0:0: [sda] tag#25 CDB: opcode=0x88 88 00 00 00 00 00 06 d3 a3 80 00 00 00 80 00 00
[ 833.997059] blk_update_request: I/O error, dev sda, sector 114533248
[ 834.003444] sd 0:0:0:0: [sda] tag#26 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 834.003450] sd 0:0:0:0: [sda] tag#26 CDB: opcode=0x88 88 00 00 00 00 00 06 d3 a3 00 00 00 00 80 00 00
[ 834.003459] blk_update_request: I/O error, dev sda, sector 114533120
[ 834.009836] sd 0:0:0:0: [sda] tag#27 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 834.009842] sd 0:0:0:0: [sda] tag#27 CDB: opcode=0x88 88 00 00 00 00 00 06 d3 a2 80 00 00 00 80 00 00
[ 834.009846] blk_update_request: I/O error, dev sda, sector 114532992
[ 834.016230] sd 0:0:0:0: [sda] tag#29 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 834.016236] sd 0:0:0:0: [sda] tag#29 CDB: opcode=0x88 88 00 00 00 00 01 d1 c0 bd 00 00 00 00 08 00 00
[ 834.016240] blk_update_request: I/O error, dev sda, sector 7814036736
[ 834.022712] sd 0:0:0:0: [sda] tag#30 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 834.022718] sd 0:0:0:0: [sda] tag#30 CDB: opcode=0x88 88 00 00 00 00 00 06 d3 a5 00 00 00 00 08 00 00
[ 834.022722] blk_update_request: I/O error, dev sda, sector 114533632
[ 834.029236] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 834.029243] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x88 88 00 00 00 00 01 d1 c0 bd 70 00 00 00 08 00 00
[ 834.029248] blk_update_request: I/O error, dev sda, sector 7814036848
[ 834.035785] md/raid1:md0: sda: unrecoverable I/O read error for block 114271488
[ 834.043216] md/raid1:md0: sda: unrecoverable I/O read error for block 114271616
[ 834.050624] md/raid1:md0: sda: unrecoverable I/O read error for block 114271360
[ 834.058065] md/raid1:md0: sda: unrecoverable I/O read error for block 114271232
[ 834.065488] md/raid1:md0: sda: unrecoverable I/O read error for block 114271104
[ 834.072917] md/raid1:md0: sda: unrecoverable I/O read error for block 114270976
[ 834.080320] md/raid1:md0: sda: unrecoverable I/O read error for block 114270848
[ 834.087977] md: checkpointing resync of md0.
[ 834.088039] md: super_written gets error=-5
[ 834.088104] md: super_written gets error=-5
[ 834.088130] RAID1 conf printout:
[ 834.088133] --- wd:1 rd:2
[ 834.088137] disk 0, wo:0, o:1, dev:sda
[ 834.088140] disk 1, wo:1, o:0, dev:sdb
[ 834.121736] RAID1 conf printout:
[ 834.121742] --- wd:1 rd:2
[ 834.121746] disk 0, wo:0, o:1, dev:sda
[ 834.121796] md: super_written gets error=-5
[ 834.121888] md: super_written gets error=-5
[ 834.121941] md: super_written gets error=-5
[ 834.121998] md: resync of RAID array md0
[ 834.122002] md: minimum _guaranteed_ speed: 1000 KB/sec/disk.
[ 834.122005] md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for resync.
[ 834.122010] md: using 128k window, over a total of 3906887360k.
[ 834.122206] md: md0: resync done.
[ 834.122439] md: super_written gets error=-5
[ 834.122492] md: super_written gets error=-5
/ edit 2
edit 3
both mass-storage devices visible:
# btrfs fi show
Label: none uuid: 1ecd23ea-3018-4a83-9072-d337b0d00c5c
Total devices 1 FS bytes used 1.64GiB
devid 1 size 7.28GiB used 7.28GiB path /dev/mmcblk0p1
Label: none uuid: 6282e17f-2797-49dc-b4f9-e9452c35b922
Total devices 1 FS bytes used 1.29GiB
devid 1 size 3.64TiB used 4.02GiB path /dev/md0
in a separate window, watching dmesg
while btrfs fi show
operations running:
# dmesg
...
[ 1421.346748] md: md0 stopped.
[ 1421.348325] md: bind<sdb>
[ 1421.348538] md: bind<sda>
[ 1421.348825] md/raid1:md0: not clean -- starting background reconstruction
[ 1421.348832] md/raid1:md0: active with 2 out of 2 mirrors
[ 1421.348882] md0: detected capacity change from 0 to 4000652656640
[ 1421.349202] md: resync of RAID array md0
[ 1421.349209] md: minimum _guaranteed_ speed: 1000 KB/sec/disk.
[ 1421.349212] md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for resync.
[ 1421.349217] md: using 128k window, over a total of 3906887360k.
[ 1421.593735] BTRFS: device fsid 6282e17f-2797-49dc-b4f9-e9452c35b922 devid 1 transid 14 /dev/md0
[ 1421.652649] BTRFS info (device md0): disk space caching is enabled
[ 1421.652657] BTRFS: has skinny extents
[ 1458.949700] ata2.00: exception Emask 0x0 SAct 0x40000003 SErr 0x0 action 0x6 frozen
[ 1458.957386] ata2.00: cmd 61/80:00:00:91:25/07:00:00:00:00/40 tag 0 ncq 983040 out
[ 1458.957386] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 1458.972317] ata2.00: cmd 61/00:08:80:98:25/05:00:00:00:00/40 tag 1 ncq 655360 out
[ 1458.972317] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 1458.987252] ata2.00: cmd 61/00:f0:00:90:25/01:00:00:00:00/40 tag 30 ncq 131072 out
[ 1458.987252] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 1459.002255] ata2: hard resetting link
[ 1461.879489] ata1.00: exception Emask 0x0 SAct 0xc000000 SErr 0x0 action 0x6 frozen
[ 1461.887093] ata1.00: cmd 60/00:d0:80:9d:25/02:00:00:00:00/40 tag 26 ncq 262144 in
[ 1461.887093] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 1461.902038] ata1.00: cmd 60/08:d8:00:be:c0/00:00:d1:01:00/40 tag 27 ncq 4096 in
[ 1461.902038] res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[ 1461.916877] ata1: hard resetting link
[ 1469.008873] ata2: softreset failed (1st FIS failed)
[ 1469.013768] ata2: hard resetting link
[ 1471.918629] ata1: softreset failed (1st FIS failed)
[ 1471.923526] ata1: hard resetting link
[ 1479.018042] ata2: softreset failed (1st FIS failed)
[ 1479.022940] ata2: hard resetting link
[ 1481.927805] ata1: softreset failed (1st FIS failed)
[ 1481.932717] ata1: hard resetting link
[ 1514.025307] ata2: softreset failed (1st FIS failed)
[ 1514.030202] ata2: limiting SATA link speed to 1.5 Gbps
[ 1514.030208] ata2: hard resetting link
[ 1516.925087] ata1: softreset failed (1st FIS failed)
[ 1516.929982] ata1: limiting SATA link speed to 1.5 Gbps
[ 1516.929987] ata1: hard resetting link
[ 1519.034930] ata2: softreset failed (1st FIS failed)
[ 1519.039832] ata2: reset failed, giving up
[ 1519.043851] ata2.00: disabled
[ 1519.043857] ata2.00: device reported invalid CHS sector 0
[ 1519.043862] ata2.00: device reported invalid CHS sector 0
[ 1519.043867] ata2.00: device reported invalid CHS sector 0
[ 1519.043881] ata2: EH complete
[ 1519.043913] sd 1:0:0:0: [sdb] tag#2 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 1519.043923] sd 1:0:0:0: [sdb] tag#2 CDB: opcode=0x8a 8a 00 00 00 00 00 00 25 90 00 00 00 01 00 00 00
[ 1519.043927] sd 1:0:0:0: [sdb] tag#3 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 1519.043932] blk_update_request: I/O error, dev sdb, sector 2461696
[ 1519.043933] sd 1:0:0:0: [sdb] tag#3 CDB: opcode=0x8a 8a 00 00 00 00 00 00 25 98 80 00 00 05 00 00 00
[ 1519.043937] blk_update_request: I/O error, dev sdb, sector 2463872
[ 1519.043982] sd 1:0:0:0: [sdb] tag#4 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 1519.043987] sd 1:0:0:0: [sdb] tag#4 CDB: opcode=0x8a 8a 00 00 00 00 00 00 25 91 00 00 00 07 80 00 00
[ 1519.043989] blk_update_request: I/O error, dev sdb, sector 2461952
[ 1519.044067] md/raid1:md0: Disk failure on sdb, disabling device.
[ 1519.044067] md/raid1:md0: Operation continuing on 1 devices.
[ 1519.044130] md: md0: resync interrupted.
[ 1522.134703] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[ 1527.134192] ata1.00: qc timeout (cmd 0xec)
[ 1527.134207] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[ 1527.134212] ata1.00: revalidation failed (errno=-5)
[ 1527.139104] ata1: hard resetting link
[ 1537.142861] ata1: softreset failed (1st FIS failed)
[ 1537.147756] ata1: hard resetting link
[ 1547.141609] ata1: softreset failed (1st FIS failed)
[ 1547.146504] ata1: hard resetting link
[ 1582.147707] ata1: softreset failed (1st FIS failed)
[ 1582.152605] ata1: hard resetting link
[ 1587.357190] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[ 1597.356112] ata1.00: qc timeout (cmd 0xec)
[ 1597.356127] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[ 1597.356132] ata1.00: revalidation failed (errno=-5)
[ 1597.361027] ata1: hard resetting link
[ 1607.364978] ata1: softreset failed (1st FIS failed)
[ 1607.369873] ata1: hard resetting link
[ 1617.373904] ata1: softreset failed (1st FIS failed)
[ 1617.378799] ata1: hard resetting link
[ 1652.370519] ata1: softreset failed (1st FIS failed)
[ 1652.375415] ata1: hard resetting link
[ 1657.580053] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[ 1687.577076] ata1.00: qc timeout (cmd 0xec)
[ 1687.577091] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[ 1687.577096] ata1.00: revalidation failed (errno=-5)
[ 1687.582019] ata1.00: disabled
[ 1687.582032] ata1.00: device reported invalid CHS sector 0
[ 1687.582037] ata1.00: device reported invalid CHS sector 0
[ 1687.582049] ata1: hard resetting link
[ 1697.586139] ata1: softreset failed (1st FIS failed)
[ 1697.591034] ata1: hard resetting link
[ 1707.595257] ata1: softreset failed (1st FIS failed)
[ 1707.600178] ata1: hard resetting link
[ 1742.592142] ata1: softreset failed (1st FIS failed)
[ 1742.597039] ata1: hard resetting link
[ 1747.801673] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[ 1747.801703] ata1: EH complete
[ 1747.801739] sd 0:0:0:0: [sda] tag#29 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 1747.801742] sd 0:0:0:0: [sda] tag#30 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 1747.801748] sd 0:0:0:0: [sda] tag#30 CDB: opcode=0x88 88 00 00 00 00 00 00 25 9d 80 00 00 02 00 00 00
[ 1747.801752] sd 0:0:0:0: [sda] tag#29 CDB: opcode=0x88 88 00 00 00 00 01 d1 c0 be 00 00 00 00 08 00 00
[ 1747.801756] blk_update_request: I/O error, dev sda, sector 7814036992
[ 1747.801778] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 1747.801782] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x35 35 00 00 00 00 00 00 00 00 00
[ 1747.801787] blk_update_request: I/O error, dev sda, sector 8
[ 1747.801789] md: super_written gets error=-5
[ 1747.801848] sd 0:0:0:0: [sda] tag#1 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 1747.801853] sd 0:0:0:0: [sda] tag#1 CDB: opcode=0x88 88 00 00 00 00 01 d1 c0 be 00 00 00 00 08 00 00
[ 1747.801855] blk_update_request: I/O error, dev sda, sector 7814036992
[ 1747.801859] Buffer I/O error on dev sda, logical block 976754624, async page read
[ 1747.802151] sd 0:0:0:0: [sda] tag#2 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 1747.802156] sd 0:0:0:0: [sda] tag#2 CDB: opcode=0x88 88 00 00 00 00 01 d1 c0 bd 00 00 00 00 08 00 00
[ 1747.802159] blk_update_request: I/O error, dev sda, sector 7814036736
[ 1747.802199] sd 0:0:0:0: [sda] tag#4 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 1747.802203] sd 0:0:0:0: [sda] tag#4 CDB: opcode=0x88 88 00 00 00 00 01 d1 c0 bd 00 00 00 00 08 00 00
[ 1747.802205] blk_update_request: I/O error, dev sda, sector 7814036736
[ 1747.802208] Buffer I/O error on dev md0, logical block 976721824, async page read
[ 1747.802416] sd 1:0:0:0: [sdb] tag#5 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 1747.802421] sd 1:0:0:0: [sdb] tag#5 CDB: opcode=0x88 88 00 00 00 00 01 d1 c0 be 00 00 00 00 08 00 00
[ 1747.802424] blk_update_request: I/O error, dev sdb, sector 7814036992
[ 1747.802450] sd 1:0:0:0: [sdb] tag#6 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 1747.802455] sd 1:0:0:0: [sdb] tag#6 CDB: opcode=0x88 88 00 00 00 00 01 d1 c0 be 00 00 00 00 08 00 00
[ 1747.802457] blk_update_request: I/O error, dev sdb, sector 7814036992
[ 1747.802460] Buffer I/O error on dev sdb, logical block 976754624, async page read
[ 1747.868685] blk_update_request: I/O error, dev sda, sector 2465152
[ 1747.874982] sd 0:0:0:0: [sda] tag#5 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 1747.874995] sd 0:0:0:0: [sda] tag#5 CDB: opcode=0x88 88 00 00 00 00 00 00 25 9d 80 00 00 00 08 00 00
[ 1747.875003] blk_update_request: I/O error, dev sda, sector 2465152
[ 1747.881359] sd 1:0:0:0: [sdb] tag#8 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[ 1747.881368] sd 1:0:0:0: [sdb] tag#8 CDB: opcode=0x88 88 00 00 00 00 00 00 25 9d 80 00 00 00 08 00 00
[ 1747.881372] blk_update_request: I/O error, dev sdb, sector 2465152
[ 1747.887606] md/raid1:md0: sda: unrecoverable I/O read error for block 2203008
[ 1747.894891] md/raid1:md0: sda: unrecoverable I/O read error for block 2203136
[ 1747.902134] md/raid1:md0: sda: unrecoverable I/O read error for block 2203264
[ 1747.909350] md/raid1:md0: sda: unrecoverable I/O read error for block 2203392
[ 1747.916810] md: checkpointing resync of md0.
[ 1747.916856] md: super_written gets error=-5
[ 1747.916922] md: super_written gets error=-5
[ 1747.916948] RAID1 conf printout:
[ 1747.916952] --- wd:1 rd:2
[ 1747.916956] disk 0, wo:0, o:1, dev:sda
[ 1747.916959] disk 1, wo:1, o:0, dev:sdb
[ 1747.951666] RAID1 conf printout:
[ 1747.951672] --- wd:1 rd:2
[ 1747.951676] disk 0, wo:0, o:1, dev:sda
[ 1747.951746] md: super_written gets error=-5
[ 1747.951804] md: super_written gets error=-5
[ 1747.951848] md: super_written gets error=-5
[ 1747.951902] md: resync of RAID array md0
[ 1747.951907] md: minimum _guaranteed_ speed: 1000 KB/sec/disk.
[ 1747.951911] md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for resync.
[ 1747.951916] md: using 128k window, over a total of 3906887360k.
[ 1747.952111] md: md0: resync done.
[ 1747.952334] md: super_written gets error=-5
[ 1747.952381] md: super_written gets error=-5
oddly enough, the array has been mounted:
# df -h
Filesystem Size Used Available Use% Mounted on
/dev/mmcblk0p1 7.3G 1.7G 5.6G 23% /
tmpfs 1011.1M 468.0K 1010.7M 0% /tmp
tmpfs 512.0K 4.0K 508.0K 1% /dev
/dev/md0 3.6T 1.3G 3.6T 0% /mnt/raid
but is read-only:
/mnt/raid# touch foo
touch: foo: Read-only file system
If sdb
has failed, maybe this is reason why it is read-only.
/ edit 3
edit 4
Looks like sdb
is faulty:
# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath]
md0 : active raid1 sda[0] sdb[1](F)
3906887360 blocks super 1.2 [2/1] [U_]
unused devices: <none>
root@turris:~# mdadm --detail /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Fri Jul 14 07:55:09 2017
Raid Level : raid1
Array Size : 3906887360 (3725.90 GiB 4000.65 GB)
Used Dev Size : 3906887360 (3725.90 GiB 4000.65 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Update Time : Sat Jul 15 09:06:45 2017
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 1
Spare Devices : 0
Number Major Minor RaidDevice State
0 8 0 0 active sync /dev/sda
1 0 0 1 removed
1 8 16 - faulty spare /dev/sdb
Is the drive repairable or do I need to remove it and return it to Amazon?
/ edit 4
Thoughts?
Thanks.