10 votes

MegaCli: Get the /dev/sd* device name for a logical drive

I just added some support to my fork of megaclisas-status for matching the logical drive to an OS Native device. Here's an example output: $ sudo ./megaclisas-status -- Controller information -- -- ...
10 votes

How do I extend a RAID5 array with storcli?

If you make a mistake, you can lose all your data. Backup first. Then continue. Use storcli /c0 show to see what drives and volumes you have. The TOPOLOGY table is a good start: TOPOLOGY : ======== ...
9 votes

smartctl & megaraid: how to find the right device node for an adapter #

Run smartctl --scan to print all devices attached including the device id and RAID type: # smartctl --scan /dev/sda -d scsi # /dev/sda, SCSI device /dev/bus/0 -d megaraid,0 # /dev/bus/0 [...
  • 246
9 votes

MegaCli: Get the /dev/sd* device name for a logical drive

For anyone stumbling on this question and using storcli (successor of MegaCLI), you can map a virtual drive to the disk seen by the operating system with the following: $ /opt/MegaRAID/storcli/...
8 votes
Accepted

Which drive in RAID has bad sectors?

Smartmontools has extensions that allow it to poll a drive for SMART data through an LSI (as well as others) RAID array. Normally, this isn't something you can do as the RAID abstraction obscures ...
  • 7,016
7 votes

How to create Raid 10 with megacli

Response a Create Raid 10 (not Raid 6) First get the Adapter # # MegaCli Adpallinfo -aall | grep '^Adapter' Adapter #0 MegaCli or megacli depending distro *nix In this case Adapter it's Adapter ...
  • 417
7 votes

Finding the serial number of hard disk drives on a SuperMicro server running MegaRAID SAS 8708ELP

Using storcli, the command is: storcli /c0/eALL/sALL show all | egrep 'Device attributes|SN = ' will print something like: Drive /c0/e252/s0 Device attributes : SN = WD-WMC1T4142955 The first ...
7 votes
Accepted

Suddenly slow RAID performance

As Michal pointed out in his comment, the issue was a "prefailing" disk. There were no red flags in the diagnostics from the megaraid controller and smartctl's SMART Health Status: was OK, ...
  • 341
6 votes

How to create Raid 10 with megacli

You didn't understand the man page. E25:S02 - its like variable which should have int values. All you need: 1.Get adapter ID (it's 0 in my example): root@sto# megacli Adpallinfo -aall | grep '^...
6 votes
Accepted

How does LSI MegaRAID actually lay out RAID10 sets?

