After starting the system, my soft (mdadm) RAID1 (mirror) drives didn't start properly.
I have 3 WesternDigital 2-T drives in the system:
Code: Select all
/dev/sda: ATA WDC WD2000FYYZ-0 1K04
/dev/sdb: ATA WDC WD2000FYYZ-0 1K04
/dev/sdc: ATA WDC WD2000FYYZ-0 1K04
Code: Select all
apps /var/log # for f in /dev/sd{a,b,c}; do echo $f; smartctl -i $f; smartctl -H $f; done
/dev/sda
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.27-gentoo-r1] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Re
Device Model: WDC WD2000FYYZ-01UL1B3
Serial Number: WD-WMC1P0F42F5Y
LU WWN Device Id: 5 0014ee 059796fbc
Firmware Version: 01.01K04
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Tue Feb 25 14:04:47 2020 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.27-gentoo-r1] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
/dev/sdb
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.27-gentoo-r1] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Re
Device Model: WDC WD2000FYYZ-01UL1B1
Serial Number: WD-WCC1PLEN7LEP
LU WWN Device Id: 5 0014ee 2b5253de4
Firmware Version: 01.01K02
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Tue Feb 25 14:04:47 2020 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.27-gentoo-r1] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
/dev/sdc
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.27-gentoo-r1] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Re
Device Model: WDC WD2000FYYZ-01UL1B1
Serial Number: WD-WCC1PLEN7TSH
LU WWN Device Id: 5 0014ee 2b52539a9
Firmware Version: 01.01K02
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Size: 512 bytes logical/physical
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Tue Feb 25 14:04:47 2020 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.27-gentoo-r1] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
Code: Select all
# md0 -- /boot sda1, sdb1, sdc1
# md1 -- / sda2, sdb2, sdc2(spare)
# md4 -- LVM sda3, sdb3, sdc3(spare)
# /dev/sdd 4Gb backup
# mdadm --examine --brief --scan --config=partition
ARRAY /dev/md/0 metadata=1.0 UUID=bef11d03:c109d8c6:27cfea12:e81de4ab name=apps:0
ARRAY /dev/md/1 metadata=1.2 UUID=62912fbe:63505255:33686c48:55f3919f name=apps:1 spares=1
ARRAY /dev/md/4 metadata=1.2 UUID=e75144aa:42bc2701:7b0363ba:e528bb48 name=apps:4 spares=1
Code: Select all
# cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] [linear] [multipath]
md0 : active raid1 sdc1[5]
102336 blocks super 1.0 [3/1] [U__]
md4 : active raid1 sdc3[4]
1950134144 blocks super 1.2 [2/1] [U_]
md1 : active raid1 sdc2[3]
3143616 blocks super 1.2 [2/1] [U_]
unused devices: <none>
Code: Select all
mdadm /dev/md0 -a /dev/sda1 /dev/sdb1
mdadm: re-added /dev/sda1
mdadm: added /dev/sdb1
# cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] [linear] [multipath]
md0 : active raid1 sdb1[4] sda1[3] sdc1[5]
102336 blocks super 1.0 [3/3] [UUU]
md4 : active raid1 sdc3[4]
1950134144 blocks super 1.2 [2/1] [U_]
md1 : active raid1 sdc2[3]
3143616 blocks super 1.2 [2/1] [U_]
unused devices: <none>
Code: Select all
# mdadm --stop /dev/md0
mdadm: stopped /dev/md0
# mdadm -A --verbose /dev/md0
mdadm: looking for devices for /dev/md0
mdadm: No super block found on /dev/sdc3 (Expected magic a92b4efc, got 00000000)
mdadm: no RAID superblock on /dev/sdc3
mdadm: No super block found on /dev/sdc2 (Expected magic a92b4efc, got 00000000)
mdadm: no RAID superblock on /dev/sdc2
mdadm: No super block found on /dev/sdc (Expected magic a92b4efc, got 00000000)
mdadm: no RAID superblock on /dev/sdc
mdadm: /dev/sdc1 is identified as a member of /dev/md0, slot 0.
mdadm: no uptodate device for slot 1 of /dev/md0
mdadm: no uptodate device for slot 2 of /dev/md0
mdadm: added /dev/sdc1 to /dev/md0 as 0
mdadm: /dev/md0 has been started with 1 drive (out of 3).
but from the above output it looks like mdadm didn't find/try /dev/sd{a,b}1
I've also gone ahead and tried failing the devices and re-adding:
Code: Select all
mdadm /dev/md0 --fail /dev/sdc1 --remove /dev/sdc1
mdadm /dev/md0 --fail /dev/sdb1 --remove /dev/sdb1
mdadm /dev/md0 --re-add /dev/sdb1 --re-add /dev/sdc1


