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

Difference between revisions of "User:2016fwilson/Storage notes"

From Livedoc - The Documentation Repository
Jump to: navigation, search
(Created page with "== Figuring out what WWID corresponds to a disk == <pre> # on a storage server /etc/init.d/target status | grep haimageserver # record the lun # on the vm server ls -l /dev/...")
 
(No difference)

Latest revision as of 09:24, 12 December 2016

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