Warning Livedoc is no longer being updated and will be deprecated shortly. Please refer to https://documentation.tjhsst.edu.

User:2016fwilson/Storage notes

From Livedoc - The Documentation Repository
Jump to: navigation, search

Figuring out what WWID corresponds to a disk

# on a storage server
/etc/init.d/target status | grep haimageserver  # record the lun
# on the vm server
ls -l /dev/disk/by-path | grep lun-n  # n is the lun
# you should get two device paths like "sdfa", record them
ls -l /dev/disk/by-id | grep -e sdfa -e sdeo
# scsi-wwid will be one of the entries in the list

There's almost definitely a better way to do this