Menu

#1 No detect LSI MegaRAID SAS 9265-8i

1.0
closed
nobody
None
12 hours ago
14 hours ago
No

Hello. I am using the LSI MegaRAID SAS 9265-8i controller. lspci -v

 03:00.0 RAID bus controller: Broadcom / LSI MegaRAID SAS 2208 [Thunderbolt] (rev 01)
         Subsystem: Broadcom / LSI MegaRAID SAS 9265-8i
         Flags: bus master, fast devsel, latency 0, IRQ 25
         I/O ports at 2000 [disabled] [size=256]
         Memory at 80400000 (64-bit, non-prefetchable) [size=16K]
         Memory at 80440000 (64-bit, non-prefetchable) [size=256K]
         Expansion ROM at 8fc00000 [disabled] [size=128K]
         Capabilities: [50] Power Management version 3
         Capabilities: [68] Express Endpoint, MSI 00
         Capabilities: [d0] Vital Product Data
         Capabilities: [a8] MSI: Enable- Count=1/1 Maskable- 64bit+
         Capabilities: [c0] MSI-X: Enable+ Count=16 Masked-
         Capabilities: [100] Advanced Error Reporting
         Capabilities: [1e0] Secondary PCI Express
         Capabilities: [1c0] Power Budgeting <?>
         Capabilities: [190] Dynamic Power Allocation <?>
         Capabilities: [148] Alternative Routing-ID Interpretation (ARI)
         Kernel driver in use: megaraid_sas

and device:

# ls /dev/ | grep mega
megaraid_sas_ioctl_node

Kernel 6.1 or 6.18. I'm building an mfiutil last tag(1.0.15-rivoreo-r1) or master branch.
But the utility does not see my controller:

# mfiutil show adapter
mfiutil: Failed to get controller information: There is no such device

Why can't the utility see my raid controller?

Discussion

  • WHR

    WHR - 13 hours ago

    Hi,

    Can you try ls -l /sys/kernel/debug/megaraid_sas/ on your system? If that directory doesn't exist, try ls -l /sys/class/scsi_host/ instead.

    It is likely that the SCSI host unit number isn't 0 on your system; please pass the -u <unit> option accordingly. See the 'GET UNIT NUMBER OF CONTROLLERS' section of manual page mfiutil(8) for a detailed explanation.

     

    Last edit: WHR 13 hours ago
  • Dmitry Pugachev

    Dmitry Pugachev - 13 hours ago
    # ls -l /sys/class/scsi_host/
    итого 0
    lrwxrwxrwx 1 root root 0 Aug  7 04:12 host0 -> ../../devices/platform/200000000.pci/pci0000:00/0000:00:00.0/0000:01:03.0/ata1/host0/scsi_host/host0
    lrwxrwxrwx 1 root root 0 Aug  7 04:12 host1 -> ../../devices/platform/200000000.pci/pci0000:00/0000:00:00.0/0000:01:03.0/ata2/host1/scsi_host/host1
    lrwxrwxrwx 1 root root 0 Aug  7 04:12 host2 -> ../../devices/platform/200000000.pci/pci0000:00/0000:00:00.0/0000:01:03.0/ata3/host2/scsi_host/host2
    lrwxrwxrwx 1 root root 0 Aug  7 04:12 host3 -> ../../devices/platform/200000000.pci/pci0000:00/0000:00:00.0/0000:01:03.0/ata4/host3/scsi_host/host3
    lrwxrwxrwx 1 root root 0 Aug  7 04:12 host4 -> ../../devices/platform/200000000.pci/pci0000:00/0000:00:00.0/0000:01:03.1/ata5/host4/scsi_host/host4
    lrwxrwxrwx 1 root root 0 Aug  7 04:12 host5 -> ../../devices/platform/200000000.pci/pci0000:00/0000:00:00.0/0000:01:03.1/ata6/host5/scsi_host/host5
    lrwxrwxrwx 1 root root 0 Aug  7 04:12 host6 -> ../../devices/platform/200000000.pci/pci0000:00/0000:00:00.0/0000:01:03.1/ata7/host6/scsi_host/host6
    lrwxrwxrwx 1 root root 0 Aug  7 04:12 host7 -> ../../devices/platform/200000000.pci/pci0000:00/0000:00:00.0/0000:01:03.1/ata8/host7/scsi_host/host7
    lrwxrwxrwx 1 root root 0 Aug  7 06:17 host8 -> ../../devices/platform/200000000.pci/pci0000:00/0000:00:00.0/0000:01:04.0/0000:03:00.0/host8/scsi_host/host8
    

    in /sys/kernel/debug/ there is nothing.

    Yes, it's number 8, and now I can see the information on the controller. Maybe make an automatic detection of the unit?

    # mfiutil -u 8 show adapter
    mfi8 Adapter:
        Product Name: LSI MegaRAID SAS 9265-8i
       Serial Number: SV11612095
            Firmware: 23.34.0-0019
         RAID Levels: JBOD, RAID0, RAID1, RAID5, RAID6, RAID10, RAID50
      Battery Backup: not present
               NVRAM: 32K
      Onboard Memory: 1024M
      Minimum Stripe: 8K
      Maximum Stripe: 1M
    

    Thanks for the help.

     
  • Dmitry Pugachev

    Dmitry Pugachev - 13 hours ago

    Can I ask you one more question? Is it possible to save the current firmware by reloading the new one?

     
  • WHR

    WHR - 12 hours ago

    Maybe make an automatic detection of the unit?

    It may be possible to scan /sys/class/scsi_host/host*/proc_name files, and default to the lowest unit number whom the file contains megaraid_sas. But I'm not sure whether that will be implemented.

     
  • WHR

    WHR - 12 hours ago

    Can I ask you one more question? Is it possible to save the current firmware by reloading the new one?

    I don't think mfiutil can do that currently. Consider using a low-level tool such as megarec for that instead. Note that megarec runs in MS-DOS.

     
    • Dmitry Pugachev

      Dmitry Pugachev - 12 hours ago

      To do this, you will have to insert the controller into the x86 machine, I use the exotic vliw architecture e2k.

       
      • WHR

        WHR - 12 hours ago

        I see. That's a real problem with proprietary tooling. To be honest, I can't find any free management tool for this RAID controller other than mfiutil and bioctl-based tools in NetBSD and OpenBSD; so the options are quiet limited.

        For LSI's SAS HBA cards, There's a source-available lsiutil which can be built for other architectures. I once used that tool to download and upload the firmware for my 3801X cards on an IBM Power System. However that tool doesn't work for MegaRAID SAS controllers.

         
      • WHR

        WHR - 12 hours ago

        (Reply via email was processed so slowly; I thought that message was lost...)

         
        👍
        1

        Last edit: WHR 11 hours ago
  • WHR

    WHR - 12 hours ago
    • status: open --> closed
     
    👍
    1
  • WHR

    WHR - 12 hours ago

    I'm closing this ticket as the original issue has been addressed.

     
    👍
    1

Log in to post a comment.