ordered.io


Flash storage && performance engineering


Matching LSI RAID volumes to Linux volumes

If you use LSI RAID controllers and have the tw_cli tool installed in Linux, you can correlate the LSI RAID volumes with Linux volumes by matching their serial numbers. So with tw_cli, assuming you’re interested in the first unit of controller 4:

tw_cli /c4/u0 show serial

And you’d probably run that for all your volumes.

Then on the Linux side, you can use udevadm:

udevadm info --query=property --name=sda | grep ID_SCSI_SERIAL

So for the server I’m looking at, they’re set up in just the order you’d expect:

> for i in sda sdb sdc sdd; do /sbin/udevadm info --query=property --name=${i} | grep ID_SCSI_SERIAL; done
ID_SCSI_SERIAL=9WM4R0ZZ1C5E4800E665
ID_SCSI_SERIAL=9WM4WANB1C5E480079CB
ID_SCSI_SERIAL=9WM4Y81G1C5E4D004F8B
ID_SCSI_SERIAL=9WM4ZHBK1C5E4D0022CB

> for i in 0 1 2 3; do tw_cli /c4/u${i} show serial; done
/c4/u0 serial number = 9WM4R0ZZ1C5E4800E665
/c4/u1 serial number = 9WM4WANB1C5E480079CB
/c4/u2 serial number = 9WM4Y81G1C5E4D004F8B
/c4/u3 serial number = 9WM4ZHBK1C5E4D0022CB