有时想从存储上确认某个存储是分配给哪个主机的,从存储上看到WWN,那么从主机上怎么去确定这个WWN是哪个主机的呢
比如主机上LINUX。
可以查看 /sys/class/fc_host/hostN/port_name 看到,比如下面这个,我从某台机器上看到:
root@hisdg ~]# ls -ltr /sys/class/fc_host/
total 0
lrwxrwxrwx 1 root root 0 Apr 10 21:28 host6 -> ../../devices/pci0000:1a/0000:1a:02.0/0000:1c:00.0/host6/fc_host/host6
lrwxrwxrwx 1 root root 0 Apr 10 21:28 host15 -> ../../devices/pci0000:2d/0000:2d:00.0/0000:2e:00.0/host15/fc_host/host15
[root@hisdg ~]# cat /sys/class/fc_host/host15/port_name
0x10000000c95ef787
[root@hisdg ~]# cat /sys/class/fc_host/host6/port_name
0x10000000c95ef6e3
[root@hisdg ~]#
重庆思庄技术分享-如何查看主机的WWN号