one of our Supermicro servers has 36 local disks attached to a MegaRaid controller. megacli sorts the disks by enclosure id and slot number, but check_raid displays the device id instead. This may lead to unsorted output:
Which makes it much easier to spot the missing disk id 30.
I tried to put the sort function into _joinstatus() first, but that did not work as not all controllers return disk names that are easily sortable (01 vs. 1:2 vs. Y2O483PAS).
Hi,
one of our Supermicro servers has 36 local disks attached to a MegaRaid controller. megacli sorts the disks by enclosure id and slot number, but check_raid displays the device id instead. This may lead to unsorted output:
The attached patch sorts the devices numerically:
Which makes it much easier to spot the missing disk id 30.
I tried to put the sort function into _joinstatus() first, but that did not work as not all controllers return disk names that are easily sortable (01 vs. 1:2 vs. Y2O483PAS).
Regards,
Christopher