Enumerate physical drives behind RAID via smartctl megaraid passthrough
This commit is contained in:
@@ -132,6 +132,15 @@ async def get_overview():
|
||||
all_healthy = False
|
||||
elif hs == "warning":
|
||||
warnings += 1
|
||||
# Count physical drives behind RAID controllers
|
||||
for pd in hd.get("physical_drives", []):
|
||||
total_drives += 1
|
||||
pd_hs = pd.get("health_status", "healthy")
|
||||
if pd_hs == "error":
|
||||
errors += 1
|
||||
all_healthy = False
|
||||
elif pd_hs == "warning":
|
||||
warnings += 1
|
||||
host_drives_out.append(HostDrive(**hd))
|
||||
|
||||
return Overview(
|
||||
|
||||
Reference in New Issue
Block a user