Developers Guide
Useful tools
50 Dell EMC SC Series with Red Hat Enterprise Linux 7x | CML1071
5 Useful tools
The following native Linux tools can be used to identify and correlate volumes to their respective Storage
Center devices.
5.1 The lsscsi command
The lsscsi command is a tool that parses information from the /proc and /sys pseudo filesystems into human
readable output. The lsscsi tool is installed using the following command.
# yum –y install lsscsi
The lsscsi output is shown in the following example, using the grep command to display only SC Series
devices. The first column displays the [host:channel:target:lun] designation for each volume. The host number
corresponds to the local HBA hostX device file that the volume is mapped to. The channel number is the
SCSI bus address and is always zero (0). The target number correlates to the SC Series front-end ports
(targets). The lun number represents the LUN ID of the volume on the SC Series controller where it is
mapped.
# lsscsi | grep COMPELNT | sort -k7
[snip]
[1:0:0:1] disk COMPELNT Compellent Vol 0605 /dev/sdb
[1:0:2:1] disk COMPELNT Compellent Vol 0605 /dev/sdc
[1:0:3:1] disk COMPELNT Compellent Vol 0605 /dev/sdd
[1:0:3:2] disk COMPELNT Compellent Vol 0605 /dev/sde
[1:0:5:1] disk COMPELNT Compellent Vol 0605 /dev/sdf
[1:0:5:2] disk COMPELNT Compellent Vol 0605 /dev/sdg
[4:0:0:1] disk COMPELNT Compellent Vol 0605 /dev/sdh
[4:0:2:1] disk COMPELNT Compellent Vol 0605 /dev/sdi
[4:0:4:1] disk COMPELNT Compellent Vol 0605 /dev/sdj
[4:0:4:2] disk COMPELNT Compellent Vol 0605 /dev/sdk
[4:0:5:1] disk COMPELNT Compellent Vol 0605 /dev/sdl
[4:0:5:2] disk COMPELNT Compellent Vol 0605 /dev/sdm
[snip]
5.2 The scsi_id command
The scsi_id command (located in the /usr/lib/udev folder) can be used to report the WWID of volumes. This
WWID can then be used to correlate volumes to their respective SC Series storage devices.