Fibre Channel in Linux(CentOS7)
Get the WWN of the controller
1cd /sys/class/fc_host/host5/
2
3[root@ibm2 host5]# cat node_name
40x200000051e8e53aa
Rescan the FC bus.
1cd /sys/class/fc_host/host5/
2echo "1" >; issue_lip
OR
1yum install sg3_utils
2
3rescan-scsi-bus.sh
List disks
1[root@hp by-path]# sscsi
2[0:0:0:0] disk ATA WDC WD4000FYYZ-0 1K03 /dev/sda
3[1:0:0:0] disk ATA WDC WD4000FYYZ-0 1K03 /dev/sdb
4[2:0:0:0] disk ATA WDC WD4000FYYZ-0 1K03 /dev/sdc
5[3:0:0:0] disk ATA WDC WD4000FYYZ-0 1K03 /dev/sdd
6[6:0:0:0] disk IBM 1746 FAStT 1070 /dev/sde
7[6:0:0:1] disk IBM 1746 FAStT 1070 /dev/sdf
8[6:0:0:2] disk IBM 1746 FAStT 1070 /dev/sdg
9[6:0:0:3] disk IBM 1746 FAStT 1070 /dev/sdh
10[6:0:0:4] disk IBM 1746 FAStT 1070 /dev/sdi
11[6:0:0:5] disk IBM 1746 FAStT 1070 /dev/sdj
12[6:0:0:6] disk IBM 1746 FAStT 1070 /dev/sdk
13[6:0:0:7] disk IBM 1746 FAStT 1070 /dev/sdl
14[6:0:0:8] disk IBM 1746 FAStT 1070 /dev/sdm
15[6:0:0:9] disk IBM 1746 FAStT 1070 /dev/sdn
16[6:0:0:10] disk IBM 1746 FAStT 1070 /dev/sdo
17[6:0:0:11] disk IBM 1746 FAStT 1070 /dev/sdp
18[6:0:0:12] disk IBM 1746 FAStT 1070 /dev/sdq
19[6:0:0:13] disk IBM 1746 FAStT 1070 /dev/sdr
20[6:0:0:14] disk IBM 1746 FAStT 1070 /dev/sds
21[6:0:0:15] disk IBM 1746 FAStT 1070 /dev/sdt
22[6:0:0:16] disk IBM 1746 FAStT 1070 /dev/sdu
23[6:0:0:17] disk IBM 1746 FAStT 1070 /dev/sdv
24[6:0:0:18] disk IBM 1746 FAStT 1070 /dev/sdw
25[6:0:0:19] disk IBM 1746 FAStT 1070 /dev/sdx
26[6:0:0:20] disk IBM 1746 FAStT 1070 /dev/sdy
27[6:0:0:21] disk IBM 1746 FAStT 1070 /dev/sdz