Ticket #10 (closed defect: fixed)
megaraid-status reports NOT OPTIMAL on hot-spare (incl our solution)
| Reported by: | beheer@… | Owned by: | gandalf |
|---|---|---|---|
| Priority: | major | Milestone: | 1.0.0 |
| Component: | packages | Version: | |
| Keywords: | Cc: |
Description
We have a 3 disk Raid 5 on a megaraid with 1 hotspare which reports ready in the megaraid-status but the script gives NOT OPTIMAL in our situation it's optimal so we changed the last lines of megareaid-status to:
for disk in disklist:
if not disk[-1] == 'online' and not disk[-1] == 'ready':
bad = True
Could you patch megaraid-status for the next release?
Tnx
Attachments
Change History
comment:3 Changed 2 years ago by anonymous
Same for the megaraidsas-status. hotspare disks give NOT OPTIMAL state. I change the end of the script :
if not disk[-1] in ('online', 'hotspare') :
bad = True
Thanks for your work !
comment:4 Changed 22 months ago by anonymous
Same for megaraid-status ; i change the end :
for disk in disklist:
if not disk[-1] == 'online' and not disk[-1] == 'hotspare':
bad = True
Thanks !


Same for the aacraid-status script on the end we changed the following: