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
< User:2016fwilson
Revision as of 09:24, 12 December 2016 by 2016fwilson (talk | contribs) (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/...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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