Modify

Ticket #11 (closed defect: fixed)

Opened 2 years ago

Last modified 18 months ago

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:1 Changed 2 years ago by gandalf

  • Status changed from new to accepted

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

comment:3 Changed 18 months ago by gandalf

  • Status changed from accepted to closed
  • Resolution set to fixed

Fixed in aacraid-status-0.16.

jauncruz: I'd rather NOT filter on disk[0] == member: it's better to quit with an error if a "not-in-use disk" is broken.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.