Page MenuHomePhabricator

Degraded RAID on aqs1012
Closed, ResolvedPublic

Description

TASK AUTO-GENERATED by Nagios/Icinga RAID event handler

A degraded RAID (md) was detected on host aqs1012. An automatic snapshot of the current RAID status is attached below.

Please sync with the service owner to find the appropriate time window before actually replacing any failed hardware.

CRITICAL: State: degraded, Active: 8, Working: 8, Failed: 4, Spare: 0

$ sudo /usr/local/lib/nagios/plugins/get-raid-status-md
Personalities : [raid10] [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] 
md2 : active raid10 sdf2[3] sdh2[1] sde2[0] sdg2[2]
      3701655552 blocks super 1.2 512K chunks 2 near-copies [4/4] [UUUU]
      bitmap: 5/28 pages [20KB], 65536KB chunk

md0 : active raid10 sdc1[2](F) sda1[0](F) sdd1[3] sdb1[1]
      48791552 blocks super 1.2 512K chunks 2 near-copies [4/2] [_U_U]
      
md1 : active raid10 sdc2[2](F) sda2[0](F) sdd2[3] sdb2[1]
      3701655552 blocks super 1.2 512K chunks 2 near-copies [4/2] [_U_U]
      bitmap: 28/28 pages [112KB], 65536KB chunk

unused devices: <none>

Event Timeline

After looking at this unit, it seems like the server is healthy. @Eevans can you confirm these drives are actually bad? If so, which drives need to be replaced?

@VRiley-WMF apologies, I never looked at the server on Friday after you closed T395685 but —looking at it now— the errors for /dev/sdc never went away. I'm not even sure I can ascertain from dmesg the point where the drive was removed/inserted; Your closing comment was at 20:20 UTC on the 13th, was the drive removed/inserted near(ish) then?

At any rate, at about 01:15 yesterday, /dev/sda failed too. 🫠

So the current situation is that we have two failed SSDs: /dev/sda & /dev/sdc. If we lose anymore, we'll lose the host. 😬

Because they're in a failed state, I can't see the serial numbers anymore, but it looks like sda is the first device in the first controller, and sdc is the third.

