This is an old revision of the document!


use lun storage

  1. scan luns
    1. look for fc hosts
      ls /sys/class/fc_host

      e.g. you get two: host0 host1

    2. install rescan script
      yum install sg3_utils
    3. to rescan luns
      rescan-scsi-bus.sh

      or

      echo "1" > /sys/class/fc_host/host0/issue_lip
      echo "- - -" > /sys/class/scsi_host/host0/scan

      for all hosts

  2. multipath(d)
    1. alias in multipath.conf
      multipaths {
          multipath {
              wwid 360000970000296800677533030303638
              alias fsilun
          }
      }
    2. show
      multipath -ll

      e.g. you get following output

      fsilun (360000970000296800677533030303638) dm-1 EMC,SYMMETRIX
      size=1000G features='1 queue_if_no_path' hwhandler='0' wp=rw
      `-+- policy='round-robin 0' prio=1 status=active
        |- 1:0:1:1 sdd 8:48 active ready running
        |- 2:0:1:1 sdf 8:80 active ready running
        |- 1:0:0:1 sdc 8:32 active ready running
        `- 2:0:0:1 sde 8:64 active ready running
  1. reload multipathd
    service multipathd reload
  2. device mapper
  3. create block device in /dev/mapper with fsilun as name