重庆思庄技术分享-如何查看主机的WWN号

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