Ticket #11 (closed defect: fixed)
aacraid-status
| Reported by: | vlastik@… | Owned by: | gandalf |
|---|---|---|---|
| Priority: | trivial | Milestone: | |
| Component: | packages | Version: | |
| Keywords: | aacraid-status | Cc: |
Description
Hi Adam,
I've downloaded your aacraid-status tool (version 0.14), thanks for the
script, it's working, just I had to fix a small bug.
I have a RAID5 with 3 disks and 1 hot spare disk, and the script
reported "There is at least one disk/array in a NOT OPTIMAL state." even
all disk were ok. A simple change had fixed the issue, here is a diff
file, you may want to integrate it into a future versions:
182c182
< if disk[1] != 'Online' and disk[1] != 'Hot Spare' :
---
if disk[1] != 'Online':
Regards
Vlastimil
Attachments
Change History
comment:2 Changed 19 months ago by juancruz.mluquez@…
Hi from Argentina!
My situation is that I have 4 disks: 3 in a raid5 and one unused in Ready state, so I've modified the script adding a line, after the if where the disk is checked if it is Online, where i check if the NOT Online disk member is the same as actual member, if not set the "bad" flag to true.
...
for member in arrayinfo[3]:
i = 0
for disk in diskinfo:
if disk[1] != 'Online':
if disk[0] == member:
bad = True
if disk[0] == member:
print 'c'+str(controllerid-1)+'u'+str(arrayid)+'d'+str(i)+' | '+disk[2]+' '+disk[3]+' | '+disk[1]
i += 1
...
This is because, the disk in ready state is not a member of the raid so everything is fine.
MANY THANKS for the script!
Juan Cruz

