@leonroy
I am not sure if there is some method (beyond what I use) to determine the drive locations, but I could not find one.
First, the sas2ircu does not work for me. It tells me that there are no controllers found when issuing the 'list' command. I assume that this is because the LSI card has been flashed to IT mode, but I do not know for sure. I can tell you that it does not work on any system that I have with an LSI card.
When I build my system and I get ready to do all of my testing, one of the first things that I do is run the drive_id script that
@Bidule0hm wrote (read more about his scripts
here). It is a great script that shows you the device, GPTID and the serial number of your drives in a nice printout:
Code:
[root@plexnas] ~# ./plexnas_drive_id.sh | tee plexnas_drive_id_report
+========+============================================+=================+
| Device | GPTID | Serial |
+========+============================================+=================+
| da0 | gptid/2ce67c64-e537-11e4-9e81-0cc47a31abcc | PK2338P4H9LXSC |
+--------+--------------------------------------------+-----------------+
| da1 | gptid/2fc398e3-e537-11e4-9e81-0cc47a31abcc | PK2338P4HAN6RC |
+--------+--------------------------------------------+-----------------+
| da2 | gptid/328d1f97-e537-11e4-9e81-0cc47a31abcc | PK2338P4HAMVHC |
+--------+--------------------------------------------+-----------------+
| da3 | gptid/35587ffe-e537-11e4-9e81-0cc47a31abcc | PK1334PCJZNLWX |
+--------+--------------------------------------------+-----------------+
| da4 | gptid/381b15ea-e537-11e4-9e81-0cc47a31abcc | PK2338P4HAMM8C |
+--------+--------------------------------------------+-----------------+
| da5 | gptid/3ae87504-e537-11e4-9e81-0cc47a31abcc | PK1334PCK45B2S |
+--------+--------------------------------------------+-----------------+
| da6 | gptid/3d92278a-e537-11e4-9e81-0cc47a31abcc | PK1334PCK8VD5X |
+--------+--------------------------------------------+-----------------+
| da7 | gptid/404a1422-e537-11e4-9e81-0cc47a31abcc | PK1334PCK70VVX |
+--------+--------------------------------------------+-----------------+
| da8 | gptid/430d39f3-e537-11e4-9e81-0cc47a31abcc | PK2338P4HANJRC |
+--------+--------------------------------------------+-----------------+
| da9 | gptid/45d3d4e3-e537-11e4-9e81-0cc47a31abcc | PK1334PCKB8E2X |
+--------+--------------------------------------------+-----------------+
| da10 | gptid/4898e09b-e537-11e4-9e81-0cc47a31abcc | PK2338P4HAMMXC |
+--------+--------------------------------------------+-----------------+
| da11 | gptid/4b626dba-e537-11e4-9e81-0cc47a31abcc | PK2338P4H9LW8C |
+--------+--------------------------------------------+-----------------+
| da12 | gptid/c3c694ad-de92-11e4-88e8-0cc47a31abcc | |
+--------+--------------------------------------------+-----------------+
Now I know exactly what drive ID corresponds to what GPTID and drive serial number. I also now have a copy of that report (tee plexnas_drive_id_report) so that the next time I need that info, I just log in and look at the report file.
Once I have that information, I confirm the exact location of each drive in the chassis by running:
dd if=/dev/zero of=/dev/da0 bs=8M count=25000
then I go look and see which drive has the activity light on and mark that drive as drive '0'. I do this for each drive that I have in the system, each time I build a system.
Now when I need to know where a particular drive is I have the serial number of the drive, the device name, the GPTID and the exact location in the chassis. All of this this information also goes into a spreadsheet that I keep for each server.
There might be an easier way, but this is how I do it.