LSI claim that their approach to RAID 10 differs from the standard definition because they follow the SNIA specification. With MegaRAID RAID 1 can consist of from two drives (the more traditional ...
  • 195k
6 votes

Erasing Server RAID Hard disks (SAS and SATA) for decomissioning

Finally I got the solution. According to Fujitsu "LSI Logic MegaRAID SCSI WebBIOS Configuration Utility" User's guide, virtual disk initialization can be a good start to remove data from the disk: ...
  • 8,791
6 votes
Accepted

How does Linux tell an LSI Megaraid card to flush its cache before shutdown?

During shutdown the system will unmount most of the filesystems. Those that can not be unmounted are remounted read-only. Umount syscall will flush the disk caches via VFS, and disk buffers using the ...
5 votes

MegaCli: Get the /dev/sd* device name for a logical drive

Instead of using lshw, I think you can just use /dev/disk/by-path to get the relationship between the scsi target id and the logical device name(sdX). targetId=0;dev=`ls -l /dev/disk/by-path/ | grep -...
  • 171
5 votes
Accepted

smartctl & megaraid: how to find the right device node for an adapter #

This is how I've done it before. There might be better ways. Get the PCI bus ID for the adapter from MegaCLI: /opt/MegaRAID/MegaCli/MegaCli64 -adpgetpciinfo -a0 | grep Bus Bus Number : 2 In ...
5 votes

LSI Megaraid alarm - clearing hotspare

Source: IBM tip H206526 There is no functional impact. To prevent the message from appearing in the system event logs: Open MegaRAID Storage Manager. Select Tools --> Monitor Configure ...
  • 51
5 votes

Convert single disk raid0 to raid1 on an LSI megaraid controller

To answer my own question, it is infact possible to migrate live from a single drive raid0 to raid1 (providing an extra disk) with Megaraid cards The megacli command is as follows (it can also be ...
5 votes

Which drive in RAID has bad sectors?

If the RAID passes the errors on to you, then obviously something is wrong that cannot be silently corrected. If you get read errors, that means that all redundant copies of these blocks have been ...
5 votes
Accepted

Do I need to initialize a MegaRAID virtual disk after adding it?

It turns out that adding a virtual disk started a background initialization, which is reported differently from a typical initialization. storcli /c0/v0 show init reported nothing, but storcli /c0/c0 ...
  • 513
5 votes

Lsi MegaRaid sas 9271-8i raid-0 crash

You wipe and rebuild - you chose R0, by doing so you made the conscious decision that your data doesn't matter, at all, as you must have a ready-to-go mitigation right to hand. Well do that.
  • 100k
4 votes
Accepted

megacli lost virtual disk raid configuration

Ok. so i managed to save my data. It seems that megacli doesn't provide a way to create a new virtual disk without initializing it and losing all the data. I rebooted the machine and entered the raid ...
  • 161
4 votes
Accepted

Xenserver 6.5 LSI MegaRAID

There is a new version of the MegaCli: storCli. You can get it from here: http://www.lsi.com/support/pages/download-results.aspx?keyword=storcli In that archive is a Linux folder and you can install ...
  • 241
4 votes

Disable hardware RAID controller

You can't configure disks connected to the SAS controller in the BIOS. During system startup, there should appear a prompt for a different setup system (Ctrl+H if I remember correctly). https://www....
  • 97.3k
4 votes

Where to get storcli64 for Linux from LSI MegaRAID now that Broadcom has taken over?

Start on the broadcom Homepage: www.broadcom.com Click on Support -> MegaRAID and HBAs Then Support Documents and Downloads Fill out the Form: - Product Group: Storage Adapters - Product Family: ...
3 votes

Measuring SSD wear out behind LSI MegaRAID controller?

I wouldn't bother with watching the SSD wearout behind a hardware RAID controller. You're using RAID for a reason, so let the controller handle it. It's a bonus that you're running with enterprise ...
  • 195k
3 votes

How to create Raid 10 with megacli

I used that (couple months ago to create raid 50): megacli -CfgSpanAdd -r50 -Array0[252:2,252:3,252:4] Array1[252:5,252:6,252:7] WB RA Direct CachedBadBBU -a0 IBM x3560 and: Product Name : ...
3 votes

LSI MegaRAID Expected Chip Temperature?

I know this is a very old post, but since its the top result in a google search I thought I'd chime in for somebody else's benefit. The LSI 9270 series RAID cards are designed to have high ...
  • 31
3 votes

LSI MegaRAID Expected Chip Temperature?

While I can't explain why you are idling so high, I can say this is a problem we have been dealing with for years on our servers. A server we just recently retired with a MegaRAID 9280 controller ...
3 votes
Accepted

LSI megaraid - config raid and non-raid

It turns out you can configure a single disk RAID-0 to implement this.
  • 51
3 votes
Accepted

Erasing Server RAID Hard disks (SAS and SATA) for decomissioning

It all depends on how secure you want/need to be. Recreating the RAID won't do much to your data other than re-compute the parity bits (assuming RAID 5 or 6) but you could re-create the RAID as a ...
3 votes

Recovering Megaraid Storage Array After Power Outage

Finally managed to find an answer so I thought I'd take the liberty of answering my own question in case it might be of help to others, with the caution that this worked for me, but it may not work ...

Only top scored, non community-wiki answers of a minimum length are eligible