lsscsi tells me that I have a number of disks and enclosures. I can use $ ls /sys/class/enclosure/6:0:10:0/ArrayDevice*/device/scsi/disk to get a listing of all the scsi addresses of disks under the 6:0:10:0 enclosure.I can correlate that list with lsscsi output to see where each disk is.But surely I don't need to write a script to automate this. Is there a tool like udevadm or sg_ses or something that can do this task for me?
How to find out what enclosure a disk belongs to?
linux;udev;disk;scsi