eevans@aqs1012:~$ sudo lshw -class disk
  *-disk:0                  
       description: SCSI Disk
       physical id: 0
       bus info: scsi@2:0.0.0
       logical name: /dev/sda
       size: 1788GiB (1920GB)
       configuration: logicalsectorsize=512 sectorsize=4096
  *-disk:1
       description: ATA Disk
       product: HFS1T9G32FEH-BA1
       physical id: 1
       bus info: scsi@3:0.0.0
       logical name: /dev/sdb
       version: DD01
       serial: KN09N7919I0709R22
       size: 1788GiB (1920GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 logicalsectorsize=512 sectorsize=4096 signature=e37ffdbc
  *-disk:2
       description: SCSI Disk
       physical id: 2
       bus info: scsi@4:0.0.0
       logical name: /dev/sdc
       size: 1788GiB (1920GB)
       configuration: logicalsectorsize=512 sectorsize=4096
  *-disk:3
       description: ATA Disk
       product: HFS1T9G32FEH-BA1
       physical id: 3
       bus info: scsi@5:0.0.0
       logical name: /dev/sdd
       version: DD01
       serial: KN09N7919I0709R1Q
       size: 1788GiB (1920GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 logicalsectorsize=512 sectorsize=4096 signature=05c6ac22
  *-disk:0
       description: ATA Disk
       product: SSDSC2KB019T8R
       physical id: 0
       bus info: scsi@6:0.0.0
       logical name: /dev/sde
       version: DL69
       serial: PHYF9523015R1P9DGN
       size: 1788GiB (1920GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 logicalsectorsize=512 sectorsize=4096 signature=af57b587
  *-disk:1
       description: ATA Disk
       product: HFS1T9G32FEH-BA1
       physical id: 1
       bus info: scsi@7:0.0.0
       logical name: /dev/sdg
       version: DD01
       serial: KN09N7919I0709R1Y
       size: 1788GiB (1920GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 logicalsectorsize=512 sectorsize=4096 signature=6be61732
  *-disk:2
       description: ATA Disk
       product: HFS1T9G32FEH-BA1
       physical id: 2
       bus info: scsi@8:0.0.0
       logical name: /dev/sdh
       version: DD01
       serial: KN09N7919I0709R2B
       size: 1788GiB (1920GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 logicalsectorsize=512 sectorsize=4096 signature=f2a17480
  *-disk:3
       description: ATA Disk
       product: HFS1T9G32FEH-BA1
       physical id: 3
       bus info: scsi@9:0.0.0
       logical name: /dev/sdf
       version: DD01
       serial: KN09N7919I0709R20
       size: 1788GiB (1920GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 logicalsectorsize=512 sectorsize=4096 signature=87467afd
eevans@aqs1012:~$
eevans@aqs1012:~$ sudo mdadm --detail /dev/md1
/dev/md1:
           Version : 1.2
     Creation Time : Tue Nov 14 22:12:07 2023
        Raid Level : raid10
        Array Size : 3701655552 (3530.17 GiB 3790.50 GB)
     Used Dev Size : 1850827776 (1765.09 GiB 1895.25 GB)
      Raid Devices : 4
     Total Devices : 4
       Persistence : Superblock is persistent

     Intent Bitmap : Internal

       Update Time : Tue Jun 17 13:50:07 2025
             State : clean, degraded 
    Active Devices : 2
   Working Devices : 2
    Failed Devices : 2
     Spare Devices : 0

            Layout : near=2
        Chunk Size : 512K

Consistency Policy : bitmap

              Name : aqs1012:1  (local to host aqs1012)
              UUID : 7ee2e0d0:e9b06f88:52fbf6ca:4016584e
            Events : 1275166

    Number   Major   Minor   RaidDevice State
       -       0        0        0      removed
       1       8       18        1      active sync set-B   /dev/sdb2
       -       0        0        2      removed
       3       8       50        3      active sync set-B   /dev/sdd2

       0       8        2        -      faulty   /dev/sda2
       2       8       34        -      faulty   /dev/sdc2
eevans@aqs1012:~$

[ ... ]

Because they're in a failed state, I can't see the serial numbers anymore, but it looks like sda is the first device in the first controller, and sdc is the third.

If the DRAC is to be believed (maybe it caches them?), sda & sdc have serial numbers KN09N7919I0709R1S & KN09N7919I0709R1T respectively.

Is there a time when we can plan for me to look and try to swap at least one of those drives? I'll need to power down the unit to see where those drives may be located at. and then try to swap them out (most likely one by one)

if I recall correctly, this is one of the ones we've been having problems with replacing the drives?

Pinging @Eevans on this to see if there is a timeframe to shut down the server and check the serial numbers of the drives and start trying to replace them.

Is there a time when we can plan for me to look and try to swap at least one of those drives? I'll need to power down the unit to see where those drives may be located at. and then try to swap them out (most likely one by one)

if I recall correctly, this is one of the ones we've been having problems with replacing the drives?

It looks like we had a minor(ish) hiccup about a year and a half ago, resolved by reseating the SSD (T351320: aqs1012: reseat SSD (/dev/sdh)?)? That issue aside, I couldn't find any history of issues.

Pinging @Eevans on this to see if there is a timeframe to shut down the server and check the serial numbers of the drives and start trying to replace them.

Sure thing; Either give me a ping, or grab a spot on my calendar (but I am, or can be, free most times).

Thank you!

Is there a time when we can plan for me to look and try to swap at least one of those drives? I'll need to power down the unit to see where those drives may be located at. and then try to swap them out (most likely one by one)

if I recall correctly, this is one of the ones we've been having problems with replacing the drives?

It looks like we had a minor(ish) hiccup about a year and a half ago, resolved by reseating the SSD (T351320: aqs1012: reseat SSD (/dev/sdh)?)? That issue aside, I couldn't find any history of issues.

Ok, my bad, this obviously ignores the issue we had back in June (T395685). Not sure how I missed that.

At any rate, you replaced sdc then, and sdc is one of the two failed devices now. I do not know that they are the same device though, because Linux has a tendency to reorder from boot to boot. The more devices, the more likely it is to reorder, and this chassis is maxed out. TIL I learned about lsblk -S though, and I'm going to try to start making a habit of putting its output in these tickets:

eevans@aqs1012:~$ lsblk -S
NAME HCTL       TYPE VENDOR   MODEL               REV SERIAL             TRAN
sda  2:0:0:0    disk ATA      HFS1T9G32FEH-BA10A DD01 KN09N7919I0709R1S  sata  <-- bad!
sdb  3:0:0:0    disk ATA      HFS1T9G32FEH-BA10A DD01 KN09N7919I0709R22  sata
sdc  4:0:0:0    disk ATA      HFS1T9G32FEH-BA10A DD01 KN09N7919I0709R1T  sata  <-- bad!
sdd  5:0:0:0    disk ATA      HFS1T9G32FEH-BA10A DD01 KN09N7919I0709R1Q  sata
sde  6:0:0:0    disk ATA      SSDSC2KB019T8R     DL69 PHYF9523015R1P9DGN sata  <-- replaced in T395685?
sdf  9:0:0:0    disk ATA      HFS1T9G32FEH-BA10A DD01 KN09N7919I0709R20  sata
sdg  7:0:0:0    disk ATA      HFS1T9G32FEH-BA10A DD01 KN09N7919I0709R1Y  sata
sdh  8:0:0:0    disk ATA      HFS1T9G32FEH-BA10A DD01 KN09N7919I0709R2B  sata
eevans@aqs1012:~$

If this is correct (how does lsblk have the serial number for a failed device, when lshw does not?), then my guess is that the device you replaced back in June (ala T395685) is sde today (on the basis that I see no other record of a replacement, and it's the only one of a different model). If true, then this isn't a recurrence, it's more/new failures. And that makes perfect sense if you think about it, all of these devices are of the same model and age (probably from the same lot), so it doesn't seem at all unreasonable that they'd fail in close succession.

Icinga downtime and Alertmanager silence (ID=33227d80-c2fb-47d6-8915-7a50d5148bca) set by eevans@cumin1003 for 4:00:00 on 1 host(s) and their services with reason: Drive replacement

aqs1012.eqiad.wmnet

KN09N7919I0709R1S is in slot 0 and being replaced with KJA8N5701I0808167

KN09N7919I0709R1T is in slot 2.

Currently, we will test it with a single drive replacment to see if it is sucsessful while also trying to locate another 1.92TB SSD.

Unit is powering back on.

It doesn't seem to have booted. :(

@Eevans @VRiley-WMF

Screenshot 2025-07-15 at 9.39.43 AM.png (1,890×1,228 px, 294 KB)

KN09N7919I0709R1S serial looks like it was in slot 1 not 0 according to Hardware Inventory in idrac

KN09N7919I0709R22 is drive in slot 0. looks identical but small print maybe you mistaked the 2 for S?

@Eevans @VRiley-WMF

Screenshot 2025-07-15 at 9.39.43 AM.png (1,890×1,228 px, 294 KB)

KN09N7919I0709R1S serial looks like it was in slot 1 not 0 according to Hardware Inventory in idrac

KN09N7919I0709R22 is drive in slot 0. looks identical but small print maybe you mistaked the 2 for S?

After the initial replacement, when the server would not boot, I had @VRiley-WMF move that drive to 0 as a Hail Mary pass, in the hopes an MBR was there and would be picked up as the bootable disk. TL;DR I think we are running afoul of T215183: Redundant bootloaders for software RAID.

My best idea for a way forward is to: Put that disk back, and (re)insert the replacement SSD into the first slot (though I'm not convinced the order here would matter), and then attempt to reimage with the partition preserving partman recipe (saving the data).

Swapped both of the failed SSDs with spares. will await for the reimage.

Cookbook cookbooks.sre.hosts.reimage was started by eevans@cumin1003 for host aqs1012.eqiad.wmnet with OS bullseye

Change #1169739 had a related patch set uploaded (by Eevans; author: Eevans):

[operations/puppet@production] aqs1012: perform a complete reimage

https://gerrit.wikimedia.org/r/1169739

Change #1169739 merged by Eevans:

[operations/puppet@production] aqs1012: perform a complete reimage

https://gerrit.wikimedia.org/r/1169739

Cookbook cookbooks.sre.hosts.reimage started by eevans@cumin1003 for host aqs1012.eqiad.wmnet with OS bullseye executed with errors:

  • aqs1012 (FAIL)
    • Downtimed on Icinga/Alertmanager
    • Unable to disable Puppet, the host may have been unreachable
    • Removed from Puppet and PuppetDB if present and deleted any certificates
    • Removed from Debmonitor if present
    • Forced PXE for next reboot
    • Host rebooted via IPMI
    • Host up (Debian installer)
    • Add puppet_version metadata (7) to Debian installer
    • Checked BIOS boot parameters are back to normal
    • The reimage failed, see the cookbook logs for the details. You can also try typing "sudo install-console aqs1012.eqiad.wmnet" to get a root shell, but depending on the failure this may not work.

Change #1169742 had a related patch set uploaded (by Eevans; author: Eevans):

[operations/puppet@production] aqs1012: perform a complete reimage (JBOD)

https://gerrit.wikimedia.org/r/1169742

Change #1169742 merged by Eevans:

[operations/puppet@production] aqs1012: perform a complete reimage (JBOD)

https://gerrit.wikimedia.org/r/1169742

Cookbook cookbooks.sre.hosts.reimage was started by eevans@cumin1003 for host aqs1012.eqiad.wmnet with OS bullseye

Cookbook cookbooks.sre.hosts.reimage started by eevans@cumin1003 for host aqs1012.eqiad.wmnet with OS bullseye executed with errors:

  • aqs1012 (FAIL)
    • Removed from Puppet and PuppetDB if present and deleted any certificates
    • Removed from Debmonitor if present
    • Forced PXE for next reboot
    • Host rebooted via IPMI
    • Host up (Debian installer)
    • Add puppet_version metadata (7) to Debian installer
    • Checked BIOS boot parameters are back to normal
    • The reimage failed, see the cookbook logs for the details. You can also try typing "sudo install-console aqs1012.eqiad.wmnet" to get a root shell, but depending on the failure this may not work.

Cookbook cookbooks.sre.hosts.reimage was started by eevans@cumin1003 for host aqs1012.eqiad.wmnet with OS bullseye

Cookbook cookbooks.sre.hosts.reimage started by eevans@cumin1003 for host aqs1012.eqiad.wmnet with OS bullseye executed with errors:

  • aqs1012 (FAIL)
    • Removed from Puppet and PuppetDB if present and deleted any certificates
    • Removed from Debmonitor if present
    • Forced PXE for next reboot
    • Host rebooted via IPMI
    • Host up (Debian installer)
    • Add puppet_version metadata (7) to Debian installer
    • Checked BIOS boot parameters are back to normal
    • The reimage failed, see the cookbook logs for the details. You can also try typing "sudo install-console aqs1012.eqiad.wmnet" to get a root shell, but depending on the failure this may not work.

Cookbook cookbooks.sre.hosts.reimage was started by eevans@cumin1003 for host aqs1012.eqiad.wmnet with OS bullseye

Cookbook cookbooks.sre.hosts.reimage started by eevans@cumin1003 for host aqs1012.eqiad.wmnet with OS bullseye executed with errors:

  • aqs1012 (FAIL)
    • Removed from Puppet and PuppetDB if present and deleted any certificates
    • Removed from Debmonitor if present
    • Forced PXE for next reboot
    • Host rebooted via IPMI
    • Host up (Debian installer)
    • Add puppet_version metadata (7) to Debian installer
    • Checked BIOS boot parameters are back to normal
    • The reimage failed, see the cookbook logs for the details. You can also try typing "sudo install-console aqs1012.eqiad.wmnet" to get a root shell, but depending on the failure this may not work.

Cookbook cookbooks.sre.hosts.reimage was started by eevans@cumin1003 for host aqs1012.eqiad.wmnet with OS bullseye

Change #1169762 had a related patch set uploaded (by Eevans; author: Eevans):

[operations/puppet@production] aqs1012: must use partman/raid1-2dev-efi.cfg preseed

https://gerrit.wikimedia.org/r/1169762

Cookbook cookbooks.sre.hosts.reimage started by eevans@cumin1003 for host aqs1012.eqiad.wmnet with OS bullseye executed with errors:

  • aqs1012 (FAIL)
    • Removed from Puppet and PuppetDB if present and deleted any certificates
    • Removed from Debmonitor if present
    • Forced PXE for next reboot
    • Host rebooted via IPMI
    • Host up (Debian installer)
    • Add puppet_version metadata (7) to Debian installer
    • Checked BIOS boot parameters are back to normal
    • The reimage failed, see the cookbook logs for the details. You can also try typing "sudo install-console aqs1012.eqiad.wmnet" to get a root shell, but depending on the failure this may not work.

Change #1169762 merged by Eevans:

[operations/puppet@production] aqs1012: must use partman/raid1-2dev-efi.cfg preseed

https://gerrit.wikimedia.org/r/1169762

Cookbook cookbooks.sre.hosts.reimage was started by eevans@cumin1003 for host aqs1012.eqiad.wmnet with OS bullseye

Cookbook cookbooks.sre.hosts.reimage started by eevans@cumin1003 for host aqs1012.eqiad.wmnet with OS bullseye completed:

  • aqs1012 (PASS)
    • Removed from Puppet and PuppetDB if present and deleted any certificates
    • Removed from Debmonitor if present
    • Forced PXE for next reboot
    • Host rebooted via IPMI
    • Host up (Debian installer)
    • Add puppet_version metadata (7) to Debian installer
    • Checked BIOS boot parameters are back to normal
    • Host up (new fresh bullseye OS)
    • Generated Puppet certificate
    • Signed new Puppet certificate
    • Run Puppet in NOOP mode to populate exported resources in PuppetDB
    • Found Nagios_host resource for this host in PuppetDB
    • Downtimed the new host on Icinga/Alertmanager
    • First Puppet run completed and logged in /var/log/spicerack/sre/hosts/reimage/202507152048_eevans_1868014_aqs1012.out
    • configmaster.wikimedia.org updated with the host new SSH public key for wmf-update-known-hosts-production
    • Rebooted
    • Automatic Puppet run was successful
    • Forced a re-check of all Icinga services for the host
    • Icinga status is optimal
    • Icinga downtime removed
    • Updated Netbox data from PuppetDB

Change #1169773 had a related patch set uploaded (by Eevans; author: Eevans):

[operations/puppet@production] aqs1012: setup data directories for 8-ssd JBOD config

https://gerrit.wikimedia.org/r/1169773

Change #1169773 merged by Eevans:

[operations/puppet@production] aqs1012: setup data directories for 8-ssd JBOD config

https://gerrit.wikimedia.org/r/1169773

Mentioned in SAL (#wikimedia-operations) [2025-07-16T20:26:42Z] <dzahn@cumin1002> DONE (PASS) - Cookbook sre.hosts.downtime (exit_code=0) for 1 day, 0:00:00 on aqs1012.eqiad.wmnet with reason: T396970

20:24 <+jinxer-wm> FIRING: [3x] ProbeDown: Service aqs1012-b:9042 has failed probes (tcp_cassandra_b_cql_ip4)   - https://alerts.wikimedia.org/?q=alertname%3DProbeDown

20:25 < mutante> re: aqs1012 -> https://phabricator.wikimedia.org/T396970

20:26 <+logmsgbot> !log dzahn@cumin1002 DONE (PASS) - Cookbook sre.hosts.downtime (exit_code=0) for 1 day, 0:00:00 on aqs1012.eqiad.wmnet with reason: T396970

more alerts for host "Service aqs1012-b:9042". Unclear how that can be properly downtimed.

Added the short lived silence in web UI of alerts.wikimedia.org

Eevans updated Other Assignee, added: Eevans.

This is now complete.

For posterity sake: We weren't able to salvage the data, the cluster was reimaged and the data on it rebuilt.