Mapping LMR disk location
IBM Storage Scale Erasure Code Edition uses storcli (LSI HBA) or perccli (DELL HBA) command to mapping SAS disk slot locations.
The ecedrivemapping command assists the user in generating a file that contains a server’s disk layout.
- The server that you designate for mapping drives is populated with the lmr disks you want to map.
- The storcli (LSI HBA) or perccli (DELL HBA) command is installed on your selected server node.
Mapping lmr disks
ecedrivemapping [-h] [--mode {nvme,lmr}]
[--slotrange {0-MAX_SLOT} {0-MAX_SLOT}] [--report]
[--force] [--version {1,2}]
# ecedrivemapping --mode lmr --slotrange 5 7- If the --slotrange argument is not specified, the slot range is immediately requested upon execution of the ecedrivemapping command.
- If the --mode argument is not specified, the slot range is applied to NVMe and lmr disks.
>>> 3 Lmr drives were detected
Now blinking path /c0/e134/s5
>>> Enter the slot number: 5
Now blinking path /c0/e134/s6
>>> Enter the slot number: 6
Now blinking path /c0/e134/s7
>>> Enter the slot number: 7The slots 5-7 represent the physical slot locations that the corresponding lmr disks are mapped too. A slotmap.yaml file is generated and written to /usr/lpp/mmfs/data/gems/. If a slotmap.yaml file exists, it is saved as a backup file while the newly generated slotmap.yaml file is used.
Verifying slotmap.yaml file
# ecedrivemapping --mode lmr --report
Displaying current storcli-slot to machine-slot map file:
------------------------------------------
Controller: 0
------------------------------------------
storcli-slot : 5 => machine-slot : 5
storcli-slot : 6 => machine-slot : 6
storcli-slot : 7 => machine-slot : 7The storcli-slot identifier contains the disks that are reported by the storcli command. The machine-slot identifier contains physical slot locations where the disks belong.
storcli-slot : 5 => machine-slot : 5 means the disk
in slot 5 reported by the storcli command is mapped to the physical disk slot
location 5.# cat /usr/lpp/mmfs/data/gems/slotmap.yaml
controllers:
- controller: 0
eids: 134
- eidx:
slots:
- {storcli-slot: 5, machine-slot: 5}
- {storcli-slot: 6, machine-slot: 6}
- {storcli-slot: 7, machine-slot: 7}The storcli-slots are properly mapped to the machine-slots and are categorized under controller 0. The “eids” represents the enclosure ID number that is verified by the storcli command as follows:
# tslsenclslot -ad | mmyfields LocationCode Devices LogicalUnits DiskSerial
J1005749-5 /dev/sda naa.5000C500B8620CCF WFJ0GBST0000E843NRY0
J1005749-6 /dev/sdc naa.5000C500B862FAFB WFJ0GWSD0000J746RSZ9
J1005749-7 /dev/sdb naa.5000C500B8632787 WFJ0GVQA0000E8447RZ5The output verifies that you have three disks that belong to slots 5-7 with corresponding device names and serial numbers.
# /opt/MegaRAID/storcli/storcli64 /call/eall/sall show all j | grep -E "SN|Detailed Information"
"Drive /c0/e134/s5 - Detailed Information" : {
"SN" : "WFJ0GBST0000E843NRY0",
"Drive /c0/e134/s6 - Detailed Information" : {
"SN" : "WFJ0GWSD0000J746RSZ9",
"Drive /c0/e134/s7 - Detailed Information" : {
"SN" : "WFJ0GVQA0000E8447RZ5"“Drive /cX/eY/sN” displays the controller (cX), enclosure ID (eY), and slot number (sN). You can verify the serial numbers of slots 5-7 match with the outputs of the tslsenclslot and storcli commands.
# /opt/MegaRAID/storcli/storcli64 /c0/e134/s5 start locate
CLI Version = 007.0504.0000.0000 Nov 22, 2017
Operating system = Linux 3.10.0-1127.el7.x86_64
Controller = 0
Status = Success
Description = Start Drive Locate Succeeded.
# /opt/MegaRAID/storcli/storcli64 /c0/e134/s5 stop locate
CLI Version = 007.0504.0000.0000 Nov 22, 2017
Operating system = Linux 3.10.0-1127.el7.x86_64
Controller = 0
Status = Success
Description = Stop Drive Locate Succeeded.The storcli locate command is used to turn the identifier light of a disk on or off. You can turn on the identifier light of a specific disk with an execution of the “/cX/eY/sN” start locate, where cX, eY, and sN represents the controller, enclosure ID, and slot number. After you verify the physical slot location of the disk, turn off the identifier light with “/cX/eY/sN” stop locate.