This is an old revision of the document!
ls /sys/class/fc_host
e.g. you get two: host0 host1
yum install sg3_utils
rescan-scsi-bus.sh
or
echo "1" > /sys/class/fc_host/host0/issue_lip echo "- - -" > /sys/class/scsi_host/host0/scan
for all hosts
multipaths { multipath { wwid 360000970000296800677533030303638 alias fsilun } }
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
service multipathd reload
chkconfig multipathd on
d if=/dev/zero of=dev/mapper/fsilun bs=512 count=1
pvcreate /dev/mapper/fsilun
pvdisplay
gcreate fsilun /dev/mapper/fsilun
vgdisplay
lvcreate -L 256000 -n lvfsilun fsilun
lvdisplay
mkfs.ext4 /dev/fsilun/lvfsilun
mkdir /mnt/fsilun
mount -t ext4 /dev/fsilun/lvfsilun /mnt/fsilun/