Modify ↓
Ticket #24 (closed defect: fixed)
"Hot spare" trigger the "bad" status and caused an exit 1
| Reported by: | stefano.bridi@… | Owned by: | gandalf |
|---|---|---|---|
| Priority: | major | Milestone: | 1.0.0 |
| Component: | wiki | Version: | |
| Keywords: | hot spare hotspare | Cc: | stefano.bridi@… |
Description
If you have an "hot spare" drive in your server, both the aacraid-status and the megaraidsas-status (and I suppose other script around) signal this as a problem.
I have patched in this way on aacraid-status:
for disk in diskinfo:
if disk[1] != 'Online' and disk[1] != 'Hot Spare':
bad = True
and in this way on megaraidsas-status:
for disk in disklist:
if not disk[-1] == 'online' and not disk[-1] == 'hotspare':
bad = True
Anyway on aacraid the hotspare is not listed bye the command.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


Fixed in megaraid-status-0.9 (both megaraid-status and megaraidsas-status).
Fixed in aacraid-status-0.16.