linux获得wwn

在IBM DS4000/DS500存储LUN与主机的map时,需要先知道主机的WWN,在LINUX可通过如下方式获得:

To get the WWNN (World Wide Node Number) in Linux:

mytestsrv1#  cat /sys/class/fc_host/host0/node_name
0x20000000c9538d83

mytestsrv1# cat /sys/class/fc_host/host1/node_name
0x20000000c9538dac

To get the WWPN (World Wide Port Number) in Linux:

mytestsrv1#  cat/sys/class/fc_host/host0/port_name
0x10000000c9538d83
mytestsrv1#  cat /sys/class/fc_host/host1/port_name
0x10000000c9538da

你可能感兴趣的:(职场,休闲,WWN,ds4000)