hwraid icon indicating copy to clipboard operation
hwraid copied to clipboard

[megaclisas-status] support out of order VDs

Open smckown opened this issue 11 years ago • 2 comments

Don't assume that the virtual disk IDs are contiguous starting with ID 0. For example, it is possible to have two VDs with IDs 1 and 3.

smckown avatar Sep 19 '14 20:09 smckown

Hi,

Two of our servers were upgraded, and their VD IDs are no longer contiguous. Here's a patch that might propertly address this problem. It seems to work fine here, but I'm assuming that the "Target Id" field is the correct ID value and not the "Virtual Drive" field, as can be seen from the output of:

megacli -LDInfo -LALL -a0 -NoLog | grep "^Virtual Drive: "

In our case, both numbers are exactly the same. I found another user who created a delta to solve this same problem, at https://github.com/npinto/megaclisas-status.

smckown avatar Sep 19 '14 20:09 smckown

Could you please test with the latest version of megaclisas-status? I believe I had fixed that in my tree.. Thanks,

ElCoyote27 avatar Jan 20 '16 23:01 ElCoyote27