{"id":111633,"date":"2024-12-20T19:11:10","date_gmt":"2024-12-20T11:11:10","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=111633"},"modified":"2024-12-20T19:11:10","modified_gmt":"2024-12-20T11:11:10","slug":"linux-cat-wwn","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-cat-wwn.html","title":{"rendered":"linux\u4e0b\u5982\u4f55\u67e5\u770b\u670d\u52a1\u5668wwn\u53f7"},"content":{"rendered":"
PC server\u4e3b\u673a\u4e0eFC\u5b58\u50a8\u8fdb\u884c\u8fde\u63a5\u65f6\uff0c\u4e00\u822c\u9700\u8981\u52a0\u88c5HBA\u5361\uff0c\u4e24\u8005\u4e4b\u95f4\u8854\u63a5\u7684\u4e00\u4e2a\u91cd\u8981\u53c2\u6570\u5c31\u662fwwn\u53f7\u3002redhat\u6216suse\u4e0b\u67e5\u770bwwn\u53f7\u7684\u65b9\u6cd5\u5982\u4e0b\u3002<\/p>\n
\u67e5\u770b \/proc\/scsi\/qla2xxx\/* \uff0c\u5e76\u4ee5 adapter-port \u4e3a\u5173\u952e\u5b57\u8fc7\u6ee4\u5373\u53ef\u67e5\u770bFC HBA\u5361\u7684WWN\u4fe1\u606f\uff1a<\/p>\n
# cat \/proc\/scsi\/qla2xxx\/* | grep adapter-port\r\nscsi-qla0-adapter-port=21000018822c8a2c;\r\nscsi-qla1-adapter-port=21000018822c8a2d;\r\n<\/pre>\n\u4e8c\u3001SuSE Linux 10<\/strong><\/span><\/div>\n\u67e5\u770b \/sys\/class\/fc_host\/host*\/port_name \u6587\u4ef6\u7684\u5185\u5bb9\u5373\u53ef\u770b\u5230\u5bf9\u5e94FC HBA\u5361\u7684WWN\u4fe1\u606f\uff1a<\/p>\n
# cat \/sys\/class\/fc_host\/host*\/port_name\r\n0x210000e08b907955\r\n0x210000e08b902856\r\n<\/pre>\n\u4e09\u3001RedHat Linux AS4<\/strong><\/span><\/div>\n# grep scsi \/proc\/scsi\/qla2xxx\/3\r\nNumber of reqs in pending_q= 0, retry_q= 0, done_q= 0, scsi_retry_q= 0\r\nscsi-qla0-adapter-node=20000018822d7834;\r\nscsi-qla0-adapter-port=21000018822d7834;\r\nscsi-qla0-target-0=202900a0b8423858;\r\nscsi-qla0-port-0=200800a0b8423858:202900a0b8423858:0000e8:1;\r\n<\/pre>\n\u56db\u3001suse11\u3001redhat5\u3001redhat6<\/strong><\/span><\/div>\n\u4e0a\u9762\u90fd\u662f\u4e00\u4e9b\u8001\u7248\u672c\u7cfb\u7edf\u4e0b\u7684\u67e5\u770b\u65b9\u6cd5\uff0c\u5728suse11\u3001redhat5\u3001redhat6\u4e0a\uff0c\u4e00\u822c\u90fd\u53ef\u4ee5\u901a\u8fdb\u67e5\u770b\/sys\/class\/fc_host\/host*\/port_name\u6587\u4ef6\u83b7\u53d6\uff08host*\u4e00\u822c\u67e5\u770b\u5230\u7684\u53ef\u80fd\u662fhost4\u548chost5\uff09,\u6267\u884c\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n
# cat \/sys\/class\/fc_host\/host*\/port_name\r\n0x10000090fa2a6b98\r\n0x10000090fa2a6b99\r\n<\/pre>\n\u7531\u4e8e\u8fde\u63a5\u5b58\u50a8\uff0c\u4e3a\u907f\u514d\u5355\u8def\u5f84\u4e0b\u7684\u6545\u969c\u60c5\u51b5\uff0c\u4e00\u822c\u90fd\u9700\u8981\u914d\u7f6e\u591a\u8def\u5f84\uff0cHBA\u5361\u4e5f\u76f8\u5e94\u90fd\u662f\u6210\u5bf9\u51fa\u73b0\u7684\uff0c\u8fd9\u91cc\u67e5\u770b\u5230wwwn\u53f7\u4e5f\u662f\u6210\u5bf9\u51fa\u73b0\u7684\u3002<\/p>\n
\n\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.361way.com\/linux-wwwn-hba\/4200.html<\/a><\/p>\n