Locating drives attached to LSI cards for Linux Distros
The following guide will help you see the smart status in your 45Drives system with LSI9201 HBA Cards, along with physically locating this drive so you can replace it and rebuild your RAID.
- Go to 45drives.com/downloads and download the lsihba_linux_script.tar.gz file. This file contains a bash script which will take information from each drive connected to the LSI Cards and display them in a readable form. This will be essential for locating any drive in the system.
- To open and run the bash script, please follow the steps below.
- smartmontools must be installed. This is public domain software that is available via apt-get (Ubuntu/Debian), yum (RHEL/CentOS), etc.
Unzip and Extract the folder in the tar.gz file.
Open the folder in the location where you extracted it to.
Inside the folder right click in the empty space and select "open in terminal".
NOTE: In order to view smart status of drives you must have "smartmontools" installed.
To run the script you must be superuser and type "./lsihba.sh sas2" OR "sh lsihba.sh sas2". You will see the script begin to output results.
- Once the script has finished running, scroll to the beginning of the outputs.
- Right under "Setting Up", you will see the first bank of 16 Drives (port 0 - 16).
- These ports are the drives in the system on "card 1" in numerical order.
- Depending on if you have a 30, 45, or 60 drive unit you will have 2, 3, or 4 LSI HBA Cards in the system.
- Therefore if you have a 60 drive unit, you will have 4 banks of 16 drives displayed in the script.
- To complete the drive identification process, you must match the drive slot numbers to the physical drive location.
- There are detailed drive layout diagrams below, select the diagram that matches the machine you have (30, 45 or 60 drives).
- On each diagram, C-1 is card 1
C-2 is card 2 and so on.
An alternative method for users with CLI knowledge for identifying drives can be found here: Identifying Drives using LSI cards
Example of how to Identify the Physical Location of a Drive Slot from using the Script
After the script has completed, you wish to determine the physical location of Slot 4 in the first bank of 16 drives.
The location of the drive can be found by serial number but the slot method is much faster.
Find the diagram above that matches your system.
- Locate C-1 Slot 4