On 01/05/12 1:35 PM, John R Pierce wrote: > sigh, its doing the same thing as the code I 'fixed' from that blog I > posted earlier... ok, I've figured out the differences between what megaclisas-status expected and what megacli for these new sas cards generated, and hacked up the code to work with the version firmware I have, but it didn't really understand SAS enclosure numbering nor did it list the global hotspares: # ./megaclisas-status -- Controller informations -- -- ID | Model c0 | LSI MegaRAID SAS 9261-8i -- Arrays informations -- -- ID | Type | Size | Status | InProgress c0u0 | RAID6 | 73668G | Optimal | Background Initialization: Completed 79%, Taken 329 min. -- Disks informations -- ID | Model | Status c0u0p0 | SEAGATE ST33000650SS 0003Z290SBNR | Online, Spun Up c0u0p1 | SEAGATE ST33000650SS 0003Z290JX8W | Online, Spun Up c0u0p2 | SEAGATE ST33000650SS 0003Z290WT5A | Online, Spun Up c0u0p3 | SEAGATE ST33000650SS 0003Z290T04B | Online, Spun Up c0u0p4 | SEAGATE ST33000650SS 0003Z290VL94 | Online, Spun Up c0u0p5 | SEAGATE ST33000650SS 0003Z290VA0W | Online, Spun Up c0u0p6 | SEAGATE ST33000650SS 0003Z290QGSF | Online, Spun Up c0u0p7 | SEAGATE ST33000650SS 0003Z290QLYD | Online, Spun Up c0u0p8 | SEAGATE ST33000650SS 0003Z290ML45 | Online, Spun Up c0u0p9 | SEAGATE ST33000650SS 0003Z290TCLW | Online, Spun Up c0u0p10 | SEAGATE ST33000650SS 0003Z290X68R | Online, Spun Up c0u0p0 | SEAGATE ST33000650SS 0003Z290LC8R | Online, Spun Up c0u0p1 | SEAGATE ST33000650SS 0003Z290PG2G | Online, Spun Up c0u0p2 | SEAGATE ST33000650SS 0003Z290N3MF | Online, Spun Up c0u0p3 | SEAGATE ST33000650SS 0003Z290BD3Q | Online, Spun Up c0u0p4 | SEAGATE ST33000650SS 0003Z290BDL4 | Online, Spun Up c0u0p5 | SEAGATE ST33000650SS 0003Z290R7DJ | Online, Spun Up c0u0p6 | SEAGATE ST33000650SS 0003Z2908KHH | Online, Spun Up c0u0p7 | SEAGATE ST33000650SS 0003Z290BDCN | Online, Spun Up c0u0p8 | SEAGATE ST33000650SS 0003Z290QR9Q | Online, Spun Up c0u0p9 | SEAGATE ST33000650SS 0003Z290TDTE | Online, Spun Up c0u0p10 | SEAGATE ST33000650SS 0003Z290PTX5 | Online, Spun Up c0u0p0 | SEAGATE ST33000650SS 0003Z290PSZ2 | Online, Spun Up c0u0p1 | SEAGATE ST33000650SS 0003Z290S8LH | Online, Spun Up c0u0p2 | SEAGATE ST33000650SS 0003Z290QYX2 | Online, Spun Up c0u0p3 | SEAGATE ST33000650SS 0003Z290MY22 | Online, Spun Up c0u0p4 | SEAGATE ST33000650SS 0003Z290MY43 | Online, Spun Up c0u0p5 | SEAGATE ST33000650SS 0003Z290LGTG | Online, Spun Up c0u0p6 | SEAGATE ST33000650SS 0003Z290TXHX | Online, Spun Up c0u0p7 | SEAGATE ST33000650SS 0003Z290R0AE | Online, Spun Up c0u0p8 | SEAGATE ST33000650SS 0003Z290L1D5 | Online, Spun Up c0u0p9 | SEAGATE ST33000650SS 0003Z290TLGX | Online, Spun Up c0u0p10 | SEAGATE ST33000650SS 0003Z290TQW7 | Online, Spun Up (note all the disks are c0u0, which is way wrong, my disks are 20:0-20:11 and 45:0-45:23) so I took the OTHER one I'd found and saw that it WAS setup for SAS enclosure info, and on my test system generates this output... # ./lsi-raidinfo -- Controllers -- -- ID | Model c0 | LSI MegaRAID SAS 9261-8i -- Volumes -- -- ID | Type | Size | Status | InProgress volinfo: c0u0 | RAID6 | 73668G | Optimal | Background Initialization: Completed 77%, Taken 303 min. -- Disks -- -- Encl:Slot | Model | Status diskinfo: 20:0 | SEAGATE ST33000650SS 0003Z290SBNR | Online, Spun Up diskinfo: 20:1 | SEAGATE ST33000650SS 0003Z290JX8W | Online, Spun Up diskinfo: 20:2 | SEAGATE ST33000650SS 0003Z290WT5A | Online, Spun Up diskinfo: 20:3 | SEAGATE ST33000650SS 0003Z290T04B | Online, Spun Up diskinfo: 20:4 | SEAGATE ST33000650SS 0003Z290VL94 | Online, Spun Up diskinfo: 20:5 | SEAGATE ST33000650SS 0003Z290VA0W | Online, Spun Up diskinfo: 20:6 | SEAGATE ST33000650SS 0003Z290QGSF | Online, Spun Up diskinfo: 20:7 | SEAGATE ST33000650SS 0003Z290QLYD | Online, Spun Up diskinfo: 20:8 | SEAGATE ST33000650SS 0003Z290ML45 | Online, Spun Up diskinfo: 20:9 | SEAGATE ST33000650SS 0003Z290TCLW | Online, Spun Up diskinfo: 20:10 | SEAGATE ST33000650SS 0003Z290X68R | Online, Spun Up diskinfo: 45:11 | SEAGATE ST33000650SS 0003Z290V4PZ Hotspare Information | Hotspare, Spun down diskinfo: 45:0 | SEAGATE ST33000650SS 0003Z290LC8R | Online, Spun Up diskinfo: 45:1 | SEAGATE ST33000650SS 0003Z290PG2G | Online, Spun Up diskinfo: 45:2 | SEAGATE ST33000650SS 0003Z290N3MF | Online, Spun Up diskinfo: 45:3 | SEAGATE ST33000650SS 0003Z290BD3Q | Online, Spun Up diskinfo: 45:4 | SEAGATE ST33000650SS 0003Z290BDL4 | Online, Spun Up diskinfo: 45:5 | SEAGATE ST33000650SS 0003Z290R7DJ | Online, Spun Up diskinfo: 45:6 | SEAGATE ST33000650SS 0003Z2908KHH | Online, Spun Up diskinfo: 45:7 | SEAGATE ST33000650SS 0003Z290BDCN | Online, Spun Up diskinfo: 45:8 | SEAGATE ST33000650SS 0003Z290QR9Q | Online, Spun Up diskinfo: 45:9 | SEAGATE ST33000650SS 0003Z290TDTE | Online, Spun Up diskinfo: 45:10 | SEAGATE ST33000650SS 0003Z290PTX5 | Online, Spun Up diskinfo: 45:11 | SEAGATE ST33000650SS 00039XK0EW80 Hotspare Information | Hotspare, Spun down diskinfo: 45:12 | SEAGATE ST33000650SS 0003Z290PSZ2 | Online, Spun Up diskinfo: 45:13 | SEAGATE ST33000650SS 0003Z290S8LH | Online, Spun Up diskinfo: 45:14 | SEAGATE ST33000650SS 0003Z290QYX2 | Online, Spun Up diskinfo: 45:15 | SEAGATE ST33000650SS 0003Z290MY22 | Online, Spun Up diskinfo: 45:16 | SEAGATE ST33000650SS 0003Z290MY43 | Online, Spun Up diskinfo: 45:17 | SEAGATE ST33000650SS 0003Z290LGTG | Online, Spun Up diskinfo: 45:18 | SEAGATE ST33000650SS 0003Z290TXHX | Online, Spun Up diskinfo: 45:19 | SEAGATE ST33000650SS 0003Z290R0AE | Online, Spun Up diskinfo: 45:20 | SEAGATE ST33000650SS 0003Z290L1D5 | Online, Spun Up diskinfo: 45:21 | SEAGATE ST33000650SS 0003Z290TLGX | Online, Spun Up diskinfo: 45:22 | SEAGATE ST33000650SS 0003Z290TQW7 | Online, Spun Up diskinfo: 45:23 | SEAGATE ST33000650SS 0003Z290TKE1 Hotspare Information | Hotspare, Spun down 20: or 45: is the enclosure/backplane and :nn is the drive on the backplane. MEH, thats still messed up. the first hotspare above should be 20:11, and looking at the incredibly verbose output of the megacli command that this util is parsing, its a little messed up, and I think its getting the last enclosure# from a non-hotspare as they were listed first. $#@$@#$#$@#$ GAHHH! this is a mess. -- john r pierce N 37, W 122 santa cruz ca mid-left coast _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos