Feature #1694

More RAID drives detection

Added by Egor Morozov about 1 year ago. Updated 5 months ago.

Status:ResolvedStart date:06/09/2012
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:internal
Target version:2.3.0
For junior contributor:No

Description

Hi,

The following patches will support the following:
Megaraid.pm - for both Linux & FreeBSD supports mfi-based RAID controllers (uses megasasctl (has to be installed) under Linux, mfiutil (integrated into base system since 7.x branch) under FreeBSD
3ware.pm - a bit modified version of Linux module for BSD

Linux MegaRAID:

a0       PERC H700 Integrated     bios:3.18.00_4.09.05. fw:2.100.03-1062 encl:1 ldrv:1  rbld:30% batt:good/4027mV/25C
a0d0      1675GiB RAID 10  3x2  optimal
      row  0:  a0e32s0   a0e32s1 
      row  1:  a0e32s2   a0e32s3 
      row  2:  a0e32s4   a0e32s5 
a0e32s0   SEAGATE ST3600057SS         558GiB  a0d0  online  
a0e32s1   SEAGATE ST3600057SS         558GiB  a0d0  online  
a0e32s2   SEAGATE ST3600057SS         558GiB  a0d0  online  
a0e32s3   SEAGATE ST3600057SS         558GiB  a0d0  online  
a0e32s4   SEAGATE ST3600057SS         558GiB  a0d0  online  
a0e32s5   SEAGATE ST3600057SS         558GiB  a0d0  online  

FreeBSD MegaRAID:

mfi0 Physical Drives:
 0 (  558G) ONLINE <SEAGATE ST3600057SS ES64 serial=3SL1ZJGW> SAS E1:S0
 1 (  558G) ONLINE <SEAGATE ST3600057SS ES64 serial=3SL1ZA3R> SAS E1:S1
 2 (  558G) ONLINE <SEAGATE ST3600057SS ES64 serial=3SL1ZWGQ> SAS E1:S2
 3 (  558G) ONLINE <SEAGATE ST3600057SS ES64 serial=3SL1ZWCE> SAS E1:S3
 4 (  558G) ONLINE <SEAGATE ST3600057SS ES64 serial=3SL1ZKED> SAS E1:S4
 5 (  558G) ONLINE <SEAGATE ST3600057SS ES64 serial=3SL1ZYJE> SAS E1:S5

Linux_Megaraid.pm Magnifier (1.09 KB) Egor Morozov, 06/09/2012 01:44 pm

BSD_Megaraid.pm Magnifier (1.21 KB) Egor Morozov, 06/09/2012 01:44 pm

3ware.pm Magnifier (3.46 KB) Egor Morozov, 06/09/2012 01:46 pm

3ware.pm Magnifier (4.26 KB) Gonéri Le Bouder, 06/11/2012 03:15 pm

Associated revisions

Revision b8389b43
Added by Egor Morozov about 1 year ago

More RAID drives detection

The following patches will support the following:
- Megaraid.pm:
for both Linux & FreeBSD supports mfi-based RAID controllers (uses
megasasctl (has to be installed) under Linux, mfiutil (integrated
into base system since 7.x branch) under FreeBSD
- 3ware.pm:
a bit modified version of Linux module for BSD

see: #1694

Revision 5bbbde1b
Added by Gonéri Le Bouder about 1 year ago

add a test-script for Linux's Megaraid.pm

see: #1694

Revision 1eb54bab
Added by Gonéri Le Bouder about 1 year ago

update Changes and README regarding RAID inventory

see: #1694

Revision f27fb723
Added by Gonéri Le Bouder about 1 year ago

merge 3ware and Megaraid controller support

thanks to Egor Morozov for the original patch.

closes: #1694

History

#1 Updated by Egor Morozov about 1 year ago

  • File deleted (3ware.pm)

#2 Updated by Egor Morozov about 1 year ago

Wrong version was uploaded :)

#3 Updated by Gonéri Le Bouder about 1 year ago

  • Target version set to 2.3.0

Thank you for the patches Igor. I'm preparing the test-scripts for them. Do you know if there is difference between w_cli output on Linux and BSD?

#4 Updated by Gonéri Le Bouder about 1 year ago

#5 Updated by Gonéri Le Bouder about 1 year ago

  • Category set to internal
  • Status changed from New to In Progress

Since 3ware.pm packages are more or less the same on Linux and BSD, I think it should be in Generic/Storages instead. Can you please try to copy the 3ware.pm I attached in ./lib/FusionInventory/Agent/Task/Inventory/Input/Generic/Storages/3ware.pm and remove the other 3ware.pm files.

#6 Updated by Egor Morozov about 1 year ago

Hi,

works fine on FreeBSD. As we don't have any Linux machine with 3ware controller, cannot check if it works fine on Linux.

#7 Updated by Gonéri Le Bouder about 1 year ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

#8 Updated by Gonéri Le Bouder about 1 year ago

  • Status changed from Closed to Resolved

I merged your changes in the 2.3.x, I added some test-scripts.

Thank you Egor!

Also available in: Atom PDF