{"id":78,"date":"2010-12-10T10:35:18","date_gmt":"2010-12-10T02:35:18","guid":{"rendered":"http:\/\/www.microwolf.net\/?p=78"},"modified":"2010-12-10T10:35:18","modified_gmt":"2010-12-10T02:35:18","slug":"%e4%bd%bf%e7%94%a8iscsi%e6%9e%84%e5%bb%ba%e7%bd%91%e7%bb%9c%e5%ad%98%e5%82%a8","status":"publish","type":"post","link":"http:\/\/www.microwolf.net\/?p=78","title":{"rendered":"\u4f7f\u7528ISCSI\u6784\u5efa\u7f51\u7edc\u5b58\u50a8"},"content":{"rendered":"<table border=\"0\" width=\"100%\">\n<tr>\n<td width=\"100%\"><b>\u4f7f\u7528ISCSI\u6784\u5efa\u7f51\u7edc\u5b58\u50a8 <\/p>\n<p>      \u6458 \u8981<\/b> <\/p>\n<p>      \u67b6\u8bbeiscsi\u670d\u52a1\u5668\u662f\u4e3a\u4e86\u80fd\u8ba9QA\u4eba\u5458\u5728\u6d4b\u8bd5SAN\u7684\u51c6\u5907\u9636\u6bb5\u80fd\u591f\u66f4\u597d\u7684\u8ba4\u8bc6\u548c\u4e86\u89e3iscsi <br \/>\n      \u670d\u52a1\u5668\u7684\u5de5\u4f5c\u73af\u5883\u548c\u5de5\u4f5c\u539f\u7406\u4ee5\u53catarget\u7aef\u548cinitiator\u7aef\u7684\u76f8\u5173\u547d\u4ee4\u64cd\u4f5c\uff0c\u540c\u65f6\u5728\u6d4b\u8bd5SAN\u7684\u8fc7\u7a0b\u4e2d\u8fdb\u884c\u76f8\u5173\u9a8c\u8bc1\u3002\u672c\u6587\u8bb2\u89e3\u4e86\u5728linux\u7aef\u6784\u5efaiscsi\u670d\u52a1\u5668\uff0c\u5728windows 2000\/linux\u7aef\u6784\u5efaiscsi\u5ba2\u6237\u7aef\u7684\u76f8\u5173\u77e5\u8bc6\u548c\u6280\u672f\u5fc3\u5f97\u3002\u8bfb\u8005\u9605\u8bfb\u6b64\u6587\u4e0d\u4f46\u80fd\u5145\u5206\u7406\u89e3iscsi\u7684\u6280\u672f\u77e5\u8bc6\uff0c\u4e86\u89e3iscsi_san,\u8fd8\u80fd\u901a\u8fc7\u6587\u7ae0\u7684\u8bb2\u89e3\u81ea\u5df1\u52a8\u624b\u6784\u5efaiscsi\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\uff0c\u5e76\u6210\u529f\u7684\u5b9e\u73b0\u8fde\u63a5\u3002 <\/p>\n<p>      <b>\u5173 \u952e \u8bcd <\/b><\/p>\n<p>      SAN:\u5b58\u50a8\u533a\u57df\u7f51\u7edc <br \/>\n      NAS:\u7f51\u7edc\u9644\u52a0\u5b58\u50a8 <br \/>\n      HBA:ISCSI\u4e3b\u673a\u9002\u914d\u5668 <br \/>\n      IETF:\u4e92\u8054\u7f51\u5de5\u7a0b\u4efb\u52a1\u7ec4 <br \/>\n      SCSI:\u5c0f\u578b\u8ba1\u7b97\u673a\u7cfb\u7edf\u63a5\u53e3 <br \/>\n      BLOCK:\u6570\u636e\u5757 <br \/>\n      FC:\u5149\u7ea4\u901a\u9053 <br \/>\n      INITIATOR\uff1a\u5ba2\u6237\u7aef\uff0c\u5728SAN\u67b6\u6784\u4e2d\u5373\u4e3a\u8bf7\u6c42\u5b58\u50a8\u4e00\u65b9\u3002 <br \/>\n      TARGET:\u670d\u52a1\u7aef\uff0c\u5728SAN\u67b6\u6784\u4e2d\u5373\u4e3a\u63d0\u4f9b\u5b58\u50a8\u4e00\u65b9\u3002 <br \/>\n      ISCSI:INTERNET SCSI\u6216TCP\/IP OVER SCSI\uff0c\u5373\u628aSCSI\u6280\u672f\u4e0eINTERNET\u4e0a\u5e94\u7528 <br \/> <br \/>\n      TCP\/IP\u6280\u672f\u76f8\u7ed3\u5408\uff0c\u5728IP\u7f51\u7edc\u4e0a\u4f20\u8f93SCSI\u6570\u636e\u3002 <br \/>\n      LUN:\u903b\u8f91\u5355\u5143\u53f7 <br \/>\n      IPSEC\uff1aIP\u534f\u8bae\u63d0\u4f9b\uff0c\u5b9e\u73b0\u7684\u5185\u5bb9\u5305\u62ec\u5b8c\u6574\u6027\u3001\u8ba4\u8bc1\u3001\u673a\u5bc6\u6027\u3001\u4fdd\u9669\u5355\u5b89\u5168\u5173\u8054\u548c\u79d8\u9205\u7ba1\u7406 <\/p>\n<p>\n      <b>1 \u76f8\u5173\u5de5\u7a0b\u80cc\u666f\u7b80\u4ecb\u548c\u5e94\u7528\u4ecb\u7ecd<\/b> <br \/>\n      1.1 \u5de5\u7a0b\u80cc\u666f\u4ecb\u7ecd <br \/> <br \/>\n      \u3000 2003\u5e742\u670811\u65e5\uff0cIETF\uff08Internet Engineering Task Force\uff0c\u4e92\u8054\u7f51\u5de5\u7a0b\u4efb\u52a1\u7ec4\uff09\u901a\u8fc7\u4e86ISCSI\uff08Internet SCSI\uff09\u6807\u51c6\uff0c\u8fd9\u9879\u7531IBM\u3001Cisco\u5171\u540c\u53d1\u8d77\u7684\u6280\u672f\u6807\u51c6\uff0c\u7ecf\u8fc7\u4e09\u5e7420\u4e2a\u7248\u672c\u7684\u4e0d\u65ad\u5b8c\u5584\uff0c\u7ec8\u4e8e\u5f97\u5230IETF\u8ba4\u53ef\u3002\u8fd9\u5c06\u5438\u5f15\u66f4\u591a\u7684\u5382\u5546\u53c2\u4e0e\u5230\u76f8\u5173\u4ea7\u54c1\u7684\u5f00\u53d1\u4e2d\uff0c\u4e5f\u4f1a\u63a8\u52a8\u66f4\u591a\u7684\u7528\u6237\u91c7\u7528ISCSI\u89e3\u51b3\u65b9\u6848\u3002\u4f5c\u4e3a\u65e9\u5df2\u88ab\u5e7f\u6cdb\u4f20\u64ad\u7684\u7f51\u7edc\u5b58\u50a8\u6280\u672f\uff0c\u5f88\u591a\u8bfb\u8005\u90fd\u5bf9\u8fd9\u9879\u6280\u672f\u8033\u719f\u80fd\u8be6\u3002\u4e2a\u4eba\u8ba4\u4e3aISCSI\u6280\u672f\u6700\u91cd\u8981\u7684\u8d21\u732e\u5728\u4e8e\u5176\u5bf9\u4f20\u7edf\u6280\u672f\u7684\u7ee7\u627f\u548c\u53d1\u5c55\u4e0a\uff1a\u5176\u4e00\uff0cSCSI\uff08Small Computer Systems Interface\uff0c\u5c0f\u578b\u8ba1\u7b97\u673a\u7cfb\u7edf\u63a5\u53e3\uff09\u6280\u672f\u662f\u88ab\u78c1\u76d8\u3001\u78c1\u5e26\u7b49\u8bbe\u5907\u5e7f\u6cdb\u91c7\u7528\u7684\u5b58\u50a8\u6807\u51c6\uff0c\u4ece1986\u5e74\u8bde\u751f\u8d77\u5230\u73b0\u5728\u4ecd\u7136\u4fdd\u6301\u7740\u826f\u597d\u7684\u53d1\u5c55\u52bf\u5934\uff1b\u5176\u4e8c\uff0c\u6cbf\u7528TCP\/IP\u534f\u8bae\uff0cTCP\/IP\u5728\u7f51\u7edc\u65b9\u9762\u662f\u6700\u901a\u7528\u3001\u6700\u6210\u719f\u7684\u534f\u8bae\uff0c\u4e14IP\u7f51\u7edc\u7684\u57fa\u7840\u5efa\u8bbe\u975e\u5e38\u5b8c\u5584\u3002\u8fd9\u4e24\u70b9\u4e3aISCSI\u7684\u65e0\u9650\u6269\u5c55\u63d0\u4f9b\u4e86\u592f\u5b9e\u7684\u57fa\u7840\u3002 <br \/> <br \/>\n      ISCSI\u534f\u8bae\u5b9a\u4e49\u4e86\u5728TCP\/IP\u7f51\u7edc\u53d1\u9001\u3001\u63a5\u6536block\uff08\u6570\u636e\u5757\uff09\u7ea7\u7684\u5b58\u50a8\u6570\u636e\u7684\u89c4\u5219\u548c\u65b9\u6cd5\u3002\u53d1\u9001\u7aef\u5c06SCSI\u547d\u4ee4\u548c\u6570\u636e\u5c01\u88c5\u5230TCP\/IP\u5305\u4e2d\u518d\u901a\u8fc7\u7f51\u7edc\u8f6c\u53d1\uff0c\u63a5\u6536\u7aef\u6536\u5230TCP\/IP\u5305\u4e4b\u540e\uff0c\u5c06\u5176\u8fd8\u539f\u4e3aSCSI\u547d\u4ee4\u548c\u6570\u636e\u5e76\u6267\u884c\uff0c\u5b8c\u6210\u4e4b\u540e\u5c06\u8fd4\u56de\u7684SCSI\u547d\u4ee4\u548c\u6570\u636e\u518d\u5c01\u88c5\u5230TCP\/IP\u5305\u4e2d\u518d\u4f20\u9001\u56de\u53d1\u9001\u7aef\u3002\u800c\u6574\u4e2a\u8fc7\u7a0b\u5728\u7528\u6237\u770b\u6765\uff0c\u4f7f\u7528\u8fdc\u7aef\u7684\u5b58\u50a8\u8bbe\u5907\u5c31\u8c61\u8bbf\u95ee\u672c\u5730\u7684SCSI\u8bbe\u5907\u4e00\u6837\u7b80\u5355\u3002\u652f\u6301ISCSI\u6280\u672f\u7684\u670d\u52a1\u5668\u548c\u5b58\u50a8\u8bbe\u5907\u80fd\u591f\u76f4\u63a5\u8fde\u63a5\u5230\u73b0\u6709\u7684IP\u4ea4\u6362\u673a\u548c\u8def\u7531\u5668\u4e0a\uff0c\u56e0\u6b64ISCSI\u6280\u672f\u5177\u6709\u6613\u4e8e\u5b89\u88c5\u3001\u6210\u672c\u4f4e\u5ec9\u3001\u4e0d\u53d7\u5730\u7406\u9650\u5236\u3001\u826f\u597d\u7684\u4e92\u64cd\u4f5c\u6027\u3001\u7ba1\u7406\u65b9\u4fbf\u7b49\u4f18\u52bf\u3002 <br \/>\n      \u5728\u8fd9\u91cc\uff0c\u4ecb\u7ecd\u4e00\u4e2a\u6982\u5ff5\uff0c\u5373IP Storage\uff08IP\u5b58\u50a8\uff09\u3002\u5728ISCSI\u6280\u672f\u4e0d\u65ad\u5b8c\u5584\u7684\u8fc7\u7a0b\u4e2d\uff0c\u8fd9\u4e2a\u6982\u5ff5\u4e5f\u65e9\u5df2\u88ab\u63a8\u5411\u5e02\u573a\u3002\u7b80\u5355\u7684\u8bf4\uff0cIP\u5b58\u50a8\u5c31\u662f\u57fa\u4e8eIP\u7f51\u7edc\u6765\u5b9e\u73b0\u6570\u636e\u5757\u7ea7\u5b58\u50a8\u7684\u65b9\u5f0f\u3002\u7531\u4e8eISCSI\u6280\u672f\u7684\u56fa\u6709\u4f18\u52bf\uff0cIP\u5b58\u50a8\u66f4\u662f\u8ba9\u5f88\u591a\u7528\u6237\u7fd8\u9996\u4ee5\u5f85\uff0c\u5e0c\u671b\u80fd\u591f\u51fa\u73b0\u4e00\u79cd\u5927\u800c\u7edf\u4e00\u7684\u65b9\u5f0f\uff0c\u771f\u6b63\u5c06\u5b58\u50a8\u89c4\u8303\u5316\u3002 <br \/> <br \/>\n      \u4ee5\u7535\u5b50\u5546\u52a1\u4e3a\u4ee3\u8868\u7684\u5404\u79cd\u7f51\u7edc\u670d\u52a1\u4e1a\u7684\u98de\u901f\u53d1\u5c55\uff0c\u5bf9\u7f51\u7edc\u5b58\u50a8\u63d0\u51fa\u4e86\u66f4\u9ad8\u7684\u8981\u6c42\uff0c\u5e76\u7531\u6b64\u8bde\u751f\u4e86\u8bb8\u591a\u5148\u8fdb\u7684\u7f51\u7edc\u5b58\u50a8\u6280\u672f\u3002\u5176\u4e2d\u6700\u6709\u4ee3\u8868\u7684\u662fSAN\uff0c\u800c\u5c24\u4e3a\u7a81\u51fa\u7684\u662fiSCSI SAN\uff0c\u5373\u878d\u5165\u4e86\u57fa\u4e8e\u7f51\u7edc\u7684\u5c0f\u578b\u8ba1\u7b97\u673a\u6807\u51c6\u63a5\u53e3\u7684SAN\u3002\u5f53\u524d\uff0c\u7535\u5b50\u5546\u52a1\u7684\u8fc5\u731b\u53d1\u5c55\uff0c\u5bf9\u7535\u5b50\u5546\u52a1\u57fa\u7840\u67b6\u6784\uff08\u7f51\u7edc\u8bbe\u5907\uff0c\u8f6f\u4ef6\u7cfb\u7edf\uff0c\u5b58\u50a8\u7cfb\u7edf\uff09\u63d0\u51fa\u4e86\u8d8a\u6765\u8d8a\u9ad8\u7684\u8981\u6c42\u3002\u7535\u5b50\u5546\u52a1\u65e2\u9700\u8981\u53c8\u751f\u6210\u6d77\u91cf\u6570\u636e\uff0c\u800c\u8fd9\u4e9b\u4e0d\u65ad\u6269\u5c55\u7684\u6d77\u91cf\u6570\u636e\u53c8\u5fc5\u987b\u8fdb\u884c\u5b58\u50a8\u548c\u7ba1\u7406\uff0c\u56e0\u6b64\uff0c\u7535\u5b50\u5546\u52a1\u4f01\u4e1a\u5fc5\u987b\u8981\u5904\u7406\u5448\u7206\u70b8\u5f0f\u589e\u957f\u7684\u6570\u636e\uff0c\u5e76\u4f7f\u8fd9\u4e9b\u6570\u636e\u53ef\u4f9b\u5206\u5e03\u5728\u5168\u7403\u7684\u96c7\u5458\u3001\u5ba2\u6237\u548c\u5408\u4f5c\u4f19\u4f34\u6240\u4f7f\u7528\u3002\u57fa\u4e8e\u8fd9\u79cd\u5fc5\u7136\u7684\u9700\u6c42\uff0c\u7f51\u7edc\u5b58\u50a8\u5df2\u88abIT\u754c\u6240\u91cd\u89c6\u3002 <br \/> <br \/>\n      \u7f51\u7edc\u5b58\u50a8\u8bbe\u5907\u63d0\u4f9b\u7f51\u7edc\u4fe1\u606f\u7cfb\u7edf\u7684\u4fe1\u606f\u5b58\u53d6\u548c\u5171\u4eab\u670d\u52a1\uff0c\u5177\u6709\u8d85\u5927\u5b58\u50a8\u5bb9\u91cf\u3001\u8d85\u9ad8\u6570\u636e\u4f20\u8f93\u7387\u53ca\u826f\u597d\u7684\u7cfb\u7edf\u6027\u80fd\u7b49\u7279\u5f81\u3002\u7f51\u7edc\u6570\u636e\u548c\u4fe1\u606f\u7684\u6025\u5267\u589e\u52a0\u4e5f\u5fc5\u5c06\u5e26\u6765\u7f51\u7edc\u5b58\u50a8\u670d\u52a1\u5e02\u573a\u7684\u8fc5\u901f\u589e\u957f\uff0cForrester Research\u7684\u8c03\u67e5\u8868\u660e\uff0c\u300a\u8d22\u5bcc\u300b1000\u5bb6\u4f01\u4e1a2002\u5e74\u5b58\u50a8\u9700\u6c42\u7684\u589e\u957f\u7387\u8fbe\u5230100%\uff0c\u6709\u4e9b\u516c\u53f8\u751a\u81f3\u9ad8\u8fbe300%\u3002\u4f5c\u4e3a\u7535\u5b50\u5546\u52a1\u4f01\u4e1a\uff0c\u5efa\u7acb\u4e00\u4e2a\u6269\u5c55\u6027\u597d\u3001\u517c\u5bb9\u6027\u5f3a\u3001\u8de8\u5e73\u53f0\u3001\u7ba1\u7406\u65b9\u4fbf\u3001\u5b89\u5168\u53ef\u9760\u7684\u4f01\u4e1a\u5b58\u50a8\u7cfb\u7edf\u662f\u5176\u7535\u5b50\u5546\u52a1\u6574\u4f53\u6218\u7565\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002 <br \/> <br \/>\n      1.SAN\u6280\u672f\u548cNAS\u6280\u672f <br \/>\n      \u5728\u4f20\u7edf\u4f01\u4e1a\u6570\u636e\u5b58\u50a8\u6846\u67b6\u4e0a\uff0c\u5b58\u50a8\u8bbe\u5907\u5927\u90fd\u662f\u4f9d\u9644\u5728\u670d\u52a1\u5668\u540e\u9762\u7684\u56fa\u5b9a\u901a\u9053\u4e0a\uff0c\u5f7c\u6b64\u65e0\u6cd5\u4f5c\u6709\u6548\u7684\u8054\u63a5\u3002\u5982\u679c\u8981\u5b58\u53d6\u670d\u52a1\u5668\u4e0a\u7684\u4fe1\u606f\uff0c\u5219\u5fc5\u987b\u901a\u8fc7LAN\u8fde\u63a5\uff0c\u8fd9\u6837\u65e2\u5360\u636e\u4e86\u5e26\u5bbd\uff0c\u53c8\u6d6a\u8d39\u4e86\u670d\u52a1\u5668\u7684CPU\u8d44\u6e90\u3002\u7ba1\u7406\u5206\u5e03\u7684\u6570\u636e\u7cfb\u7edf\uff0c\u4e5f\u662f\u4e00\u4ef6\u8017\u8d39\u4eba\u529b\u7684\u8fc7\u7a0b\u3002\u7279\u522b\u662f\u7531\u4e8e\u4e0d\u540c\u4ea7\u54c1\u548c\u5e73\u53f0\u7684\u4e0d\u517c\u5bb9\u6027\uff0c\u4f7f\u5f97\u4f01\u4e1a\u9700\u8981\u8058\u8bf7\u8bb8\u591a\u719f\u6089\u4e0d\u540c\u4ea7\u54c1\u548c\u5e73\u53f0\u7684\u5458\u5de5\u3002\u800c\u4e14\u5728\u5404\u5730\u7684\u5b58\u50a8\u91cd\u590d\uff0c\u6d6a\u8d39\u4e86\u4f01\u4e1a\u5927\u91cf\u7684\u8d44\u91d1\u3002\u663e\u800c\u6613\u89c1\uff0c\u4f20\u7edf\u7684\u5b58\u50a8\u6280\u672f\u5df2\u7ecf\u6ee1\u8db3\u4e0d\u4e86\u7535\u5b50\u5546\u52a1\u5bf9\u4fe1\u606f\u5b58\u50a8\u7684\u8981\u6c42\u4e86\uff0c\u8fd9\u65f6\u5b58\u50a8\u7cfb\u7edf\u4ece\u786c\u4ef6\u5230\u8f6f\u4ef6\u90fd\u5fc5\u987b\u4ece\u5355\u673a\u4e0a\u8131\u79bb\u51fa\u6765\uff0c\u5f62\u6210\u72ec\u7acb\u7684\u7f51\u7edc\u5b58\u50a8\u4f53\u7cfb\u3002\u800c\u5b58\u50a8\u533a\u57df\u7f51SAN\uff08Storage Area Networks\uff09\u548c\u7f51\u7edc\u63a5\u5165\u5b58\u50a8NAS\uff08Network Attached Storage\uff09\u5c31\u662f\u8fd9\u7c7b\u6280\u672f\u4ea7\u54c1\u3002 <br \/> <br \/>\n      1.1 NAS\u6280\u672f <br \/> <br \/>\n      NAS\u662f\u90e8\u4ef6\u7ea7\u7684\u5b58\u50a8\u65b9\u6cd5\u3002\u5b83\u5c06\u5b58\u50a8\u8bbe\u5907\u901a\u8fc7\u6807\u51c6\u7684\u7f51\u7edc\u62d3\u6251\u8fde\u63a5\u5230\u4e00\u7ec4\u8ba1\u7b97\u673a\u4e0a\uff0c\u4e0d\u9700\u8981\u670d\u52a1\u5668\u548c\u901a\u7528\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u800c\u7528\u4e00\u4e2a\u9762\u5411\u7528\u6237\u8bbe\u8ba1\u7684\u3001\u4e13\u95e8\u7528\u4e8e\u6570\u636e\u5b58\u50a8\u7684\u7b80\u5316\u64cd\u4f5c\u7cfb\u7edf\u5c31\u53ef\u4ee5\u76f4\u63a5\u4e0a\u7f51\uff0c\u7531\u4e8e\u8fd9\u4e2a\u7cfb\u7edf\u5185\u7f6e\u4e86\u4e0e\u7f51\u7edc\u8fde\u63a5\u6240\u9700\u7684\u534f\u8bae\uff0c\u56e0\u6b64\uff0c\u7cfb\u7edf\u7684\u6574\u4f53\u7ba1\u7406\u4e0e\u7ef4\u62a4\u663e\u5f97\u7b80\u5355\u5feb\u6377\u3002NAS\u662f\u771f\u6b63\u7684Plug-In\uff08\u5373\u63d2\u5373\u7528\uff09\uff0c\u7269\u7406\u4f4d\u7f6e\u7684\u5b89\u653e\u5f88\u7075\u6d3b\uff0c\u53ef\u653e\u5728\u5de5\u4f5c\u7ec4\u4ee5\u5916\u7684\u5176\u4ed6\u5730\u70b9\u3002NAS\u9002\u7528\u4e8e\u7f51\u7edc\u6587\u4ef6\u670d\u52a1\u6a21\u5f0f\uff0c\u5982CAD\u3001\u8f6f\u4ef6\u5f00\u53d1\u3001\u7535\u5b50\u90ae\u4ef6\u7b49\u3002 <br \/>\n      1.2 SAN\u6280\u672f <br \/> <br \/>\n      SAN\u5c06\u5b58\u50a8\u8bbe\u5907\u4f5c\u4e3a\u7f51\u7edc\u4e0a\u7684\u4e00\u4e2a\u533a\u57df\u72ec\u7acb\u51fa\u6765\uff0c\u901a\u8fc7\u4f7f\u7528\u5149\u7ea4\u901a\u9053\u7684\u6570\u636e\u4e13\u7528\u7f51\u7edc\u533a\u57df\uff0c\u6765\u5b9e\u73b0\u5927\u5bb9\u91cf\u5916\u5b58\u8bbe\u5907\u548c\u670d\u52a1\u5668\u95f4\u7684\u6570\u636e\u4ea4\u6362\u3002SAN\u4e00\u65b9\u9762\u5b9e\u73b0\u4e86\u5927\u5bb9\u91cf\u7684\u96c6\u4e2d\u5b58\u50a8\uff0c\u53e6\u4e00\u65b9\u9762\u4e0d\u53d7\u5230\u7f51\u7edc\u73af\u5883\u7684\u5236\u7ea6\uff0c\u56e0\u4e3a\u5b58\u50a8\u8bbe\u5907\u7684\u7f51\u7edc\u662f\u72ec\u7acb\u4e8e\u5c40\u57df\u7f51\u800c\u72ec\u7acb\u5b58\u5728\u7684\u3002SAN\u4e3b\u8981\u7528\u4e8e\u8bf8\u5982\u5ba2\u6237\u673a\/\u670d\u52a1\u5668(client \/server)\u8fd0\u7b97\u67b6\u6784\u5e94\u7528\u6a21\u5f0f\u3001\u6570\u636e\u5e93\u7b49\u9700\u8981\u4e13\u95e8\u6216\u9ad8\u6548\u50a8\u5b58\u8bbe\u5907\u7684\u5927\u5bb9\u91cf\u5b58\u50a8\u73af\u5883\u3002 <br \/> <br \/>\n      NAS\u867d\u7136\u4ef7\u683c\u4f4e\u5ec9\uff0c\u4f46\u662f\u5374\u53d7\u5230\u5e26\u5bbd\u6d88\u8017\u7684\u9650\u5236\uff0c\u65e0\u6cd5\u5b8c\u6210\u5927\u5bb9\u91cf\u7684\u5b58\u50a8\u5e94\u7528\uff0c\u800c\u4e14\u7cfb\u7edf\u96be\u4ee5\u6ee1\u8db3\u5f00\u653e\u6027\u7684\u8981\u6c42\uff0c\u6240\u4ee5\u5728\u7535\u5b50\u5546\u52a1\u9886\u57df\u4e2d\uff0cSAN\u7528\u7684\u8f83\u591a\uff0c\u4e0b\u9762\u4e3b\u8981\u4ecb\u7ecdSAN\u3002 <\/p>\n<p>\n      <b>2.SAN\u6280\u672f\u539f\u7406 <\/b><br \/>\n      2.1 SAN\u7684\u7ed3\u6784 <br \/> <br \/>\n      SAN\u5141\u8bb8\u5b58\u50a8\u8bbe\u5907\u548c\u5904\u7406\u5668\uff08\u670d\u52a1\u5668\uff09\u4e4b\u95f4\u5efa\u7acb\u76f4\u63a5\u7684\u9ad8\u901f\u7f51\u7edc\u8fde\u63a5\uff0c\u901a\u8fc7\u8fd9\u79cd\u8fde\u63a5\u5b9e\u73b0\u53ea\u53d7\u5149\u7ea4\u7ebf\u8def\u957f\u5ea6\u9650\u5236\u7684\u96c6\u4e2d\u5f0f\u5b58\u50a8\u3002SAN\u53ef\u4ee5\u88ab\u770b\u4f5c\u662f\u5b58\u50a8\u603b\u7ebf\u6982\u5ff5\u7684\u4e00\u4e2a\u6269\u5c55\uff0c\u5b83\u4f7f\u7528LAN\u548cWAN\u4e2d\u7c7b\u4f3c\u8def\u7531\u5668\u3001\u96c6\u7ebf\u5668\u3001\u4ea4\u6362\u673a\u548c\u7f51\u5173\u7684\u5355\u5143\uff0c\u5b9e\u73b0\u5b58\u50a8\u8bbe\u5907\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u4e92\u8fde\u3002SAN\u53ef\u5728\u670d\u52a1\u5668\u95f4\u5171\u4eab\uff0c\u4e5f\u53ef\u4ee5\u4e3a\u67d0\u4e00\u670d\u52a1\u5668\u6240\u4e13\u6709\uff0c\u65e2\u53ef\u4ee5\u662f\u672c\u5730\u7684\u5b58\u50a8\u8bbe\u5907\u4e5f\u53ef\u4ee5\u6269\u5c55\u5230\u5176\u4ed6\u5730\u7406\u533a\u57df\u3002SAN\u7684\u63a5\u53e3\u53ef\u4ee5\u662f\u4f01\u4e1a\u7cfb\u7edf\u8fde\u63a5\uff08ESCON\uff09\u3001\u5c0f\u578b\u8ba1\u7b97\u673a\u7cfb\u7edf\u63a5\u53e3\uff08SCSI\uff09\u3001\u4e32\u884c\u5b58\u50a8\u7ed3\u6784\uff08SSA\uff09\u3001\u9ad8\u6027\u80fd\u5e76\u884c\u63a5\u53e3\uff08HIPPI\uff09\u3001\u5149\u7ea4\u901a\u9053\uff08FC\uff09\u6216\u8981\u91cd\u70b9\u9610\u8ff0\u7684\u3001\u5373\u5c06\u6210\u4e3a\u6807\u51c6\u7684iSCSI\u6280\u672f\u3002 <br \/>\n      SAN\u662f\u4e00\u4e2a\u96c6\u4e2d\u5f0f\u7ba1\u7406\u7684\u9ad8\u901f\u5b58\u50a8\u7f51\u7edc\uff0c\u7531\u591a\u4f9b\u5e94\u5546\u5b58\u50a8\u7cfb\u7edf\u3001\u5b58\u50a8\u7ba1\u7406\u8f6f\u4ef6\u3001\u5e94\u7528\u7a0b\u5e8f\u670d\u52a1\u5668\u548c\u7f51\u7edc\u786c\u4ef6\u7ec4\u6210\uff0c\u80fd\u591f\u5e2e\u52a9\u4f01\u4e1a\u5145\u5206\u5229\u7528\u6240\u62e5\u6709\u7684\u5546\u4e1a\u4fe1\u606f\u7684\u4ef7\u503c\u3002\u7531\u4e8eSAN\u7684\u57fa\u7840\u662f\u5b58\u50a8\u63a5\u53e3\uff0c\u662f\u4e0e\u4f20\u7edf\u7f51\u7edc\u4e0d\u540c\u7684\u670d\u52a1\u5668\u540e\u53f0\u7f51\u7edc\uff0c\u7a81\u7834\u4e86\u4f20\u7edf\u7f51\u7edc\u7684\u5e26\u5bbd\u74f6\u9888\u3002 <br \/>\n      SAN\u901a\u8fc7\u4ee5\u4e0b\u4e09\u79cd\u65b9\u5f0f\u652f\u6301\u670d\u52a1\u5668\u4e0e\u5b58\u50a8\u8bbe\u5907\u4e4b\u95f4\u7684\u76f4\u63a5\u9ad8\u901f\u6570\u636e\u4f20\u8f93\uff1a <br \/>\n      \u670d\u52a1\u5668\u5230\u5b58\u50a8\u8bbe\u5907\uff1a\u8fd9\u662f\u670d\u52a1\u5668\u4e0e\u5b58\u50a8\u8bbe\u5907\u4e4b\u95f4\u7684\u4f20\u7edf\u7684\u76f8\u4e92\u4f5c\u7528\u6a21\u5f0f\uff0c\u5176\u4f18\u70b9\u5728\u4e8e\u591a\u4e2a\u670d\u52a1\u5668\u53ef\u4ee5\u4e32\u884c\u6216\u5e76\u884c\u5730\u8bbf\u95ee\u540c\u4e00\u4e2a\u5b58\u50a8\u8bbe\u5907\u3002 <br \/>\n      \u670d\u52a1\u5668\u5230\u670d\u52a1\u5668\uff1aSAN\u53ef\u7528\u4e8e\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u9ad8\u901f\u5927\u5bb9\u91cf\u6570\u636e\u901a\u4fe1\u3002 <br \/>\n      \u5b58\u50a8\u8bbe\u5907\u5230\u5b58\u50a8\u8bbe\u5907\uff1a\u901a\u8fc7\u8fd9\u79cd\u5916\u90e8\u6570\u636e\u4f20\u8f93\u80fd\u529b\uff0c\u53ef\u4ee5\u5728\u4e0d\u9700\u8981\u670d\u52a1\u5668\u53c2\u4e0e\u7684\u60c5\u51b5\u4e0b\u4f20\u8f93\u6570\u636e,\u4ece\u800c\u4f7f\u670d\u52a1\u5668\u80fd\u66f4\u591a\u5730\u5904\u7406\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u7b49\u3002 <br \/>\n      2.2 SAN\u7684\u7279\u6027 <br \/> <br \/>\n      \u548c\u4f20\u7edf\u7684\u7f51\u7edc\u76f8\u6bd4\uff0cSAN\u6709\u4ee5\u4e0b\u7279\u6027\uff1a <br \/>\n      \uff081\uff09\u4f20\u8f93\u901f\u5ea6\u9ad8\u3001\u8ddd\u79bb\u8fdc\uff0c\u53ef\u63d0\u9ad8\u8d44\u6599\u7684\u4f7f\u7528\u7387\uff0c\u5bf9\u7535\u5b50\u5546\u52a1\u5168\u7403\u5316\u662f\u4e00\u4e2a\u6709\u529b\u7684\u63a8\u52a8\u3002 <br \/>\n      \u3000\u3000\uff082\uff09\u8d44\u6e90\u4e0e\u8bbe\u5907\u5171\u4eab\uff0c\u662fB to B\u7535\u5b50\u5546\u52a1\u6a21\u5f0f\u4e2d\u4f01\u4e1a\u5408\u4f5c\u7684\u5951\u5408\u70b9\u3002 <br \/> <br \/>\n      \u3000\u3000\uff083\uff09\u53ef\u4f5c\u8fdc\u7a0b\u955c\u50cf\uff0c\u589e\u5f3a\u7cfb\u7edf\u7684\u707e\u96be\u9632\u5fa1\u80fd\u529b\u53ca\u91cd\u5efa\u901f\u5ea6\uff0c\u5bf9\u5b89\u5168\u3001\u5bb9\u9519\u548c\u5feb\u901f\u6062\u590d\u7684\u7535\u5b50\u5546\u52a1\u9886\u57df\u5e94\u7528\u975e\u5e38\u6709\u6548\u3002 <br \/>\n      \u3000\u3000\uff084\uff09\u901a\u8fc7SAN\u5907\u4efd\uff0c\u964d\u4f4e\u7ecf\u8fc7LAN\u5907\u4efd\u7684\u6d41\u91cf\u8d1f\u8f7d\uff0c\u51cf\u8f7b\u4f01\u4e1a\u5185\u90e8\u7684\u5e26\u5bbd\u538b\u529b\uff0c\u63d0\u9ad8\u7f51\u7edc\u670d\u52a1\u8d28\u91cf\u3002 <br \/>\n      \u3000\u3000\uff085\uff09\u96c6\u4e2d\u7ba1\u7406\u4e0e\u6574\u5408\u50a8\u5b58\u8bbe\u5907\u8d44\u6e90\uff0c\u4e3a\u4f01\u4e1a\u8282\u7ea6\u5927\u91cf\u7ba1\u7406\u65f6\u95f4\u4e0e\u4eba\u529b\u8d44\u6e90\u3002 <br \/>\n      \u73b0\u5728\u7684SAN\u5927\u591a\u662f\u57fa\u4e8e\u5149\u7ea4\u901a\u9053\uff08Fiber Channel\uff09\u6280\u672f\u3002\u9f50\u6807\u51c6\u5236\u5b9a\u4e8e20\u4e16\u7eaa90\u5e74\u4ee3\u521d\u671f\uff0c\u5b83\u5141\u8bb8\u591a\u7cfb\u7edf\u8bbf\u95ee\u6570\u636e\uff0c\u5bf9\u53cc\u7ede\u7ebf\u7b49\u5176\u4ed6\u7269\u7406\u4ecb\u8d28\u7684\u652f\u6301\u4e5f\u975e\u5e38\u51fa\u8272\uff0c\u5b83\u7684\u4f20\u8f93\u8ddd\u79bb\u8fbe\u5230\u4e8610\u516c\u91cc\u3002 <br \/> <br \/>\n      \u76ee\u524d\uff0c\u8bb8\u591a\u7f51\u7edc\u5b58\u50a8\u63d0\u4f9b\u5546\u81f4\u529b\u4e8e\u5c06SAN\u4e2d\u4f7f\u7528\u7684\u5149\u7ea4\u901a\u9053\u8bbe\u5b9a\u4e3a\u4e00\u79cd\u5b9e\u7528\u6807\u51c6\uff0c\u4f46\u662f\u5176\u67b6\u6784\u7684\u5efa\u8bbe\u6210\u672c\u9ad8\uff0c\u8fdc\u975e\u4e00\u822c\u4f01\u4e1a\u6240\u80fd\u591f\u627f\u53d7\u3002iSCSI\u7684\u51fa\u73b0\u89e3\u51b3\u4e86\u8fd9\u4e2a\u95ee\u9898\u3002\u201ciSCSI\u201d\uff08\u4e92\u8054\u7f51\u5c0f\u578b\u8ba1\u7b97\u673a\u63a5\u53e3\uff09\u6807\u51c6\u628a\u5b58\u50a8\u8bbe\u5907\u548c\u670d\u52a1\u5668\u4e0e\u5e94\u7528\u666e\u901a\u4e92\u8054\u7f51\u534f\u8bae\u5efa\u7acb\u8d77\u6765\u7684\u7f51\u7edc\u7ed3\u5408\u5728\u4e86\u4e00\u8d77\uff0c\u800c\u4e0d\u662f\u4f7f\u7528\u901f\u5ea6\u66f4\u5feb\u4f46\u662f\u4ef7\u683c\u66f4\u6602\u8d35\u3001\u66f4\u590d\u6742\u7684\u5149\u7ea4\u901a\u9053\u6280\u672f\uff0c\u4e3a\u4f17\u591a\u4e2d\u5c0f\u4f01\u4e1a\u5bf9\u7ecf\u6d4e\u5408\u7406\u548c\u4fbf\u4e8e\u7ba1\u7406\u7684\u5b58\u50a8\u8bbe\u5907\u63d0\u4f9b\u4e86\u76f4\u63a5\u8bbf\u95ee\u7684\u80fd\u529b\u3002<\/p>\n<p>\n      <b>3.iSCSI\u6280\u672f<\/b> <br \/>\n      3.1 iSCSI\u4f53\u7cfb\u7ed3\u6784 <br \/> <br \/>\n      iSCSI\u662fInternet SCSI,\u4e5f\u53ebSCSI over TCP\/IP\u3002\u987e\u540d\u601d\u4e49\uff0c\u5b83\u662f\u5efa\u7acb\u5728TCP\/IP\u534f\u8bae\u4e0a\u7684\u4e92\u8054\u7f51\u534f\u8bae\u3002iSCSI\u662f\u4e00\u79cd\u7aef\u5230\u7aef\u7684\u534f\u8bae\uff0c\u8fd0\u884c\u5728\u670d\u52a1\u5668\uff08\u88ab\u79f0\u4e3ainitiators,\u5373\u53d1\u8d77\u7aef\uff09\u3001\u5b58\u50a8\u8bbe\u5907\uff08\u88ab\u79f0\u4e3atarget\uff0c\u5373\u76ee\u6807\u7aef\uff09\u548c\u534f\u8bae\u4f20\u8f93\u7f51\u5173\u8bbe\u5907\u4e4b\u95f4\u3002iSCSI\u4f7f\u7528\u6807\u51c6\u7684\u4ee5\u592a\u7f51\u4ea4\u6362\u673a\u7684\u8def\u7531\u5668\u6765\u5728\u670d\u52a1\u5668\u548c\u5b58\u50a8\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002\u56fe3\u662fiSCSI\u534f\u8bae\u5c42\u6b21\u6a21\u578b\u3002 <br \/> <br \/>\n      iSCSI\u5efa\u7acb\u5728\u4e24\u4e2a\u4f7f\u7528\u6700\u5e7f\u6cdb\u7684\u534f\u8bae\u4e4b\u4e0a\u3002\u5728\u5b58\u50a8\u65b9\u9762\uff0ciSCSI\u91c7\u7528\u7684\u662fSCSI\u7684\u547d\u4ee4\u8bbe\u7f6e\u3002SCSI\u662f\u8d2f\u7a7f\u4e8e\u6240\u6709\u5b58\u50a8\u914d\u5236\u95f4\u7684\u6838\u5fc3\u534f\u8bae\uff0c\u5b83\u662f\u4e00\u4e2a\u7528\u4e8e\u540cI\/O\u8bbe\u5907\u8fdb\u884c\u901a\u4fe1\u7684\u6d41\u884c\u534f\u8bae\uff0cSCSI\u4f53\u7cfb\u7ed3\u6784\u662f\u57fa\u4e8e\u5ba2\u6237\u7aef\/\u670d\u52a1\u5668\uff08C\/S\uff09\u6a21\u578b\u7684\uff0c\u548cSAN\u7684\u67b6\u6784\u6070\u597d\u543b\u5408\u3002\u5728\u7f51\u7edc\u534f\u8bae\u65b9\u9762\uff0ciSCSI\u57fa\u4e8eTCP\/IP\u8fd9\u4e2a\u6700\u57fa\u7840\u3001\u6700\u666e\u904d\u7684\u534f\u8bae\u3002iSCSI\u7684\u534f\u8bae\u6a21\u578b\u5728TCP\/IP\u7684\u4f20\u8f93\u5c42\u4ee5\u4e0a\u63d2\u5165iSCSI\u5b50\u5c42\uff0c\u8d77\u5230\u5c01\u88c5\u548c\u89e3\u5c01\u88c5\u7684\u4f5c\u7528\uff0c\u5b83\u4f7f\u7528\u7684\u662fiSCSI PDU\uff08iSCSI Protocol Data Units\uff0ciSCSI\u534f\u8bae\u6570\u636e\u5355\u5143\uff09\u3002\u56fe4\u662fiSCSI PDU\u5c01\u88c5\u540e\u7684\u6a21\u578b\u3002 <br \/> <br \/>\n      iSCSI PDU\u7c7b\u578b\u6709\uff1aSCSI Command ,SCSI Response ,Task Management Function Request ,Task Management Function Response ,SCSI Data-out ,SCSI Data-in ,Ready to Transfer ,Asynchronous Message ,Text Request ,Text Response ,Login Request ,Login Response ,Loginout Request ,Loginout Response ,SNACK Request ,Reject ,NOP-Out ,NOP-In. <br \/> <br \/>\n      3.2 iSCSI\u5de5\u4f5c\u673a\u5236 <br \/> <br \/>\n      iSCSI\u7684\u5de5\u4f5c\u6d41\u7a0b\u662fiSCSI\u534f\u8bae\u5728\u7f51\u7edc\u4e0a\u5c01\u5305\u548c\u89e3\u5305\u7684\u8fc7\u7a0b\u3002\u5728\u7f51\u7edc\u7684\u4e00\u7aef\uff0c\u6570\u636e\u5305\u88ab\u5c01\u88c5\u6210\u5305\u62ecTCP\/IP\u5934\u3001iSCSI\u8bc6\u522b\u5305\u548cSCSI\u6570\u636e\u4e09\u90e8\u5206\u5185\u5bb9\uff0c\u4f20\u8f93\u5230\u7f51\u7edc\u53e6\u4e00\u7aef\u65f6\uff0c\u8fd9\u4e09\u90e8\u5206\u5185\u5bb9\u5206\u522b\u88ab\u987a\u5e8f\u5730\u89e3\u5f00\u3002iSCSI\u7cfb\u7edf\u7531\u4e00\u5757SCSI\u5361\u53d1\u51fa\u4e00\u4e2aSCSI\u547d\u4ee4\uff0c\u547d\u4ee4\u88ab\u5c01\u88c5\u5230\u7b2c\u56db\u5c42\u7684\u4fe1\u606f\u5305\u4e2d\u5e76\u53d1\u9001\u3002\u63a5\u6536\u65b9\u4ece\u4fe1\u606f\u5305\u4e2d\u62bd\u53d6SCSI\u547d\u4ee4\u5e76\u6267\u884c\uff0c\u7136\u540e\u628a\u8fd4\u56de\u7684SCSI\u547d\u4ee4\u548c\u6570\u636e\u5c01\u88c5\u5230IP\u4fe1\u606f\u5305\u4e2d\uff0c\u5e76\u5c06\u5b83\u4eec\u53d1\u56de\u5230\u53d1\u9001\u65b9\u3002\u7cfb\u7edf\u62bd\u53d6\u6570\u636e\u6216\u547d\u4ee4\uff0c\u5e76\u628a\u5b83\u4eec\u4f20\u56deSCSI\u5b50\u7cfb\u7edf\u3002\u6240\u6709\u8fd9\u4e00\u5207\u7684\u5b8c\u6210\u90fd\u65e0\u9700\u7528\u6237\u5e72\u9884\uff0c\u800c\u4e14\u5bf9\u7ec8\u7aef\u7528\u6237\u662f\u5b8c\u5168\u900f\u660e\u7684\u3002\u4e3a\u4e86\u4fdd\u8bc1\u5b89\u5168\uff0ciSCSI\u6709\u81ea\u5df1\u7684\u4e0a\u7f51\u767b\u5f55\u64cd\u4f5c\u987a\u5e8f\u3002\u5728\u5b83\u4eec\u9996\u6b21\u8fd0\u884c\u7684\u65f6\u5019\uff0c\u542f\u52a8\u5668\uff08initiator\uff09\u8bbe\u5907\u5c06\u767b\u5f55\u5230\u76ee\u6807\u8bbe\u5907\u4e2d\u3002\u4efb\u4f55\u4e00\u4e2a\u63a5\u6536\u5230\u6ca1\u6709\u6267\u884c\u767b\u5f55\u8fc7\u7a0b\u7684\u542f\u52a8\u5668\u7684iSCSI PDU\u76ee\u6807\u8bbe\u5907\u90fd\u5c06\u751f\u6210\u4e00\u4e2a\u534f\u8bae\u9519\u8bef\uff0c\u800c\u4e14\u76ee\u6807\u8bbe\u5907\u4e5f\u4f1a\u5173\u95ed\u8fde\u63a5\u3002\u5728\u5173\u95ed\u4f1a\u8bdd\u4e4b\u524d\uff0c\u76ee\u6807\u8bbe\u5907\u53ef\u80fd\u53d1\u9001\u56de\u4e00\u4e2a\u88ab\u53cd\u9988\u7684iSCSI PDU\u3002\u8fd9\u79cd\u5b89\u5168\u6027\u662f\u6709\u9650\u7684\uff0c\u56e0\u4e3a\u5b83\u53ea\u4fdd\u62a4\u4e86\u901a\u4fe1\u7684\u542f\u52a8\uff0c\u5374\u6ca1\u6709\u5728\u6bcf\u4e2a\u4fe1\u606f\u5305\u7684\u57fa\u7840\u4e0a\u63d0\u4f9b\u5b89\u5168\u6027\u3002 <br \/> <br \/>\n      \u8981\u4fdd\u8bc1\u8fde\u63a5\u6210\u529f\u540eIP\u5c42\u7684\u5b89\u5168\uff0c\u5219\u8981\u5229\u7528IPSec\u8fdb\u884c\u5305\u4fdd\u62a4\uff0c\u5728\u7ec8\u7aef\u4e4b\u95f4\u63d0\u4f9b\u5b89\u5168\u901a\u9053\u3002IPSec\u5b9e\u73b0\u7684\u5185\u5bb9\u5305\u62ec\u5b8c\u6574\u6027\u548c\u8ba4\u8bc1\u3001\u673a\u5bc6\u6027\u3001\u4fdd\u9669\u5355\u5b89\u5168\u5173\u8054\u548c\u5bc6\u94a5\u7ba1\u7406\u3002 <br \/>\n      iSCSI\u9519\u8bef\u5904\u7406\u548c\u6062\u590d\u5305\u62ec\u6062\u590d\u65b9\u6cd5\uff0c\u8d85\u65f6\u7ba1\u7406\u3001\u9519\u8bef\u5904\u7406\u3001\u5931\u8d25\u5904\u7406\u4ee5\u53ca\u6062\u590d\u7684\u7c7b\u522b\u548c\u5c42\u6b21\u7684\u5212\u5206\u3002 <br \/>\n      iSCSI\u540d\u79f0\u662f\u4e00\u79cd\u5177\u6709\u5168\u7403\u552f\u4e00\u6027\u3001\u6c38\u4e45\u6027\u3001\u4e0e\u5730\u5740\u65e0\u5173\u6027\u7684\u7279\u6b8a\u540d\u79f0\uff0c\u5b83\u6709\u4e24\u79cd\u5f62\u5f0f\uff0c\u5373IQN\u5f62\u5f0f(iSCSI Qualified Name),EUI\u5f62\u5f0f\uff08IEEE EUI-64\u5f62\u5f0f\uff09\u3002iSCSI\u540d\u79f0\u6709\u4ee5\u4e0b\u4f18\u70b9\uff1a <br \/> <br \/>\n      \uff081\uff09\u4e0e\u5730\u5740\u5206\u79bb\uff0c\u786e\u4fdd\u4e86\u5b58\u50a8\u8bbe\u5907\u6709\u552f\u4e00\u7684\u8bc6\u522b\u6807\u5fd7\u800c\u4e0d\u7ba1\u5b83\u5728\u7f51\u7edc\u4e2d\u7684\u54ea\u4e2a\u4f4d\u7f6e\u3002\u5f53\u4e00\u4e2a\u8bbe\u5907\u79fb\u52a8\u5230\u4e0d\u7528\u7684\u7f51\u6bb5\u65f6\uff0c\u867d\u7136IP\u548cTCP\u7aef\u53e3\u6539\u53d8\u4e86\uff0c\u4f46\u662f\u540d\u5b57\u7684\u552f\u4e00\u6027\u786e\u4fdd\u4e86\u5b83\u53ef\u4ee5\u88ab\u91cd\u65b0\u53d1\u73b0\u3002 <br \/>\n      \uff082\uff09\u53ef\u4ee5\u4f7fiSCSI\u8bbe\u5907\u5229\u7528\u591a\u4e2aNIC\u63d0\u4f9b\u5197\u4f59\u8def\u5f84\u3002 <br \/>\n      \uff083\uff09\u957f\u8fbe255\u5b57\u8282\u7684iSCSI\u540d\uff0c\u5e76\u4e0d\u7528\u6765\u8def\u7531\uff0c\u76f8\u53cd\uff0c\u5f53\u4e00\u4e2a\u8282\u70b9\u7684IP\u5730\u5740\u548cTCP\u7aef\u53e3\u5efa\u7acb\u540e\uff0c\u6240\u6709\u7684\u5b58\u50a8\u5904\u7406\u4ec5\u9700IP\u5730\u5740\u548cTCP\u7aef\u53e3\u3002 <br \/>\n      3.3 iSCSI\u7684\u7279\u70b9 <br \/> <br \/>\n      iSCSI\u6709\u4ee5\u4e0b\u51e0\u4e2a\u663e\u8457\u7684\u4f18\u70b9\uff1a <br \/>\n      \uff081\uff09\u57fa\u4e8eTCP\/IP\u534f\u8bae\uff0c\u57fa\u7840\u662f\u4f20\u7edf\u7684\u4ee5\u592a\u7f51\u548c\u56e0\u7279\u7f51\uff0c\u8fd120\u5e74\u6765\uff0c\u7f51\u7edc\u6280\u672f\u7684\u8fc5\u731b\u53d1\u5c55\u4f7f\u4f20\u7edf\u7f51\u7edc\u65e0\u5904\u4e0d\u5728\uff0ciSCSI\u6709\u5f88\u597d\u7684\u57fa\u7840\u3002 <br \/>\n      \uff082\uff09\u968f\u7740\u6280\u672f\u7684\u8fdb\u6b65\uff0cIP\u7f51\u7edc\u7684\u5e26\u5bbd\u53d1\u5c55\u76f8\u5f53\u8fc5\u901f\uff0c\u5343\u5146\u4ee5\u592a\u7f51\u5df2\u7ecf\u53d6\u5f97\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u800c\u4e14\uff0c\u8be5\u534f\u8bae\u7531\u5305\u62ecIBM\u3001Cisco\u3001Intel\u3001Adaptec\u7b49\u4e1a\u754c\u5de8\u5934\u7684\u652f\u6301\u3002 <br \/>\n      \uff083\uff09\u6bd4\u8d77\u4ef7\u683c\u9ad8\u6602\u7684\u5149\u7ea4\u901a\u9053\uff0ciSCSI\u76f8\u5bf9\u5ec9\u4ef7\u3002\u76ee\u524d\uff0c\u5927\u591a\u6570\u4e2d\u5c0f\u4f01\u4e1a\u90fd\u4ee5TCP\/IP\u534f\u8bae\u4e3a\u57fa\u7840\u5efa\u7acb\u4e86\u7f51\u7edc\u73af\u5883\u3002\u5bf9\u4e8e\u4ed6\u4eec\u6765\u8bf4\uff0c\u6295\u5165\u5de8\u8d44\u5229\u7528FC\u5efa\u8bbeSAN\u7cfb\u7edf\u65e2\u4e0d\u73b0\u5b9e\uff0c\u4e5f\u65e0\u5fc5\u8981\u3002\u4f46\u5728\u4fe1\u606f\u65f6\u4ee3\uff0c\u4fe1\u606f\u7684\u91c7\u96c6\u4e0e\u5904\u7406\u5c06\u6210\u4e3a\u51b3\u5b9a\u4f01\u4e1a\u751f\u5b58\u4e0e\u53d1\u5c55\u7684\u5173\u952e\uff0c\u9762\u5bf9\u6d77\u91cf\u6570\u636e\uff0c\u8bb8\u591a\u4f01\u4e1a\u5df2\u611f\u5230\u529b\u4e0d\u4ece\u5fc3\u3002iSCSI\u7684\u5b9e\u73b0\u53ef\u4ee5\u5728IP\u7f51\u7edc\u4e0a\u5e94\u7528SCSI\u7684\u529f\u80fd\uff0c\u5145\u5206\u5229\u7528\u4e86\u73b0\u6709IP\u7f51\u7edc\u7684\u6210\u719f\u6027\u548c\u666e\u53ca\u6027\u7b49\u4f18\u52bf <br \/>\n      \uff084\uff09\u5728\u6280\u672f\u5b9e\u65bd\u65b9\u9762\uff0ciSCSI\u4ee5\u7a33\u5065\u3001\u6709\u6548\u7684IP\u53ca\u4ee5\u592a\u7f51\u67b6\u6784\u4e3a\u9aa8\u5e72\uff0c\u4f7f\u5fcd\u53d7\u6027\u5927\u5927\u589e\u52a0\u3002 <br \/>\n      \uff085\uff09\u5b8c\u5168\u89e3\u51b3\u6570\u636e\u8fdc\u7a0b\u590d\u5236\uff08Data Replication\uff09\u53ca\u707e\u96be\u6062\u590d\uff08Disaster Recover\uff09\u7684\u96be\u9898\u3002 <\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"..\/thumb.asp?image=info\\iscsi\/iscsi-1.jpg\" width=\"574\" height=\"328\"> <\/p>\n<p> <img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"..\/thumb.asp?image=info\\iscsi\/iscsi-2.jpg\" width=\"524\" height=\"454\"> <\/p>\n<p>\n      <b>1.2 iscsi\u7684\u76f8\u5173\u5e94\u7528\u4ecb\u7ecd<\/b> <br \/> <br \/>\n      1.2.1 \u5e94\u7528\u5f15\u8a00 <\/p>\n<p>      \u7531\u4e8eiSCSI\u6280\u672f\u73b0\u5728\u8fd8\u4e0d\u591f\u6210\u719f\uff0c\u6027\u80fd\u4e0a\u8fd8\u4e0d\u80fd\u4e0e\u5149\u7ea4\u901a\u9053\u76f8\u6bd4\uff0ciSCSI\u7684\u5e94\u7528\u4e3b\u8981\u662f\u4f5c\u4e3aSAN\u5728\u4e2d\u4f4e\u7aef\u670d\u52a1\u5668\u4e0a\u7684\u6269\u5c55\u3002\u901a\u8fc7\u4f7f\u7528\u4f8b\u5982Cisco SN 5428\u8fd9\u6837\u7684\u5b58\u50a8\u8def\u7531\u5668\uff0cIT\u7ba1\u7406\u5458\u80fd\u591f\u5728\u4ed6\u4eec\u7684\u5b58\u50a8\u7f51\u7edc\u4e2d\u6302\u63a5\u66f4\u591a\u7684\u670d\u52a1\u5668\uff0c\u5e76\u83b7\u5f97IP\u7f51\u7edc\u6240\u5e26\u6765\u7684\u597d\u5904\u3002 <br \/> <br \/>\n      \u5728\u4f01\u4e1a\u5185\u90e8\u7684\u7535\u5b50\u5546\u52a1\u6d3b\u52a8\u4e2d\uff0c\u5b58\u5728\u5f02\u5730\u5b58\u50a8\u7684\u9700\u8981\uff0c\u540c\u65f6\uff0cB to B\u7684\u8fd0\u8425\u4e2d\uff0c\u5f02\u5730\u5b58\u50a8\u4e5f\u662f\u8054\u63a5\u4f01\u4e1a\u95f4\u7684\u91cd\u8981\u7ebd\u5e26\u3002\u800c\u5f53\u4f01\u4e1a\u6709\u5f02\u5730\u5b58\u50a8\u8981\u6c42\u65f6\uff0c\u5982\u679c\u91c7\u53d6\u5149\u7ea4\u7684\u65b9\u5f0f\u8fde\u63a5\uff0c\u4e0d\u4ec5\u8981\u5728\u590d\u6742\u53c8\u6602\u8d35\u7684\u5149\u7ea4\u94fa\u8bbe\u4e2d\u5f00\u9500\u5de8\u5927\uff0c\u800c\u4e14\u5411ISP\uff08\u7f51\u7edc\u670d\u52a1\u63d0\u4f9b\u5546\uff09\u79df\u7528\u5149\u7ea4\u4f1a\u7ed9\u4f01\u4e1a\u5e26\u6765\u4e00\u7b14\u5f88\u5927\u7684\u5f00\u652f\uff0c\u6240\u4ee5\uff0c\u5927\u591a\u4f01\u4e1a\u4e0d\u4e50\u4e8e\u91c7\u53d6\u5149\u7ea4\u901a\u9053\u8fde\u63a5\u5f02\u5730\u5b58\u50a8\u3002\u4f46\u662f\uff0c\u73b0\u5728SAN\u4e4b\u95f4\u7684\u8fde\u63a5\u53ef\u4ee5\u7528iSCSI\u6765\u89e3\u51b3\u3002iSCSI\u7684IP\u7279\u6027\u9884\u793a\u7740\u4ed6\u53ef\u4ee5\u901a\u8fc7\u4f20\u7edf\u7684IP\u534f\u8bae\u7f51\u7edc\u4f20\u8f93\uff0c\u8fd9\u6837\u4fbf\u80fd\u5ec9\u4ef7\u7684\u5b9e\u73b0\u5f02\u5730\u6570\u636e\u4ea4\u6362\u3002 <br \/> <br \/>\n      \u901a\u8fc7iSCSI\uff0c\u7528\u6237\u8fd8\u53ef\u4ee5\u57fa\u4e8e\u6807\u51c6\u7684\u4ee5\u592a\u7f51\u7ebf\u7f06\u5728\u4efb\u4f55\u5730\u65b9\u521b\u5efa\u5b9e\u9645\u7684SAN\u7f51\u7edc\uff0c\u800c\u4e0d\u518d\u5fc5\u987b\u8981\u6c42\u4e13\u95e8\u7684\u5149\u7ea4\u901a\u9053\u7f51\u7edc\u5728\u670d\u52a1\u5668\u548c\u5b58\u50a8\u8bbe\u5907\u4e4b\u95f4\u4f20\u9001\u6570\u636e\u3002iSCSI\u8ba9\u8fdc\u7a0b\u955c\u50cf\u548c\u5907\u4efd\u6210\u4e3a\u53ef\u80fd\uff0c\u56e0\u4e3a\u6ca1\u6709\u4e86\u5149\u7ea4\u901a\u9053\u7684\u8ddd\u79bb\u9650\u5236\uff0c\u4f7f\u7528\u6807\u51c6\u7684TCP\/IP\u534f\u8bae\uff0c\u6570\u636e\u53ef\u4ee5\u5728\u4ee5\u592a\u7f51\u4e0a\u8fdb\u884c\u4f20\u8f93\u3002\u4ece\u6570\u636e\u4f20\u8f93\u7684\u89d2\u5ea6\u770b\uff0c\u76ee\u524d\u591a\u6570iSCSI\u7684\u7f51\u7edc\u4f20\u8f93\u5e26\u5bbd\u4e3a\u5343\u5146\u53731Gbit\uff0c\u5982\u679c\u5b9e\u73b0\u5168\u53cc\u5de5\u80fd\u591f\u8fbe\u52302Gbit\uff0c\u7b2c\u4e8c\u4ee3\u4ea7\u54c1\u80fd\u591f\u8fbe\u52302Gbit\u5e26\u5bbd\uff0c\u5728\u672a\u6765\u7b2c\u4e09\u4ee3\u901a\u7528iSCSI\u6807\u51c6\u4e2d\uff0c\u5e26\u5bbd\u5c06\u8fbe\u523010Gb\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u91c7\u7528iSCSI\u6784\u5efa\u8fdc\u7a0b\u5f02\u5730\u5bb9\u707e\u7cfb\u7edf\u5df2\u4e0d\u5b58\u5728\u4efb\u4f55\u95ee\u9898\u3002 <\/p>\n<p>      1.2.2 \u57fa\u4e8eISCSI\u6280\u672f\u7684IP SAN\u5e94\u7528 <\/p>\n<p>\n      \u56fe\u4e00 \u57fa\u4e8eISCSI\u6280\u672f\u7684IP SAN <br \/> <br \/>\n      \u56fe\u4e00\u4e3a\u6bd4\u8f83\u7b80\u5355\u7684IP SAN\u7ed3\u6784\u56fe\u3002\u4f8b\u5b50\u4e2d\u4f7f\u7528\u5343\u5146\u4ee5\u592a\u7f51\u4ea4\u6362\u673a\u642d\u5efa\u7f51\u7edc\u73af\u5883\uff0c\u7531ISCSI initiator\u5982\u6587\u4ef6\u670d\u52a1\u5668\u3001ISCSI target\u5982\u78c1\u76d8\u9635\u5217\u53ca\u78c1\u5e26\u5e93\u7ec4\u6210\u3002\u5728\u8fd9\u91cc\u5f15\u5165\u4e24\u4e2a\u6982\u5ff5\uff1ainitiator\u548ctarget\u3002Initiator\u5373\u5178\u578b\u7684\u4e3b\u673a\u7cfb\u7edf\uff0c\u53d1\u51fa\u8bfb\u3001\u5199\u6570\u636e\u8bf7\u6c42\uff1btarget\u5373\u78c1\u76d8\u9635\u5217\u4e4b\u7c7b\u7684\u5b58\u50a8\u8d44\u6e90\uff0c\u54cd\u5e94\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42\u3002\u8fd9\u4e24\u4e2a\u6982\u5ff5\u4e5f\u5c31\u662f\u4e0a\u6587\u63d0\u5230\u7684\u53d1\u9001\u7aef\u53ca\u63a5\u53d7\u7aef\u3002\u56fe\u4e2d\u4f7f\u7528ISCSI HBA\uff08Host Bus Adapter\uff0c\u4e3b\u673a\u603b\u7ebf\u9002\u914d\u5361\uff09\u8fde\u63a5\u670d\u52a1\u5668\u548c\u4ea4\u6362\u673a\uff0cISCSI HBA\u5305\u62ec\u7f51\u5361\u7684\u529f\u80fd\uff0c\u8fd8\u9700\u8981\u652f\u6301OSI\u7f51\u7edc\u534f\u8bae\u5806\u6808\u4ee5\u5b9e\u73b0\u534f\u8bae\u8f6c\u6362\u7684\u529f\u80fd\u3002\u7531\u56fe\u4e00\u53ef\u4ee5\u770b\u51fa\uff0c\u57fa\u4e8eISCSI\u6280\u672f\uff0c\u5229\u7528\u73b0\u6709\u7684IP\u7f51\u7edc\u642d\u5efaIP SAN\u662f\u6781\u5176\u7b80\u5355\u7684\u800c\u4e14\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c80-90MB\/s\u7684\u6570\u636e\u4f20\u8f93\u901f\u7387\u80fd\u591f\u6ee1\u8db3\u8981\u6c42\u3002 ISCSI\u6280\u672f\u7684\u5e94\u7528\u73af\u5883\u63d0\u4f9b\u4e86\u66f4\u597d\u7684\u6027\u4ef7\u6bd4\u3002 <br \/> <br \/>\n      1.2.3 \u57fa\u4e8eISCSI\u6280\u672f\u7684\u7efc\u5408\u5e94\u7528 <\/p>\n<p>\n      \u56fe\u4e8c \u4e3b\u8981\u6570\u636e\u4e2d\u5fc3\u3001\u90e8\u95e8\u7ea7SAN\u5e94\u7528\u53ca\u8fdc\u7a0b\u6570\u636e\u4e2d\u5fc3 <br \/> <br \/>\n      \u5982\u56fe\u4e94\u6240\u793a\uff0c\u4e3b\u8981\u6570\u636e\u4e2d\u5fc3\u901a\u8fc7IP\u5b58\u50a8\u4ea4\u6362\u673a\u5c06\u72ec\u7acb\u7684ISCSI\u5b58\u50a8\u7f51\u7edc\u3001\u5149\u7ea4\u5b58\u50a8\u7f51\u7edc\u3001NAS\u8bbe\u5907\u548cIP\u7f51\u7edc\u7cfb\u7edf\u90fd\u6574\u5408\u5230\u901a\u7528\u7684IP\u7f51\u7edc\u5e73\u53f0\u4e2d\u7684\u5927\u578b\u5e94\u7528\uff0c\u6210\u4e3a\u9ad8\u5ea6\u96c6\u6210\u7684IP\u6570\u636eSAN\u3002IP\u5b58\u50a8\u4ea4\u6362\u673a\u53ef\u4ee5\u4f7f\u7528\u5197\u4f59\u6216\u5806\u53e0\u65b9\u5f0f\uff0c\u901a\u8fc7IP\u7f51\u7edc\u63d0\u4f9bISCSI SAN\u548cFC SAN\u7684\u9ad8\u53ef\u7528\u6027\u53ca\u9ad8\u6269\u5c55\u6027\u7684\u4e92\u8054\u3002IP\u5b58\u50a8\u4ea4\u6362\u673a\u540c\u65f6\u63d0\u4f9b\u4e3b\u8981\u6570\u636e\u4e2d\u5fc3\u5bf9IP\u5e7f\u57df\u7f51\u7edc\u4e2d\u5176\u5b83\u7684\u8fdc\u7a0b\u5b58\u50a8\u7684\u5b9e\u65f6\u8bbf\u95ee\uff0c\u5982\u5c06\u6570\u636e\u8fdc\u7a0b\u955c\u50cf\u5230\u5982\u56fe\u6240\u793a\u7684\u8fdc\u7a0b\u6570\u636e\u4e2d\u5fc3\u4e2d\u4ee5\u8fbe\u5230\u5907\u4efd\u6570\u636e\u7684\u76ee\u7684\u3002 <br \/> <br \/>\n      \u4e3b\u8981\u6570\u636e\u4e2d\u5fc3\u7684\u5178\u578b\u7279\u5f81\u5982\u4e0b\uff1a <br \/>\n      ? \u6570\u636e\u4e2d\u5fc3\u53ef\u4ee5\u4f7f\u7528FC SAN\u3001ISCSI SAN\u3001NAS\u3001\u670d\u52a1\u5668\u548cDAS\u7b49\u5404\u79cd\u5b58\u50a8\u65b9\u5f0f\u4f5c\u4e3a\u5b58\u50a8\u8d44\u6e90\uff1b <br \/> <br \/>\n      ? IP\u5b58\u50a8\u4ea4\u6362\u673a\u6210\u4e3aISCSI\u3001\u5149\u7ea4\u901a\u9053\u3001IP\u670d\u52a1\u5668\u3001NAS\u8bbe\u5907\u4e92\u76f8\u8fde\u63a5\u7684\u67a2\u7ebd\uff0c\u5b9e\u73b0\u4e86\u9ad8\u7aef\u7684\u5b58\u50a8\u6574\u5408\uff0c\u6269\u5c55\u4e86\u901a\u7528IP\u7f51\u7edc\u6280\u672f\u7684\u5e94\u7528\uff1b <br \/> <br \/>\n      ? NAS\u8bbe\u5907\u76f4\u63a5\u8fde\u63a5\u5230IP\u5b58\u50a8\u4ea4\u6362\u673a\uff0c\u4e3a\u5b58\u50a8\u8bbe\u5907\u7684\u6269\u5c55\u63d0\u4f9b\u591a\u79cd\u9009\u62e9\u3002 <br \/> <br \/>\n      \u5982\u56fe\u4e94\u6240\u793a\uff0c\u6709\u4e24\u4e2a\u90e8\u95e8\u7ea7SAN\u5e94\u7528\uff0c\u5b9e\u9645\u4e0a\u53ef\u4ee5\u57fa\u4e8eIP\u7f51\u7edc\u6269\u5c55\u66f4\u591a\u7684\u90e8\u95e8\u7ea7\u5e94\u7528\u3002\u800c\u6b64\u7c7bSAN\u9996\u8981\u5c31\u662f\u5177\u5907\u7075\u6d3b\u7684\u67b6\u6784\uff0c\u80fd\u591f\u6ee1\u8db3\u90e8\u95e8\u7ea7\u7684\u5e94\u7528\u5373\u53ef\u3002\u5c06\u65e5\u5e38\u5de5\u4f5c\u4ea7\u751f\u7684\u6570\u636e\u901a\u8fc7IP\u5e7f\u57df\u7f51\u5907\u4efd\u5230\u8fdc\u7a0b\u6570\u636e\u4e2d\u5fc3\uff0c\u6700\u7ec8\u5b9e\u73b0\u4e0e\u4e3b\u8981\u6570\u636e\u4e2d\u5fc3\u3001\u8fdc\u7a0b\u6570\u636e\u4e2d\u5fc3\u548cIP\u7cfb\u7edf\u7684\u6574\u5408\u3002 <br \/>\n      \u90e8\u95e8\u7ea7SAN\u7684\u5178\u578b\u7279\u5f81\u5982\u4e0b\uff1a <br \/>\n      ? IP SAN\u901a\u8fc7IP\u5e7f\u57df\u7f51\u5b9e\u73b0\u4e0e\u4e3b\u8981\u6570\u636e\u4e2d\u5fc3\u7684\u8fde\u63a5\uff0c\u5e76\u901a\u8fc7IP\u5b58\u50a8\u4ea4\u6362\u673a\u3001\u8def\u7531\u5668\u8bbf\u95ee\u6570\u636e\u4e2d\u5fc3\u7684IP\u3001\u5149\u7ea4\u901a\u9053\u548cISCSI\u5b58\u50a8\u8d44\u6e90\uff1b <br \/> <br \/>\n      ? ISCSI\u670d\u52a1\u5668\uff08initiators\uff09\u548c\u5b58\u50a8\uff08targets\uff09\u901a\u8fc7ISCSI HBA\u8fde\u63a5\u5230IP\u7f51\u7edc\uff1b <br \/> <br \/>\n      ? IP\u4ea4\u6362\u673a\u4e92\u8054iSCSI\u7cfb\u7edf\u3002\u56fe\u4e94\u7684\u4f8b\u5b50\u5373\u5b58\u50a8\u7684\u4f01\u4e1a\u7ea7\u5e94\u7528\uff0c\u591a\u6570\u7528\u6237\u7684\u5e94\u7528\u73af\u5883\u90fd\u5305\u542b\u6216\u7c7b\u4f3c\u4e8e\u5176\u4e2d\u7684\u73af\u5883\uff0c\u4ece\u6982\u5ff5\u4e0a\u8fbe\u5230\u4e86\u5b58\u50a8\u76f8\u5bf9\u7edf\u4e00\u7684\u76ee\u7684\u3002 <br \/> <br \/>\n      \u60a8\u53ef\u80fd\u4f1a\u5173\u5fc3\u5230QoS\uff08Quality of Service\uff0c\u670d\u52a1\u8d28\u91cf\uff09\u751a\u81f3\u5b89\u5168\u65b9\u9762\u7684\u95ee\u9898\uff0c\u901a\u8fc7\u516c\u7528\u7f51\u7edc\u4f20\u8f93\u6781\u5176\u91cd\u8981\u7684\u6570\u636e\u8d44\u6e90\u53ef\u80fd\u4f1a\u51fa\u73b0\u95ee\u9898\u3002\u8fd9\u4e2a\u95ee\u9898\u4e5f\u662f\u5ba2\u89c2\u5b58\u5728\u7684\uff0cISCSI\u534f\u8bae\u4e2d\u901a\u8fc7\u591a\u79cd\u5b89\u5168\u65b9\u5f0f\u5c06\u8fd9\u65b9\u9762\u7684\u9690\u60a3\u51cf\u5230\u6700\u4f4e\u3002\u7b2c\u4e00\uff0cTCP\/IP\u7f51\u7edc\u8fde\u63a5\u672c\u8eab\u63d0\u4f9b\u7684\u9ad8\u7ea7\u670d\u52a1\u53ca\u5b89\u5168\u7279\u6027\u53ef\u4ee5\u76f4\u63a5\u5e94\u7528\u5230ISCSI\u4e8b\u7269\u5904\u7406\u8fc7\u7a0b\u4e2d\uff0c\u5c31QoS\u6765\u8bf4\uff0cIP\u7f51\u7edc\u63d0\u4f9b\u4e86\u5e7f\u6cdb\u7684\u89e3\u51b3\u65b9\u6848\u5982\u4e8b\u7269\u5904\u7406\u4f18\u5148\u7ea7\u3001DiffServ\uff08\u670d\u52a1\u533a\u5206\uff09\u3001MPLS\uff08Multi-Protocol Label Switching\uff0c\u591a\u534f\u8bae\u5206\u7c7b\u8f6c\u6362\uff09\u3001RSVP\uff08Resource Reservation Protocol\uff0c\u8d44\u6e90\u9884\u7ea6\u534f\u8bae\uff09\u7b49\uff0c\u5c31\u5b89\u5168\u6027\u800c\u8a00\uff0cIP\u534f\u8bae\u63d0\u4f9bACLs\uff08Access Control Lists\uff09\u3001VLANs\uff08Virtual LANs\uff09\u3001IPSec\u53ca\u9ad8\u7ea7\u6570\u636e\u7f16\u7801\u89c4\u5219\u7b49\u65b9\u6848\u3002\u7b2c\u4e8c\uff0cISCSI\u534f\u8bae\u672c\u8eab\u4e5f\u63d0\u4f9b\u4e86QoS\u53ca\u5b89\u5168\u7279\u6027\uff0c\u9996\u5148\u5c31\u662f\u767b\u5f55\u64cd\u4f5c\u987a\u5e8f\uff0c\u53ef\u4ee5\u9650\u5236initiator\u4ec5\u5411target\u5217\u8868\u4e2d\u7684\u76ee\u6807\u53d1\u767b\u5f55\u8bf7\u6c42\uff0c\u518d\u7531target\u786e\u8ba4\u5e76\u8fd4\u56de\u54cd\u5e94\uff0c\u4e4b\u540e\u624d\u5141\u8bb8\u901a\u4fe1\uff1b\u5176\u6b21\u5c31\u662f\u901a\u8fc7IPSec(ip security)\u5c06\u6570\u636e\u5305\u52a0\u5bc6\u4e4b\u540e\u4f20\u8f93\uff0c\u5305\u62ec\u6570\u636e\u5b8c\u6574\u6027\u3001\u786e\u5b9a\u6027\u53ca\u673a\u5bc6\u6027\u68c0\u6d4b\u7b49\u3002\u7b2c\u4e09\uff0c\u4e5f\u662f\u6781\u4e3a\u7279\u6b8a\u7684\u65b9\u5f0f\uff0c\u5373\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u4e13\u6709\u7684\u7f51\u7edc\u4ee5\u4fdd\u8bc1\u4e0e\u5176\u4ed6\u4e8b\u7269\u5904\u7406\u5206\u5f00\uff0c\u901a\u8fc7\u7269\u7406\u65b9\u5f0f\u5c06\u6570\u636e\u4f20\u8f93\u5b8c\u5168\u9694\u79bb\u4e8e\u516c\u7528\u7f51\u7edc\u4e4b\u5916\uff0c\u4e14\u53ef\u4ee5\u4fdd\u8bc1\u4e0d\u4f1a\u5f15\u8d77\u7f51\u7edc\u963b\u585e\u5bfc\u81f4\u6027\u80fd\u74f6\u9888\u3002 <\/p>\n<p>      <b>2 \u670d\u52a1\u5668\u53ca\u5ba2\u6237\u7aef\u7684\u914d\u7f6e<\/b> <br \/>\n      2.1 \u57fa\u4e8elinux\u7684iscsi\u670d\u52a1\u5668\u7684\u914d\u7f6e <br \/> <br \/>\n      2.1.1 \u5b89\u88c5\u670d\u52a1\u5305 <br \/> <br \/>\n      \u9996\u5148\uff0clinux iscsi\u670d\u52a1\u5668\u7684\u914d\u7f6e\u9700\u8981\u670d\u52a1\u5668\u7aef\u7684\u5b89\u88c5\u5305\uff0c\u767b\u9646\u5230http:\/\/www.sourceforge.net\u4e0a\u53ef\u4ee5\u4e0b\u8f7d\u5230\u8be5\u8f6f\u4f53\u3002\u4e0b\u8f7dunh_iscsi_RH9.0-1.4.01\u540e\u5b89\u88c5linux9.0\uff0c\u5e76\u8fdb\u884crpm\u5305\u7684\u5b89\u88c5\u3002Text\u6a21\u5f0f\u4e0brpm \u2013i unh_iscsi_RH9.0-1.4.01\uff0c\u56fe\u5f62\u6a21\u5f0f\u4e0b\uff0c\u8fdb\u5165\u6dfb\u52a0\u5220\u9664\u7a0b\u5e8f\u5373\u53ef\u3002\u8fd9\u4e2a\u5b89\u88c5\u5305\u5305\u62ec\u4e24\u4e2a\u90e8\u5206\uff08initiator\/ target\uff09\u3002\u5b89\u88c5\u5b8c\u6210\u540e\u5728linux\u4e0b\u53ef\u4ee5\u627e\u5230\u589e\u52a0\u7684\u6587\u4ef6\u6216\u6587\u4ef6\u5939\u6709\u7684\u662f\u7528\u6765\u914d\u7f6einitiator\u7684\uff0c\u6709\u7684\u662f\u7528\u6765\u914d\u7f6etarget\u7684\u3002 <br \/> <br \/>\n      2.1.2 \u91cd\u8981\u6587\u4ef6\u53ca\u547d\u4ee4\u64cd\u4f5c <br \/> <br \/>\n      \u5b89\u88c5\u6210\u529f\u540e\uff0c\u7528lsmod\u547d\u4ee4\u5217\u51fa\u5f53\u524d\u52a0\u8f7d\u7684\u6a21\u5757\uff0c\u4f1a\u53d1\u73b0\u5df2\u7ecf\u52a0\u8f7d\u7684\u6a21\u5757\u4e2d\u591a\u4e86unh_iscsi_initiator\u7684\u670d\u52a1\uff0c\u8be5\u9879\u670d\u52a1\u662f\u5728\u5b89\u88c5\u6210\u529f\u540e\u81ea\u52a8\u6dfb\u52a0\u7684\uff0c\u5e76\u4e14\u52a0\u8f7d\u5230\u4e86\u542f\u52a8\u4e2d\uff0c\u4ee5\u540e\u6bcf\u6b21\u542f\u52a8\u9ed8\u8ba4\u90fd\u4f1a\u542f\u52a8\uff0c\u8be5\u9879\u670d\u52a1\u662f\u4e3ainitiator\u7aef\u8bbe\u8ba1\u7684\uff0c\u7531\u4e8e\u8be5\u5b89\u88c5\u5305\u66f4\u6ce8\u91cd\u5ba2\u6237\u7aef\u7684\u670d\u52a1\uff08\u66f4\u6ce8\u91cd\u662f\u6307\u591a\u6570\u673a\u5668\u8fd8\u662f\u4f5c\u4e3ainitiator\u7aef\u7684\uff09\uff0c\u6240\u4ee5\u9ed8\u8ba4\u628ainitiator\u7aef\u7684\u670d\u52a1\u7a0b\u5e8f\u542f\u52a8\u5e76\u6dfb\u52a0\u5230\u542f\u52a8\u7a0b\u5e8f\u7ec4\u4e2d\uff0c\u65b9\u4fbf\u4ee5\u540e\u4f7f\u7528\u3002\u5728\/etc\/init.d\/\u4e0b\u770b\u5230\u7684iscsi\u76f8\u5173\u542f\u52a8\u7a0b\u5e8funh_iscsi\u5c31\u662f\u88ab\u542f\u52a8\u7684initiator\u7aef\u8d77\u52a8\u670d\u52a1\u7684\u811a\u672c\u3002\u5b83\u5728\u542f\u52a8\u7684\u65f6\u5019\u4f1a\u628a\u4fe1\u606f\u5199\u5165log\u3002\u53e6\u5916\/usr\/share\/doc\/unh_iscsi\u662f\u76f8\u5173\u8bf4\u660e\u6587\u4ef6\u3002\u90a3\u914d\u7f6e\u670d\u52a1\u5668\u7684\u7a0b\u5e8f\u5728\u54ea\u91cc\u5462\uff1f\u5728\u914d\u7f6e\u670d\u52a1\u5668\u7684\u8fc7\u7a0b\u4e2d\u9700\u8981\u76f8\u5173\u7684\u914d\u7f6e\u6587\u4ef6\u3001\u7ba1\u7406\u5de5\u5177\u3001log\u548c\u8bf4\u660e\u6863\uff0c\u8fd9\u4e9b\u90fd\u5305\u542b\u5728\u5982\u4e0b\u76ee\u5f55\u4e2d\uff1a <br \/>\n      \/opt\/unh\/iscsi\/ <br \/>\n      bin &#8211; Commands and utilities <br \/> <br \/>\n      logs &#8211; Log files <br \/> <br \/>\n      modules &#8211; Kernel modules (indexed by kernel version) <br \/> <br \/>\n      dev &#8211; Device files <br \/> <br \/>\n      conf &#8211; Configuration files <br \/> <br \/>\n      src &#8211; UNH iSCSI Source <br \/> <br \/>\n      \u5728\/opt\/unh\/iscsi\/bin\u4e0b\u662f\u5e38\u7528\u7684\u547d\u4ee4\uff0c\u5305\u62eciscsi_config\uff0ciscsi_connect\uff0c <br \/>\n      Iscsi_disconnect\uff0ciscsi_manage\uff0ciscsi_mount\uff0ciscsi_rebuild\uff0c iscsi_umount\u7b49\u3002iscsi_manage\u7528\u6765\u5728\u5efa\u7acb\u5bf9\u8bdd\u7684\u8fc7\u7a0b\u4e2d\u5bf9\u4f1a\u8bdd\u65b9\u5f0f\u3001\u9a8c\u8bc1\u65b9\u5f0f\u7b49\u8fdb\u884c\u914d\u7f6e\uff0c\u6307\u5b9a\u4f1a\u8bdd\u7684\u4e00\u7cfb\u5217\u89c4\u5219\u3002iscsi_config\u7528\u6765\u5728initiator\u7aef\u53d1\u8d77\u4e0e\u67d0\u670d\u52a1\u5668\u7684\u67d0\u4e2a\u4f1a\u8bdd\uff0c\u5105\u7136\u8981\u6307\u660e\u670d\u52a1\u5668\u7aef\uff0c\u540c\u65f6\u5b83\u4e5f\u80fd\u8d77\u5230\u7ec8\u7ed3\u4f1a\u8bdd\u7684\u4f5c\u7528\u3002\u5b83\u7684\u53c2\u6570\u6d89\u53catarget\u7684ip\u5730\u5740\u3001\u7aef\u53e3\u53f7target\u7684\u540d\u5b57\u4ee5\u53ca\u903b\u8f91\u5355\u5143\u53f7lun\u3002iscsi_rebuild\u7528\u6765\u5728\u4fee\u6539\u5b8c.c\u548c.h\u6587\u4ef6\u540e\u5c06\u8fd9\u4e9b\u6587\u4ef6\u91cd\u65b0\u7f16\u8bd1\uff0c\u4ee5\u8fbe\u5230\u4fee\u6539\u670d\u52a1\u6a21\u5757\u7684\u4f5c\u7528\uff0c\u8fd9\u6837\u5728\u628a\u4fee\u6539\u540e\u91cd\u65b0\u751f\u6210\u7684\u6a21\u5757\u63d2\u5165\u540e\uff0c\u624d\u80fd\u4f7f\u670d\u52a1\u5668\u7aef\u670d\u52a1\u6a21\u5757\u7684\u76f8\u5e94\u4fee\u6539\u5f97\u5230\u5b9e\u73b0\u3002Modules\u4e0b\u653e\u7f6e\u7684\u662f\u6709\u5173\u5185\u6838\u7684\u7a0b\u5e8f\u6a21\u5757\uff0c\u5373\u8981\u7528\u5230\u7684unh_iscsi_target.o\u3001unh_iscsi_initiator.o\u3001unh_scsi_target.o\u8fd9\u4e09\u4e2a\u6a21\u5757\u3002\/opt\/unh\/iscsi\/conf\u4e0b\u6709\u4e24\u4e2a\u6587\u4ef6\uff0c\u4e3afstab.iscsi.sample\u3001target.sample\u3002target.sample\u53ef\u7528\u6765\u8fde\u63a5target\uff0c\u53ef\u8bbe\u7f6e\u88ab\u8bbf\u95ee\u670d\u52a1\u5668\u7684\u670d\u52a1\u5668\u540d\u3001\u670d\u52a1\u5668ip\u3001\u670d\u52a1\u5668\u7aef\u53e3\u3001lun\uff08\u9ed8\u8ba4\u8bbf\u95ee\u6240\u6709\u7684lun\uff0c\u5373all\uff09\uff0c\u4ee5\u53cainitiator\u7684\u540d\u5b57\u3002fstab.iscsi.sample\u4e0etarget.sample\u76f8\u914d\u5408\uff0c\u7528\u5728\u8fde\u63a5vd\u65f6\uff0c\u53ef\u4ee5\u8bbe\u7f6etarget\u540d\uff0clun\uff0cpart(\u5373\u8981\u8bbf\u95ee\u7684\u5206\u533a)\uff0c\u78c1\u76d8mount\u7684\u8def\u5f84\uff0c\u6587\u4ef6\u7cfb\u7edf\u683c\u5f0f\uff0c\u53ca\u76f8\u5173\u9009\u9879\uff08\u9ed8\u8ba4\u4e3adefaults\uff09\u3002\u8fd9\u4e24\u4e2asample\u662f\u57fa\u4e8elinux\u7cfb\u7edf\u7684initiator\u8fde\u63a5\u670d\u52a1\u5668\u65f6\u9700\u8981\u914d\u7f6e\u7684\u4e24\u4e2a\u6587\u4ef6\uff0c\u76f8\u5f53\u4e8econf\u7684\u4f5c\u7528\u3002iscsi_connect\u4e5f\u53ef\u4eceinitiator\u53d1\u8d77\u8bf7\u6c42\u4e0etarget\u5efa\u7acb\u8fde\u63a5\uff0c\u4ed6\u7684\u5de5\u4f5c\u539f\u7406\u5c31\u662f\u8c03\u7528\u4e0a\u8ff0\u4e24\u4e2asample\u3002iscsi_disconnect\u7528\u6765\u65ad\u5f00\u8fde\u63a5\u3002iscsi_mount \u7528\u6765\u628a\u6240\u89c1\u5230\u7684iscsi\u786c\u76d8mount \u5230\u672c\u5730\u4f7f\u7528\uff0ciscsi_umount \u8d77\u5230\u76f8\u53cd\u7684\u4f5c\u7528\u3002\u6700\u540e\u662f\/opt\/unh\/iscsi\/src\u76ee\u5f55\uff0c\u8be5\u76ee\u5f55\u662f\u6e90\u4ee3\u7801\u76ee\u5f55\uff0c\u4f5c\u914d\u7f6e\u9700\u8981\u4fee\u6539\u91cc\u9762\u7684\u4e00\u4e9b\u6587\u4ef6\uff0c\u7136\u540e\u91cd\u65b0\u7f16\u8bd1\u3002\u5728src\u76ee\u5f55\u4e0b\uff0c\u6709\u5f88\u591a\u7684\u6e90\u6587\u4ef6\u548c\u8bf4\u660e\u6587\u4ef6\u7528\u6765\u914d\u7f6e\u670d\u52a1\u5668\u3002\u7531\u4e8e\u6709\u4e9b\u6587\u4ef6\u4e0e\u914d\u7f6e\u670d\u52a1\u5668\u65e0\u5173\u6216\u672a\u6d89\u53ca\u5230\u800c\u6682\u4e0d\u5217\u51fa\uff0c\u53ea\u5199\u51fa\u4e00\u4e9b\u7528\u5230\u7684\uff0c\u4ee5\u4f9b\u5927\u5bb6\u53c2\u8003\u3002Src\u4e0b\u5e38\u7528\u76ee\u5f55\u6709\uff1acmd\uff0cdocs\uff0cinitiator\uff0ctarget\uff0cscripts\uff0ctest\u3002cmd\u76ee\u5f55\u4e0b\u5b58\u653e\u547d\u4ee4\uff0c\u5176\u4e2d\u6709\u7684\u5df2\u5728\/opt\/unh\/iscsi\/bin\u4e0b\u51fa\u73b0\u8fc7\u3002Docs\u76ee\u5f55\u4e0b\u5b58\u653e\u8bf4\u660e\u6587\u4ef6\uff0c\u5176\u4e2d\u5bf9iscsi_config\uff0ciscsi_manage\u7b49\u4f5c\u4e86\u4e00\u4e9b\u8bf4\u660e\uff0c\u8fd9\u4e9b\u6587\u4ef6\u80fd\u591f\u5f88\u597d\u5730\u5e2e\u52a9\u6211\u4eec\u5bf9iscsi_manage\u548ciscsi_config\u8fdb\u884c\u914d\u7f6e\u3002Target\u76ee\u5f55\u5b58\u653e\u7684\u662ftarget\u7aef\u7684\u6e90\u4ee3\u7801\uff0c\u4fee\u6539\u540e\u7f16\u8bd1\u518d\u5c06\u670d\u52a1\u6a21\u5757\u63d2\u5165\u53ef\u7528\u6765\u5b9e\u73b0\u670d\u52a1\u5668\u7aef\u7684\u914d\u7f6e\u3002Scripts\u76ee\u5f55\u4e0b\u5b58\u653e\u7684\u6709\u56db\u4e2a\u6587\u4ef6\uff0c\u8fd9\u56db\u4e2a\u6587\u4ef6\u4e3asample\u5373\u6837\u677f\uff0c\u53ef\u4ee5\u628a\u5b83\u4eeccopy\uff0c\u7136\u540e\u5bf9\u5907\u4efd\u6587\u4ef6\u8fdb\u884c\u4fee\u6539\uff0c\u4fee\u6539\u540e\u7ed9\u5176\u6307\u5b9a\u4e3a\u53ef\u6267\u884c\u7684\u5c5e\u6027\uff0c\u6267\u884c\u5373\u53ef\u3002\u8fd9\u56db\u4e2a\u6587\u4ef6\u5404\u6709\u4e0d\u540c\u7684\u7528\u6cd5\uff0c\u524d\u9762\u7684\u4e24\u4e2a\u6587\u4ef6\u4e0e\/opt\/unh\/Iscsi\/conf\/\u4e0b\u7684\u6587\u4ef6\u7528\u6cd5\u76f8\u540c\uff0c\u540e\u4e24\u4e2a\u6587\u4ef6\u4e5f\u662f\u7528\u6765\u8fde\u63a5target\u7aef\u7684\uff0c\u4f46\u6dfb\u52a0\u4e86\u9a8c\u8bc1\u7684\u529f\u80fd\u3002target.sample\u4e3anone\u9a8c\u8bc1\uff0c\u5373\u4e0d\u9a8c\u8bc1\uff0c\u800ctarget.sample.chap\u91c7\u7528chap\u9a8c\u8bc1\u65b9\u6cd5\uff0c\u9700\u8981\u8fdb\u884c\u7528\u6237\u540d\u548c\u5bc6\u7801\u7684\u8f93\u5165\uff0c\u5176\u4e2d\u6709\u4e24\u5957\uff0c\u4e00\u5957\u662f peer password &#038;&#038;username\uff0c\u53e6\u4e00\u5957\u662flocal password&#038;&#038;username\uff0c target.sample.srp\u91c7\u7528\u4e86srp\u9a8c\u8bc1\u65b9\u6cd5\u3002\u5f53\u7136\u8fd9\u4e09\u4e2a\u6587\u4ef6\u4e5f\u53ef\u4eceiscsi_config\u6216iscsi_manage\u6765\u8fdb\u884c\u914d\u7f6e\uff0c\u4f46\u4e0d\u63a8\u8350\u8fd9\u4e48\u505a\uff0c\u6700\u597d\u8fd8\u662f\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\uff0c\u914d\u7f6e\u6587\u4ef6\u4fee\u6539\u6bd4\u8f83\u7b80\u5355\uff0c\u800c\u4e14\u8fd8\u4e0d\u7ecf\u5e38\u51fa\u9519\uff0c\u53e6\u5916\u4fee\u6539\u6587\u4ef6\u540e\u53ef\u76f4\u63a5\u8fd0\u884c\uff0c\u4e5f\u53ef\u901a\u8fc7iscsi_connect\u8c03\u7528\u6587\u4ef6\u8fde\u63a5target\u3002\u547d\u4ee4\u884c\u7684\u65b9\u6cd5\u5c5e\u4e8e\u9ad8\u7ea7\u8bbe\u7f6e\uff0c\u53ef\u4ee5\u6307\u5b9a\u591a\u91cd\u9a8c\u8bc1\u3002\u4e0b\u9762\u662f\u6709\u5173\u547d\u4ee4\u884c\u7684\u4f7f\u7528\u65b9\u6cd5\u3002iscsi_manage\u7684\u5e38\u7528\u52a8\u4f5c\u53c2\u6570\u4e3b\u8981\u6709set\/force\/restore\uff0c\u6bcf\u79cd\u52a8\u4f5c\u53c2\u6570\u53c8\u5bf9\u5e94\u4e0d\u540c\u7684\u72b6\u6001\u53c2\u6570\uff0c\u5373\u8981\u7528\u8fd9\u4e09\u79cd\u52a8\u4f5c\u8bbe\u7f6e\u76f8\u5e94\u7684\u72b6\u6001\uff0c\u5305\u62ec\u9a8c\u8bc1\u65b9\u5f0f\uff0c\u4f1a\u8bdd\u5f62\u5f0f\uff0cpeer\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0clocal\u7528\u6237\u540d\u548c\u5bc6\u7801\u7b49\u3002Iscsi_config\u7684\u683c\u5f0f\u4e3aiscsi_config <what todo>[host=number][ip=address_or_name][port=number][target=number][lun=number]\u3002What to do \u4e00\u680f\u8f93\u5165up or down \uff0c\u7528\u6765\u5efa\u7acb\u5e76\u8bbe\u5b9ainitiator\u5230target\u7684\u8fde\u63a5\uff0cup\u7528\u6765\u5efa\u7acb\u8fde\u63a5\uff0cdown\u7528\u6765\u65ad\u5f00\u8fde\u63a5\u3002Host=number\u662f\u7528\u6765\u6307\u51fainitiator\u7aef\u7531kernel\u5206\u914d\u7684scsi \u9002\u914d\u5668\u53f7\uff0c\u8bbe\u7f6e\u65f6\u53ef\u5728\u5ba2\u6237\u7aef\u7684\u76f8\u5e94\u6587\u4ef6\u8def\u5f84\/proc\/scsi\/iscsi_initiator\u4e0b\u627e\u5230\u76f8\u5e94\u7684\u8bf4\u660e\uff0c\u5b9e\u9645\u4e0a\u5105\u673a\u5668\u4e0a\u6ca1\u6709scsi\u8bbe\u5907\u65f6\uff0chost\/target number\u4f1a\u88ab\u6307\u5b9a\u4e3a0\uff0c\u5426\u5219\u4e3a1\u3002Ip\u5730\u5740\u586b\u5165ip address\u3002Port\u7aef\u53e3\u4e3atarget\u5bf9initiator\u5f00\u653e\u7684\u7528\u6765\u5efa\u7acb\u4f1a\u8bdd\u7684\u7aef\u53e3\u53f7\u3002Target number\u662f\u7528\u6765\u63d0\u4f9btarget\u5141\u8bb8\u7684\u6700\u5927\u4f1a\u8bdd\u6570\u3002Lun number\u7528\u6765\u6307\u5b9ainitiator\u7aef\u8981\u8fde\u63a5\u7684target\u7684vd\u53f7\uff0c\u5982\u679c\u4e0d\u586b\u7684\u8bdd\uff0c\u53ef\u8ba4\u4e3a\u8fde\u63a5\u6240\u6709\u7684vd\u3002\u73b0\u5728\u6765\u4e3e2\u4e2a\u6bd4\u8f83\u5b9e\u7528\u800c\u7b80\u5355\u7684\u4f8b\u5b50\u5206\u522b\u8bf4\u660eiscsi_manage\u548ciscsi_config\u7684\u7528\u6cd5\uff1a\u4f8b\u5b501\uff1a <br \/> <br \/>\n      Iscsi_manage target restore(target\u7aef\u6062\u590d\u4e3a\u521d\u59cb\u8bbe\u7f6e\uff0c\u53ef\u4ee5\u6e05\u9664\u6240\u6709\u7684\u4fee\u6539) <br \/> <br \/>\n      Iscsi_manage target set Authmethod=CHAP\uff0cNONE(\u7528\u6237\u9a8c\u8bc1\u65b9\u5f0f\u4e3a\u53cc\u9009\uff0c\u53ef\u4ee5\u9a8c\u8bc1\uff0c\u4e5f\u53ef\u4e0d\u9a8c\u8bc1\uff0c\u9a8c\u8bc1\u7684\u65f6\u5019\uff0c\u9700\u8f93\u5165\u4e24\u5957\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u4e00\u5957\u662fpeer x\/n\uff0c\u4e00\u5957\u662flocal x\/n) <br \/> <br \/>\n      Iscsi_manage target set Sessiontype=Discovery\uff08\u6307\u5b9a\u4f1a\u8bdd\u7684\u65b9\u5f0f\u4e3adiscovery\uff09Iscsi_manage target force s(\u5f3a\u5236\u8ba4\u8bc1\uff0c\u683c\u5f0f\u5fc5\u987b) <br \/> <br \/>\n      Iscsi_manage target force px=\u201c123\u201d\uff08target\u7aef\u7528\u6237\u5bc6\u7801\uff09 <br \/> <br \/>\n      Iscsi_manage target force pn=\u201chaha\u201d\uff08target\u7aef\u7528\u6237\u540d\uff09 <br \/> <br \/>\n      Iscsi_manage target force t\uff08\u683c\u5f0f\u5fc5\u987b\uff0c\u6307\u5b9a2\u5957\u8ba4\u8bc1\u65b9\u5f0f\uff0c\u8981\u8f93\u5165lx\/ln\u5fc5\u987b\u8f93\u5165force t\uff09 <br \/> <br \/>\n      Iscsi_manage target force lx=\u201c123\u201d(\u672c\u5730\u7528\u6237\u5bc6\u7801) <br \/> <br \/>\n      Iscsi_manage target force ln=\u201chaha1\u201d\uff08\u672c\u5730\u7528\u6237\u540d\uff09 <br \/> <br \/>\n      \u4f8b\u5b502\uff1a <br \/>\n      Iscsi_config up ip=123.45.67.89 port=5142 host=1 target=2 lun=3 cid=4 <br \/> <br \/>\n      \u5728\u8fd9\u91cc\uff0c\u7528\u6765\u5efa\u7acb\u4e00\u4e2a\u7531initiator\u5230\u76ee\u6807\u5730\u5740\u4e3a132.45.67.89\u4e14\u7aef\u53e3\u4e3a5142\u7684target\u7684\u4f1a\u8bdd\uff0c\u4e14\u8fde\u63a5target\u7684\u7b2c\u4e09\u4e2avd\uff0c\u7531\u4e8e\u8be5initiator\u540c\u65f6\u5df2\u67093\u4e2a\u540c\u8fd9\u4e2avd\u8fdb\u884c\u7684\u8fde\u63a5\uff0c\u8fd9\u6b21\u662f\u5efa\u7acb\u5bf9\u8be5vd\u7684\u7b2c\u56db\u6b21\u8fde\u63a5\uff0c\u6240\u4ee5cid=4\u3002 <br \/>\n      Iscsi_config down host=1 target=2 lun=3 cid=4\u5219\u662f\u628a\u540clun=3\u7684vd\u5efa\u7acb\u7684\u7b2c\u56db\u4e2a\u8fde\u63a5\u7ed3\u675f\u3002\u5982\u679c\u5411\u5df2\u548c\u81ea\u5df1\u5efa\u7acb\u8fde\u63a5\u7684target\u5efa\u7acb\u7b2c\u4e8c\u4e2a\u8fde\u63a5\uff0c\u53ef\u4ee5\u5199\u4f5ciscsi_config up ip=123.45.67.89 host=1 lun=2 <br \/> <br \/>\n      Iscsi_manage init restore host=1 <br \/> <br \/>\n      Iscsi_manage init set InitiatorName=\u2018uname -n\u2019host=1\uff08\u8bbe\u7f6einitiator\u7aef\u540d\u5b57\uff09Iscsi_manage init set TargetName=MyTarget host=1\uff08\u8bbe\u7f6e\u670d\u52a1\u5668\u7aef\u540d\u5b57\uff09Iscsi_manage init set SessionType=Normal host=1\uff08\u8bbe\u7f6e\u4f1a\u8bdd\u65b9\u5f0f\uff09 <br \/> <br \/>\n      Iscsi_manage init set MaxConnections=2 host=1\uff08\u6307\u5b9a\u6700\u5927\u8fde\u63a5\u6570\uff09 <br \/> <br \/>\n      Iscsi_config up ip=123.45.67.89 host=1 lun=1\uff08\u5efa\u7acb\u7b2c\u4e00\u4e2a\u8fde\u63a5\uff09 <br \/> <br \/>\n      Iscsi_manage init restore host=1\uff08\u6e05\u9664\u4e0a\u8ff0\u8bbe\u7f6e\uff0c\u4e3a\u91cd\u8f93\u5165\u4f5c\u51c6\u5907\uff0c\u8fd9\u662f\u7b2c\u4e00\u4e2a\u8fde\u63a5\u5df2\u6210\u529f\u521b\u5efa\uff09 <br \/> <br \/>\n      Iscsi_manage init set InitiatorName=\u2018uname \u2013n\u2019host=1\uff08\u8bbe\u7f6einitiator\u7aef\u540d\u5b57\uff09Iscsi_manage init set TargetName=MyTarget host=1\uff08\u8bbe\u7f6e\u670d\u52a1\u5668\u7aef\u540d\u5b57\uff09 <br \/> <br \/>\n      Iscsi_config up ip=123.45.67.89 host=1 lun=1 cid=2\uff08\u5bf9\u540cvd\u5efa\u7acb\u7b2c\u4e8c\u4e2a\u8fde\u63a5\uff09\u4ee5\u4e0a\u5c31\u662fiscsi_manage\u548ciscsi_config\u7684\u7528\u6cd5\u3002\u9664\u4e86iscsi_manage\u6709\u5173target\u7aef\u7684\u914d\u7f6e\uff0c\u5b9e\u9645\u4e0a\u5b8c\u5168\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\/opt\/unh\/iscsi\/conf\/\u6216\/opt\/unh\/iscsi\/src\/scripts\/\u4e0b\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u7136\u540e\u6267\u884c\u8fd9\u4e9b\u6587\u4ef6\u6765\u6253\u5230\u4e0a\u8ff0\u76ee\u7684\uff0c\u76f8\u5f53\u4e8e\u4ee5\u6279\u5904\u7406\u7684\u65b9\u5f0f\u6267\u884c\u4ee3\u7801\u3002\u53e6\u5916\uff0c\u5728\/opt\/unh\/iscsi\/src\/cmd\/\u4e0b\u7684ini-1\u547d\u4ee4\u4e5f\u53ef\u4ee5\u7528\u6765\u914d\u7f6einitiator\u6765\u8fde\u63a5target\u3002\u4e0b\u9762\u5c06\u5217\u51faini-1\u6587\u4ef6\u7684\u914d\u7f6e\u90e8\u5206\uff0c\u5b83\u80fd\u5e2e\u52a9\u6211\u4eec\u8be6\u7ec6\u5730\u4e86\u89e3\u6574\u4e2a\u7684\u8fde\u63a5\u8fc7\u7a0b\u3002\u8be5\u6587\u4ef6\u4e3b\u8981\u5206\u4e09\u4e2a\u90e8\u5206\uff1a\u670d\u52a1\u5668\u7aef\u7684\u914d\u7f6e\u3001initiator\u4e0e\u7b2c\u4e00\u5757vd\u7684\u8fde\u63a5\u3001initiator\u4e0e\u7b2c\u4e8c\u5757vd\u7684\u8fde\u63a5\u3002\u5185\u5bb9\u4e3b\u8981\u5305\u62ec\u670d\u52a1\u6a21\u5757\u7684\u63d2\u5165\uff0ciscsi_manage\u548ciscsi_config\u7684\u914d\u7f6e\uff0c\u5176\u4e2d\u6700\u6838\u5fc3\u6700\u91cd\u8981\u7684\u90e8\u5206\u5217\u51fa\u5982\u4e0b\uff1a <br \/> <br \/>\n      #!\/bin\/sh <br \/>\n      HBA=0 <br \/>\n      #\/sbin\/insmod scsi_mod <br \/> <br \/>\n      #\/sbin\/insmod sd_mod <br \/> <br \/>\n      #\/sbin\/rmmod unh_iscsi_target <br \/> <br \/>\n      #\/sbin\/rmmod unh_scsi_target <br \/> <br \/>\n      #\/sbin\/insmod \/opt\/unh\/iscsi\/src\/target\/unh_scsi_target.o(\u7f16\u8bd1\u540e\u91cd\u65b0\u751f\u6210\u7684\u6a21\u5757) <br \/> <br \/>\n      #\/sbin\/insmod \/opt\/unh\/iscsi\/src\/target\/unh_iscsi_target.o(\u7f16\u8bd1\u540e\u91cd\u65b0\u751f\u6210\u7684\u6a21\u5757) <br \/> <br \/>\n      #rmmod unh_iscsi_initiator <br \/> <br \/>\n      #insmod \/opt\/unh\/iscsi\/modules\/\u2019uname \u2013r \u2019\/unh_iscsi_initiator.o <br \/> <br \/>\n      ############config target############## <br \/> <br \/>\n      Iscsi_manage target restore host=$HBA <br \/> <br \/>\n      Iscsi_manage target set TargetPortalGroupTag=1 host=$HBA <br \/> <br \/>\n      ###########config initiator############### <br \/> <br \/>\n      Iscsi_manage init restore host=$HBA <br \/> <br \/>\n      Iscsi_manage init set TargetName=\u2019\u2019host=$HBA <br \/> <br \/>\n      Iscsi_manage init set InitiatorName=\u2019\u2019host=$HBA <br \/> <br \/>\n      Iscsi_manage init set MaxConnections=1 host=$HBA <br \/> <br \/>\n      Iscsi_config down ip=10.190.77.77 host=$HBA <br \/> <br \/>\n      Iscsi_config up ip=10.190.77.77 port=5001 target=0 host=$HBA <br \/> <br \/>\n      \u540c\u8fc7\u4e0a\u8ff0\u7684\u7b80\u5355\u914d\u7f6e\uff0c\u5373\u53ef\u5efa\u7acb\u8fde\u63a5\uff0c\u8fde\u5165vd\u3002\u7531\u4e8e\u670d\u52a1\u6a21\u5757\u4ee5\u624b\u52a8\u7684\u65b9\u5f0f\u91cd\u65b0\u52a0\u8f7d\u8fc7\u4e86\uff0c\u6240\u4ee5\u8fd9\u91cc\u5c31\u88ab\u6ce8\u91ca\u6389\u4e86\u3002 <br \/>\n      Iscsi_manage\u4e0d\u4ec5\u80fd\u7528\u5728target\u7aef\uff0c\u4e5f\u80fd\u7528\u5728initiator\u7aef\u3002\u800ciscsi_config\u53ea\u80fd\u7528\u5728initiator\u7aef\u3002\u603b\u4e4b\uff0cinitiator\u8fde\u63a5target\u7684\u7528\u6cd5\u975e\u5e38\u591a\uff0c\u4f46\u5404\u79cd\u65b9\u6cd5\u4ece\u5b9e\u8d28\u4e0a\u662f\u4e00\u6837\u7684\uff0c\u90fd\u662f\u5728\u670d\u52a1\u5668\u7aef\u52a0\u8f7d\u4fee\u6539\u540e\u7684\u670d\u52a1\u6a21\u5757\u540e\uff0c\u7528iscsi_manage\u5bf9initiator\/target\u7aef\u8fdb\u884c\u914d\u7f6e\uff0c\u7136\u540e\u518d\u4eceinitiator\u7aef\u7528iscsi_config\u5efa\u7acb\u8fde\u63a5\u3002\u901a\u8fc7\u6587\u4ef6\u800c\u975e\u76f4\u63a5\u7528\u547d\u4ee4\u6765\u5b9e\u73b0\u8fde\u63a5\u7684\u65b9\u6cd5\u662f\u628a\u914d\u7f6e\u670d\u52a1\u5668\u7aef\u6216\u5ba2\u6237\u7aef\u7684\u547d\u4ee4\u4ee5\u53ca\u5efa\u7acb\u8fde\u63a5\u7684\u547d\u4ee4\u5199\u5165\u6587\u4ef6\uff0c\u901a\u8fc7\u8fd0\u884c\u6587\u4ef6\u8fbe\u5230\u8fd0\u884c\u547d\u4ee4\u3001\u5efa\u7acb\u8fde\u63a5\u7684\u8fc7\u7a0b\u3002\u5f53\u7136\uff0c\u6587\u4ef6\u4e2d\u4e5f\u6d89\u53ca\u5230\u4e86\u6709\u5173\u7528\u6237\u9a8c\u8bc1\u7684\u914d\u7f6e\u3002 <br \/>\n      2.1.3 \u670d\u52a1\u6a21\u5757\u7684\u64cd\u4f5c <br \/> <br \/>\n      \u73b0\u5728\u5c31\u6765\u7814\u7a76\u4e00\u4e0b\u6700\u91cd\u8981\u7684\u6709\u5173target\u7684Ip\u5730\u5740\u548c\u7aef\u53e3\u53f7\u7b49target\u7aef\u6700\u7ec8\u8981\u7684\u914d\u7f6e\u8fc7\u7a0b\u3002\u91cd\u8981\u7684\u6e90\u6587\u4ef6\u5927\u90fd\u5728\/opt\/unh\/iscsi\/src\/\u76ee\u5f55\u4e0b\uff0c\u6587\u4ef6\u540d\u5206\u522b\u4e3aiscsi_protal_group.c &#038;&#038;scsi_target.h\u3002\u5148\u6765\u770b\u4e00\u770b\u524d\u9762\u7684\u6587\u4ef6\uff0c\u5728\u8fd9\u4e2a\u6587\u4ef6\u4e2d\u9700\u8981\u914d\u7f6etarget\u7aef\u7684ip\u5730\u5740\uff0c\u4ee5\u53ca\u88ab\u8bbf\u95ee\u7684\u7aef\u53e3\u53f7\uff0c\u5f53\u7136\u8fd8\u6709\u540c\u4e00\u7aef\u53e3\u5141\u8bb8\u7684\u6700\u5927\u5165\u53e3\u6570\uff0c\u5373\u540c\u65f6\u6709\u51e0\u4e2a\u7528\u6237\u8bbf\u95ee\u3002\u8fd9\u91ccip\u7684\u4f4d\u7f6e\u4e5f\u53ef\u4ee5\u66ff\u6362\u6210nic\u7684mac\u5730\u5740\u3002\u4fdd\u5b58\u540e\uff0c\u5f00\u59cb\u8bbe\u7f6escsi_target.h\u6587\u4ef6\uff0c\u8fd9\u4e2a\u6587\u4ef6\u6bd4\u8f83\u590d\u6742\uff0c\u4f46\u9700\u8981\u8bbe\u7f6e\u7684\u5185\u5bb9\u5e76\u4e0d\u5f88\u591a\uff0c\u5176\u4e2d\u627e\u5230\u5982\u4e0b\u914d\u7f6e\u884c\uff1a <br \/> <br \/>\n      #define MEMORYIO <br \/> <br \/>\n      #define DISKIO <br \/> <br \/>\n      #define FILEIO <br \/> <br \/>\n      #define GENERICIO\uff0c\u8fd9\u56db\u884c\u786e\u5b9a\u4e86\u5728target\u7aef\u5c06\u91c7\u53d6\u4f55\u79cd\u65b9\u5f0f\u63d0\u4f9biscsi\u786c\u76d8\u7684\u8bbf\u95ee\uff0c\u5047\u5982\u91c7\u53d6\u7b2c\u4e09\u79cd\u65b9\u5f0f\uff1a <br \/> <br \/>\n      \/\/#define MEMORYIO <br \/> <br \/>\n      \/\/#define DISKIO <br \/> <br \/>\n      #define FILEIO <br \/> <br \/>\n      \/\/#define GENERICIO <br \/> <br \/>\n      \u90a3\u4e48\u5728target\u7aef\u5c06\u4f1a\u51fa\u73b08\u4e2a\u6587\u4ef6\uff0c\u90fd\u4f4d\u4e8e\/opt\/unh\/iscsi\/src\/target\/\u8def\u5f84\u4e0b\u3002\u8fd98\u4e2a\u6587\u4ef6\u5c31\u662ftarget\u7aef\u5411initiator\u7aef\u63d0\u4f9b\u76848\u5757\u786c\u76d8\u3002\u9ed8\u8ba4\u6bcf\u4e2a\u662f1.76G\uff0c\u53ef\u4ee5\u5728\u8be5\u6587\u4ef6\u4e2d\u8fdb\u884c\u4fee\u6539\u3002\u8be5\u6587\u4ef6\u4e2d\u8fd8\u987b\u4fee\u6539\u7684\u547d\u4ee4\u6709\uff1a <br \/>\n      #define BLOCKSIZE 512 \u53ef\u4ee5\u8c03\u8282\u9ed8\u8ba4\u7684\u4f20\u8f93\u5757\u7684\u5927\u5c0f <br \/> <br \/>\n      #define FILESIZE 1900*1000*1000 \u6539\u53d8\u63d0\u4f9b\u7684\u6bcf\u5757iscsi\u786c\u76d8\u7684\u5927\u5c0f\u3002 <br \/> <br \/>\n      \u5105\u4fee\u6539\u5b8c\u8fd9\u6587\u4ef6\u540e\uff0c\u6587\u4ef6\u5e76\u6ca1\u6709\u771f\u6b63\u7684\u5f97\u5230\u4fee\u6539\uff0c\u4fee\u6539\u540e\u7684\u7ed3\u679c\u4e5f\u4e0d\u4f1a\u663e\u793a\u51fa\u6765\uff0c\u8fd9\u662f\u9700\u8981\u5c06\u4fee\u6539\u8fc7\u7684\u6587\u4ef6\u91cd\u65b0\u7f16\u8bd1\uff0c\u8fd9\u5c31\u7528\u5230\u4e86\/opt\/unh\/iscsi\/src\/cmd\/iscsi_rebuild\uff0c\u5b83\u5c06\u7f16\u8bd1\u6240\u6709\u4fee\u6539\u8fc7\u7684.c&#038;&#038;.h\u6587\u4ef6\uff0c\u7528\u6765\u751f\u6210\u65b0\u7684\u670d\u52a1\u6a21\u5757\u6587\u4ef6unh_iscsi_target.o &#038;&#038; unh_scsi_target.o\u3002\u4f46linux\u5fc5\u987b\u5b89\u88c5gcc\u7b49\u7f16\u8bd1\u5de5\u5177\u4ee5\u53ca\u7f16\u8bd1kernel\u7684\u76f8\u5173\u8f6f\u4f53\u3002\u5728shell\u6a21\u5f0f\u4e0b\u8f93\u5165lsmod\uff0c\u68c0\u67e5\u662f\u5426\u5728\u6a21\u5757\u5217\u8868\u4e2d\u5df2\u7ecf\u5b58\u5728\u8fd9\u4e24\u4e2a\u670d\u52a1\u3002\u5982\u679c\u5b58\u5728\uff0c\u8f93\u5165 <br \/> <br \/>\n      rmmod unh_iscsi_target <br \/> <br \/>\n      rmmod unh_scsi_target <br \/> <br \/>\n      \u5206\u5148\u540e\u5378\u8f7d\u8fd9\u4e24\u4e2a\u6a21\u5757\uff0c\u7136\u540e\u5728\/opt\/unh\/iscsi\/src\/target\/\u4e0b\u7528 <br \/>\n      Insmod unh_scsi_target.o <br \/> <br \/>\n      Insmod unh_iscsi_target.o <br \/> <br \/>\n      \u5206\u5148\u540e\u6dfb\u52a0\u4e24\u4e2a\u6a21\u5757\u3002\u5728\u7528lsmod\u770b\u770b\u662f\u5426\u6dfb\u52a0\u6210\u529f\uff0c\u5982\u679c\u6210\u529f\uff0c\u90a3\u4e48\u795d\u8d3a\u4f60\uff0c\u4f60\u7684\u670d\u52a1\u5668\u5df2\u521d\u6b65\u5efa\u597d\uff0c\u7528\u4e0a\u9762\u8bb2\u8fc7\u7684\u914d\u7f6e\u65b9\u6cd5\uff0c\u53bb\u5b9e\u73b0\u5176\u5b83\u7684\u529f\u80fd\u5427\u3002 <br \/>\n      2.2 \u57fa\u4e8elinux\u7684iscsi initiator\u7684\u914d\u7f6e <br \/> <br \/>\n      2.2.1 \u5b89\u88c5\u670d\u52a1\u5305 <br \/> <br \/>\n      \u57fa\u4e8eLinux\u7684iscsi initiator\u6ca1\u6709\u91c7\u7528\u4e0a\u9762\u7684rpm\uff0c\u800c\u662f\u5b89\u88c5\u4e86\u72ec\u7acb\u7684rpm\u5305\u3002\u8be5\u5305\u53ef\u5728http:\/\/rpm.pbone.net\/index.php3\/stat\/4\/idpl\/572167\/com\/iscsi-3.1.0.3-3.i386.rpm.html\u4e0a\u8f7d\u5230\u3002\u4e0e\u4e0a\u8ff0\u5b89\u88c5\u5305\u5185\u7684initiator\u914d\u7f6e\u4e0d\u540c\u7684\u662f\u8fd9\u4e2a\u72ec\u7acb\u7684\u5b89\u88c5\u5305\u63d0\u4f9b\u4e86\u7b80\u5355\u7684\u914d\u7f6e\u65b9\u6cd5\uff0c\u5b89\u88c5\u540e\u4f1a\u5728\/etc\u4e0b\u5efa\u7acbiscsi.conf\u914d\u7f6e\u6587\u4ef6\u548cinitiatorname\u6587\u4ef6\uff0c\u5e76\u4e14\u5728\/etc\/init.d\/\u4e0b\u5b89\u88c5\u4e86\u76f8\u5e94\u7684\u542f\u52a8\u811a\u672c\u3002\u811a\u672c\u7f16\u8f91\u5185\u5bb9\u5305\u62ecip\uff0cport\uff0c\u8eab\u4efd\u9a8c\u8bc1\u7b49\u591a\u79cd\u4fe1\u606f\u3002 <br \/> <br \/>\n      2.2.2 \u7f16\u8f91\u670d\u52a1\u811a\u672c <br \/> <br \/>\n      \u7528vi\u7f16\u8f91\u542f\u52a8\u811a\u672c\uff0c\u5236\u5b9a\u76ee\u6807\u670d\u52a1\u5668\u7684ip\u5730\u5740\/hostname\u548c\u88ab\u8bbf\u95ee\u7684\u7aef\u53e3\uff0c\u5728\u8be5\u6587\u4ef6\u4e2d\u53ef\u4ee5\u6307\u5b9a\u591a\u4e2a\u5f85\u8bbf\u95ee\u7684target\uff0c\u5e76\u4e14\u53ef\u4ee5\u4e0d\u6307\u5b9a\u7aef\u53e3\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u5728\u4e0d\u540c\u7684target ip\u4e0b\u8f93\u5165\u4e0d\u540c\u7684\u9a8c\u8bc1\u4fe1\u606f\uff0c\u5373\u7528\u6237\u540d\/\u5bc6\u7801\u6765\u8fdb\u884cchap\u9a8c\u8bc1\u8bbf\u95ee\u3002\u6b64\u6587\u4ef6\u4e2d\u6700\u65b9\u4fbf\u4e4b\u5904\u83ab\u8fc7\u4e8e\u4e0d\u7528\u8bbe\u5b9atargetname,\u4ee5\u53cahost\u548ctarget\u53f7\u3002 <br \/> <br \/>\n      2.2.3 \u542f\u52a8\u670d\u52a1\u8fde\u63a5target <br \/> <br \/>\n      \u5728\u7f16\u8f91\u5b8cconf\u540e\uff0c\u542f\u52a8iscsi initiator\u7a0b\u5e8f\/etc\/init.d\/iscsi\uff0c\u5f85\u670d\u52a1\u542f\u52a8\u540e\uff0c\u670d\u52a1\u4f1a\u6309\u7167iscsi.conf\u7684\u8bbe\u7f6e\u8bbf\u95eetarget\uff0c\u800ctarget\u4f1a\u76f8\u5e94\u8bf7\u6c42\uff0c\u8fd9\u6837\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u7aef\u5c31\u4f1a\u6709\u6709\u5173\u8fde\u63a5\u7684\u4fe1\u606f\u663e\u793a\uff0c\u4e14\u5728initiator\u7aef\u4f1a\u6709\u65b0\u7684\u786c\u76d8\u8fde\u5165\uff0c\u5373iscsi\u786c\u76d8\u3002\u7528fdisk \u2013l \u547d\u4ee4\u68c0\u67e5\u4f1a\u591a\u51fa\/dev\/sda\u786c\u76d8\uff0c\u7528mkfs.ext2\u547d\u4ee4\u5c06\u5176\u683c\u5f0f\u5316\u540e\uff0clinux\u53ef\u4ee5\u8bc6\u522b\u540e\uff0c\u5373\u53ef\u7528mount\u547d\u4ee4\u76f4\u63a5\u8054\u5165\uff0c\u975e\u5e38\u65b9\u4fbf\u3002\u53e6\u5916\u4e5f\u53ef\u7528fdisk\u547d\u4ee4\u8fdb\u884c\u5206\u533a\u3002\u4e4b\u540e\uff0c\u4fbf\u53ef\u4ee5\u5728\u6b64\u65b0\u786c\u76d8\u4e0a\u8fdb\u884c\u8bfb\u5199\u64cd\u4f5c\u4e86\u3002 <br \/> <br \/>\n      2.3 Windows2000\u5ba2\u6237\u7aef\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e <br \/> <br \/>\n      2.3.1 \u5b89\u88c5\u670d\u52a1\u5305 <br \/> <br \/>\n      http:\/\/www.microsoft.com\/downloads\/details.aspx?FamilyID=12cb3c1a-15d6-4585-b385-befd1319f825&#038;DisplayLang=en\u4e0b\u8f7dfor windows2000\u7684\u5ba2\u6237\u7aef\u7a0b\u5e8f\uff0c\u6267\u884c\u5b89\u88c5\u7a0b\u5e8f\uff0c\u6309\u7167\u5411\u5bfc\u63d0\u793a\u5373\u53ef\u5b89\u88c5\u5b8c\u6bd5\u3002 <br \/> <br \/>\n      2.3.2 \u914d\u7f6e\u5ba2\u6237\u7aef <br \/> <br \/>\n      \u8be5\u5ba2\u6237\u7aef\u7a0b\u5e8f\u5171\u5305\u62ec6\u4e2a\u4e3b\u754c\u9762\uff0c\u5728\u6bcf\u4e2a\u754c\u9762\u4e2d\u90fd\u6709\u4e0d\u540c\u7684\u529f\u80fd\u8bbe\u5b9a\uff0c <br \/>\n      \u8fd9\u516d\u4e2a\u4e3b\u754c\u9762\u5206\u522b\u4e3atarget portals\uff0cavailable targets\uff0cactive sessions\uff0cisns servers\uff0cpersistent targets\uff0cinitiator settings\u3002target portals\u7528\u6765\u8f93\u5165ip\uff0cport\uff0cchap\u9a8c\u8bc1\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u8fd8\u80fd\u914d\u7f6eipsec\u3001\u6570\u636e\u6821\u9a8c\u65b9\u5f0f\u7b49\u529f\u80fd\uff0c\u4ee5\u7528\u6765\u548ctarget\u7aef\u5efa\u7acb\u8054\u7cfb\u3002 <\/p>\n<p>\n      Available targets\u5177\u6709log on\u7684\u529f\u80fd\uff0c\u7528\u6765\u5728\u4e0etarget\u7aef\u5efa\u7acb\u8fde\u63a5\u7684\u57fa\u7840\u4e0a\uff0c\u8fde\u63a5target\u7684vd\uff0c\u8fde\u63a5\u6210\u529f\u540e\u4f1a\u663e\u793aconnected\uff0clog on\u7684\u65f6\u5019\u67092\u4e2a\u9009\u9879\u53ef\u4ee5\u9009\u62e9\uff0c\u5305\u62ec\u662f\u5426\u5728\u7cfb\u7edf\u542f\u52a8\u7684\u65f6\u5019\u81ea\u52a8\u5efa\u7acb\u4e0evd\u7684\u8fde\u63a5\u3002 <\/p>\n<p>      Active sessions\u5728initiator\u4e0etarget\u7684vd\u8fde\u63a5\u65f6\u663e\u793a\u4e3aactive\uff0c\u672a\u8fde\u63a5\u65f6\u663e\u793a\u4e3ainactive\uff0c\u5177\u6709log off\u7684\u529f\u80fd\u3002 <\/p>\n<p>      Isns servers\u662f\u540d\u5b57\u670d\u52a1\u5668\u7684\u76f8\u5173\u8bbe\u7f6e\uff0cpersistent targets\u80fd\u663e\u793a\u6240\u6709\u5728\u7cfb\u7edf\u542f\u52a8\u65f6\u81ea\u52a8\u6062\u590d\u7684vd\u8fde\u63a5\u3002Initiator settings\u5177\u6709\u4e3aguest\u7528\u6237\u8bbe\u7f6e\u9a8c\u8bc1\u5bc6\u7801\u7684\u529f\u80fd\uff0c\u540c\u65f6\u8fd8\u5177\u6709\u4fee\u6539initiator node nam(initiatorname)\u7b49\u529f\u80fd\u3002 <\/p>\n<p>      \u5728\u8fde\u63a5vd\u540e\uff0c\u5373\u53ef\u901a\u8fc7windows\u7684\u78c1\u76d8\u7ba1\u7406\u754c\u9762\u5bf9iscsi\u786c\u76d8\u8fdb\u884c\u521d\u59cb\u5316\u3002 <\/p>\n<p>\n      <b>3 \u603b\u7ed3 <\/b><br \/>\n      3.1 \u5e94\u7528\u7ecf\u9a8c <br \/>\n      \u5728\u7ec4\u5efaiscsi\u7f51\u7edc\u5b58\u50a8\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6211\u589e\u957f\u4e86\u5f88\u591a\u7ecf\u9a8c\u3002\u5b89\u88c5rpm\u540e\uff0c\u6211\u53d1\u73b0linux\u4e0b\u591a\u4e86\u4e00\u4e9b\u6587\u4ef6\u548c\u76ee\u5f55\u3002\u8fd9\u4e9b\u6587\u4ef6\u7e41\u591a\u800c\u4e14\u6709\u5f88\u591a\u7684\u6e90\u6587\u4ef6\uff0c\u8ddf\u81ea\u5df1\u539f\u6765\u7ec4\u5efasamba\u670d\u52a1\u5668\uff0cnfs\u670d\u52a1\u5668\u7684\u65f6\u5019\u6709\u5f88\u591a\u4e0d\u540c\u7684\u5730\u65b9\uff0c\u6bd4\u5982\u670d\u52a1\u5668\u7aef\u6ca1\u6709\u73b0\u6210\u7684\u914d\u7f6e\u6587\u4ef6\u53ef\u7528\u3002\u7ecf\u8fc7\u7814\u7a76\u53d1\u73b0\uff0c\u6e90\u6587\u4ef6\u4e2d\u6709\u4e00\u4e9b\u5173\u952e\u6027\u7684\u914d\u7f6e\uff0c\u7528vi\u7f16\u8f91\u5668\u7f16\u8f91\u540e\uff0c\u751f\u6210\u5bf9\u5e94\u7684\u6a21\u5757\uff0c\u5e76\u628a\u8fd9\u4e9b\u6a21\u5757\u52a0\u8f7d\u5230\u670d\u52a1\u5217\u8868\u4e2d\uff0c\u8fd9\u6837\u624d\u80fd\u542f\u52a8\u670d\u52a1\u3002\/etc\/init.d\/unh_iscsi\u662finitiator\u7684\u542f\u52a8\u811a\u672c\uff0c\u5e76\u975e\u670d\u52a1\u5668\u7528\u7684\u3002\u91cd\u65b0\u7f16\u8bd1\u7684\u547d\u4ee4\u4e3a\/opt\/unh\/iscsi\/src\/cmd\/iscsi_rebuild\uff0c\u6b64\u65f6\u53ef\u628a\u6240\u6709\u6539\u52a8\u7684\u6e90\u6587\u4ef6\u8fdb\u884c\u7f16\u8bd1\u4fee\u6539\u3002\u4e4b\u540e\uff0c\u4f1a\u53d1\u73b0\u5728\/opt\/unh\/iscsi\/src\/target\/\u7684\u4e0b\u9762\u591a\u4e86unh_iscsi_target.o\u548cunh_scsi_target.o\u4e24\u4e2a\u6587\u4ef6\u3002\u8fd9\u4e24\u4e2a\u6587\u4ef6\u662f\u7f16\u8bd1\u597d\u7684\u670d\u52a1\u542f\u52a8\u811a\u672c\uff0c\u52a0\u8f7d\u6a21\u5757\u3001\u5378\u8f7d\u6a21\u5757\uff0c\u5217\u51fa\u5f53\u524d\u8fd0\u884c\u6a21\u5757\u7684\u540d\u4ee4\u5206\u522b\u4e3ainsmod\uff0crmmod\u548clsmod\u3002\u542f\u52a8\u670d\u52a1\u540e\uff0c\u770b\u5230unh_iscsi_target\u548cunh_scsi_target\u4e24\u4e2a\u670d\u52a1\u5728\u5217\u8868\u4e2d\u5df2\u542f\u52a8\u3002\u5378\u8f7d\u7684\u65f6\u5019\u4e5f\u8981\u6ce8\u610f\uff0c\u5148\u5378unh_iscsi_target\u540e\u5378unh_scsi_target\u3002\u5b89\u88c5\u7684\u65f6\u5019\u6b63\u597d\u76f8\u53cd\uff0c\u5148unh_scsi_target\u540eunh_iscsi_target\uff0c\u539f\u56e0\u662funh_iscsi_target\u7684\u7528\u6cd5\u662f\u5efa\u7acb\u5728unh_scsi_target\u7684\u57fa\u7840\u4e0a\uff0c\u8981\u5360\u7528unh_scsi_target\u3002\u53e6\u5916\uff0cinitiator\u548ctarget\u7684\u76f8\u5173\u6587\u4ef6\u90fd\u5f88\u591a\uff0c\u4e00\u5b9a\u8981\u5206\u6e05\u5904\u7406\u3002\u76f8\u5173\u7684\u5e2e\u52a9\u6587\u4ef6\u662f\u5f88\u91cd\u8981\u7684\uff0c\u5f80\u5f80\u5728\u50cfdocs\u8fd9\u6837\u7684\u76ee\u5f55\u4e0b\u6216\u662f\u4e0e\u91cd\u8981\u7684\u6587\u4ef6\u653e\u5728\u540c\u4e00\u76ee\u5f55\u4e0b\u3002\u8fd8\u6709\u5c31\u662f\u4e00\u5b9a\u8981\u4f7flinux\u5177\u6709\u7f16\u8bd1\u6e90\u6587\u4ef6\u7684\u529f\u80fd\uff0c\u9700\u8981\u5b89\u88c5development tools\u4e2d\u7684\u7f16\u8bd1\u5de5\u5177\u548ckernel development\u3002\u53e6\u5916\uff0c\u6211\u5b66\u4e60\u5230\u4e86\u6709\u5173\u8bbe\u7f6eiscsi\u7684\u8bf8\u591a\u547d\u4ee4:iscsi_manage,iscsi_config\u90fd\u5177\u6709\u975e\u5e38\u4e30\u5bcc\u7684\u53c2\u6570\u548c\u529f\u80fd,\u867d\u7136\u6ca1\u6709\u7528\u5230\u96c6\u6210\u5728\u5305\u5185\u7684initiator\u7a0b\u5e8f\uff0c\u800c\u91c7\u7528\u4e86\u72ec\u7acb\u7684initiator\u5305\uff0c\u4f46\u662f\u50cfiscsi_connect,iscsi_disconnect,iscsi_mount,iscsi_umount,iscsi_test\u7b49\u547d\u4ee4\u5e2e\u52a9\u6211\u66f4\u597d\u7684\u4e86\u89e3iscsi\u7684\u539f\u7406\u548c\u8fd0\u884c\u673a\u5236\u3002 <br \/>\n      3.2 \u5c0f\u7ed3 <br \/>\n      \u4ee5\u4e0a\u662f\u5bf9iscsi\u6784\u5efa\u7f51\u7edc\u5b58\u50a8\u7684\u4ecb\u7ecd\u548c\u5206\u6790\u3002\u6309\u7167\u4e0a\u9762\u7684\u65b9\u6cd5\u5373\u53ef\u6784\u5efa\u7b80\u5355\u7684iscsi\u7f51\u7edc\u5b58\u50a8\u73af\u5883\u3002iscsi\u6280\u672f\u7684\u5e94\u7528\uff0c\u5c06\u672c\u8eab\u534f\u8bae\u5b8c\u5168\u4e0d\u540c\u7684IP SAN\u548cFC SAN\u52a0\u4ee5\u6574\u5408\uff0c\u4fc3\u8fdb\u4e86\u5b58\u50a8\u8d44\u6e90\u5229\u7528\u7387\u7684\u589e\u957f\uff0c\u5e76\u5177\u6709\u521b\u65b0\u610f\u4e49\u3002\u968f\u7740iscsi\u6280\u672f\u7684\u5b8c\u5584\uff0c\u6570\u636e\u5757\u7ea7\u7684\u5b58\u50a8\u5e94\u7528\u5c06\u53d8\u5f97\u66f4\u4e3a\u666e\u904d\uff0c\u5b58\u50a8\u8d44\u6e90\u7684\u901a\u7528\u6027\u3001\u6570\u636e\u5171\u4eab\u80fd\u529b\u90fd\u5c06\u5927\u5927\u589e\u5f3a\uff0c\u5e76\u4e14\u66f4\u52a0\u6613\u4e8e\u7ba1\u7406\u3002\u968f\u7740\u5343\u5146\u4ee5\u592a\u7f51\u7684\u6210\u719f\u4ee5\u53ca\u4e07\u5146\u4ee5\u592a\u7f51\u7edc\u7684\u5f00\u53d1\uff0cIP\u5b58\u50a8\u5fc5\u7136\u4f1a\u4ee5\u5176\u6027\u4ef7\u6bd4\u3001\u901a\u7528\u6027\u3001\u65e0\u5730\u7406\u9650\u5236\u7b49\u4f18\u52bf\u98de\u901f\u53d1\u5c55\uff0ciscsi\u6280\u672f\u5c06\u8054\u5408SCSI\u3001TCP\/IP\uff0c\u5171\u540c\u5f00\u521b\u7f51\u7edc\u5b58\u50a8\u7684\u65b0\u5c40\u9762\uff01 <br \/>\n      4 \u53c2\u8003\u8d44\u6599 <br \/>\n      \u300aSourceForge_net File Release Notes and Changelog\u300b <br \/>\n      http:\/\/www.sourceforge.net\u5b89\u88c5\u5305\u9644\u5e26\u5e2e\u52a9\u6587\u6863\u89c1\u9644\u5f55 <br \/>\n      iscsi\u5b89\u88c5\u5305\u76f8\u5173\u5e2e\u52a9\u6587\u6863\uff1a <br \/>\n      1.\/opt\/unh\/iscsi\/src\/docs\/\u4e0b\u7684\u6587\u6863\uff1b <br \/>\n      2.\/opt\/unh\/iscsi\/src\/\u7684\u6587\u6863 <br \/>\n      5 \u9644\u5f55 <br \/>\n      1.\/opt\/unh\/iscsi\/src\/target\/iscsi_portal_group.c <br \/>\n      struct portal_group iscsi_portal_groups[MAX_PORTAL] = <br \/>\n      { <br \/>\n      \/* Default portal *\/ <br \/>\n      {INADDR_ANY_STRING, ISCSI_WKP_STRING, DEFAULT_TARGET_PORTAL_GROUP_TAG}, <\/p>\n<p>      \/* example portals *\/ <\/p>\n<p>      \/* {&#8220;132.177.117.67&#8221;, &#8220;5000&#8221;, 3}, *\/ \/* tweety *\/ <br \/>\n      \/* {&#8220;192.1.1.17&#8221;, &#8220;5001&#8221;, 2}, *\/ \/* tweety-gig *\/ <br \/>\n      \/* {&#8220;192.1.1.17&#8221;, &#8220;5002&#8221;, DEFAULT_TARGET_PORTAL_GROUP_TAG}, *\/\/* tweety-gig *\/ <br \/>\n      \/* {&#8220;[fe80::207:e9ff:fe19:9c35]&#8221;, &#8220;5001&#8221;, 2}, *\/ \/* tweety-gig *\/ <br \/>\n      \/* {&#8220;[fe80::2e0:29ff:fe6c:70dc]&#8221;, &#8220;5000&#8221;, 3}, *\/ \/* tweety *\/ <\/p>\n<p>      \/* {&#8220;132.177.118.45&#8221;, ISCSI_WKP_STRING, 3}, oakenfold *\/ <br \/>\n      \/* {&#8220;[2001:468:603:c001:0:7ff:fee3:c72c]&#8221;, ISCSI_WKP_STRING, 3}, *\/ <\/p>\n<p>      \/* end of table with NULL string pointers and tag of 0 *\/ <br \/>\n      {NULL, NULL, 0} <br \/>\n      }; <br \/>\n      2.\/opt\/unh\/iscsi\/src\/target\/scsi_target.h\/ <br \/>\n      \/# define MEMORYIO \/* for performance studies *\/ <br \/>\n      \/\/# define DISKIO \/* to a real disk *\/ <br \/>\n      # define FILEIO \/* to a file on the system *\/ <br \/>\n      \/\/# define GENERICIO \/* when the scsi_do_req is not working *\/ <\/p>\n<p>      # define BLOCKSIZE 512 <br \/>\n      \/\/# define BLOCKSIZE 4096 <br \/>\n      # define TWOBYTE 16 <br \/>\n      # define BYTE 8 <br \/>\n      # define FILESIZE 1900 * 1000 * 1000 \/* file size in MB *\/ <br \/>\n      # define IOFILE 1 <br \/>\n      # define IOGENERIC 2 <br \/>\n      # define IO_SIGS (sigmask(SIGKILL)|sigmask(SIGINT)|sigmask(SIGTERM)|sigmask(SIGIO)) <br \/>\n      # define MAX_SENSE_DATA 16 <br \/>\n      # define SHUTDOWN_SIGS (sigmask(SIGKILL)|sigmask(SIGINT)|sigmask(SIGTERM)) <br \/>\n      # define TE_TRY 1 <br \/>\n      # define TE_TIMEOUT 10*HZ <br \/>\n      #define R_BIT 0x40 <br \/>\n      #define W_BIT 0x20 <\/p>\n<p>      <b>\u5176\u5b83\u8f6f\u4ef6\u4ecb\u7ecd:<\/p>\n<p>      Ardis iSCSI Target<\/b><\/p>\n<p>      Setting up a Target<br \/> <br \/>\n      Using the Linux iSCSI Target Implemention from Ardis Technologies we can create iSCSI targets on any Linux system which can be accessed from the iSCSI initiator we&#8217;ll set up in the next section. A system that will make targets available only needs some partition to be available for export, and it does not need to be a SCSI disk. <\/p>\n<p>      Changes to the Ardis Target Implementation<\/p>\n<p>      Ming Zhang was nice enough to inform me that he and several others have forked the Ardis codebase and are adding significant improvements to the target implementation. The new projected is called the iSCSI Enterprise Target project. <\/p>\n<p>      Ming and his team are doing some really great work and they deserve the respect and appreciation of the whole community. Future revisions of this document will be based solely on the new implementation. <\/p>\n<p>      The following are the steps to setup an iSCSI target. <\/p>\n<p>      Procedure 1. Setting up an ISCSI Target<\/p>\n<p>      Download the iSCSI Target code from: http:\/\/www.ardistech.com\/iscsi\/ <\/p>\n<p>      Warning<br \/>\n      I had problems with the 20040211 release, when loading the modules I&#8217;d get unresolved symbols. Using the January released worked fine. <\/p>\n<p>      Download and configure (make menuconfig) a Linux 2.4.22 kernel. Patch the kernel with the diff in the target code (ie: kernel.2.4.22.diff). <\/p>\n<p>      [benr@nexus linux-2.4.22]$ patch -p0 < <br \/>\n\t..\/linux-iscsi-target-20040116\/kernel.2.4.22.diff <br \/>\n      patching file include\/linux\/mm.h<br \/> <br \/>\n      patching file include\/linux\/pagemap.h<br \/> <br \/>\n      patching file kernel\/ksyms.c<br \/> <br \/>\n      patching file mm\/filemap.c<br \/> <br \/>\n      [benr@nexus linux-2.4.22]$<\/p>\n<p>      There are no iSCSI options you need to select except to have the normal SCSI driver built. Just build and install your kernel in the usual way. Then boot it. <\/p>\n<p>      Next, build the target module and tools source. You&#8217;ll need to define the environmental variable KERNELSRC to point to the location of the kernel tree you patched and installed. <\/p>\n<p>      [benr@nexus linux-iscsi-target-20040116]$ make <br \/>\n      set $KERNELSRC!<br \/> <br \/>\n      [benr@nexus linux-iscsi-target-20040116]$ export KERNELSRC=..\/linux-2.4.22<br \/> <br \/>\n      [benr@nexus linux-iscsi-target-20040116]$ make<br \/> <br \/>\n ( &#8230; Removed for clarity &#8230; )<br \/> <br \/>\n      [benr@nexus linux-iscsi-target-20040116]$ make install<br \/> <br \/>\n ( &#8230; Removed for clarity &#8230; )<\/p>\n<p>      This will install the iSCSI target module (iscsi_trgt_mod.o) into \/lib\/modules and the target daemon (iscsi_trgtd) into \/usr\/sbin. <\/p>\n<p>      Copy the iscsid.config file to \/etc, and edit it to meet your needs. <\/p>\n<p>      [benr@nexus \/etc]$ cat iscsid.config<br \/> <br \/>\n      ## iSCSId Target Configuration File<br \/> <br \/>\n      User benr<\/p>\n<p>      Target iqn.1997-06.com.homestead:storage.disk1.nexus<br \/> <br \/>\n        User<br \/>\n        # Lun definition<br \/> <br \/>\n        # (right now only block devices are possible)<br \/> <br \/>\n        Lun 0 \/dev\/sdb<br \/> <br \/>\n        # Alias name for this target<br \/> <br \/>\n        Alias Test<\/p>\n<p>\n      Target iqn.1997-06.com.homestead:storage.disk2.drew<br \/> <br \/>\n        User<br \/>\n        # Lun definition<br \/> <br \/>\n        # (right now only block devices are possible)<br \/> <br \/>\n        Lun 0 \/dev\/sdc<br \/> <br \/>\n        # Alias name for this target<br \/> <br \/>\n        Alias NTFS<\/p>\n<p>      Copy the iscsid.rc to \/etc\/init.d\/iscsid and make it executable. <\/p>\n<p>      Now, you should be able to start the iSCSI Targets. <\/p>\n<p>      [root@nexus \/root]# \/etc\/init.d\/iscsid start<br \/> <br \/>\n      Starting iSCSI target.<br \/> <br \/>\n      [root@nexus \/root]#<\/p>\n<p>      As defined in the above procedure, according to my iscsid.conf, I&#8217;m offering 2 iSCSI targets. I can use these target names later when I connect to them with an initiator. <\/p>\n<p>      Keep an eye on the syslog when you start the iSCSI Target Daemon (tail -f \/var\/log\/messages) to watch for startup messages and any warnings. <\/p>\n<p>\n      <b>StarWind<\/b><\/p>\n<p>      1.      \u5efa\u7acbiSCSI Target Server<\/p>\n<p>      \u4e0b\u8f7dStarWind (\u975e\u5546\u4e1a\u7528\u9014\u514d\u8d39\u4f7f\u7528)\uff0c\u5e76\u5b89\u88c5<\/p>\n<p>      http:\/\/www.rocketdivision.com\/download_form.php?act=download&#038;prod=2<\/p>\n<p>\n      connect localhost\uff0c\u9884\u8bbe\u5e10\u53f7test\u3001\u5bc6\u7801test<\/p>\n<p>      \u4fee\u6539\u5bc6\u7801\u540e\uff0c\u8bf7\u5230\u63a7\u5236\u53f0\/\u670d\u52a1\uff0c\u505c\u6b62StarWind iSCSI Service\uff0c\u518d\u91cd\u65b0\u542f\u52a8\uff0c\u5e10\u53f7\u5bc6\u7801\u624d\u4f1a\u751f\u6548\u3002<\/p>\n<p>      \u53f3\u952eadd device<\/p>\n<p>      \u5efa\u7acb\u65b0\u7684\u7a7a\u767d\u6863\u6848\uff0c\u6a21\u62df\u6210\u786c\u789f\u3002<\/p>\n<p>      Cd C:\\Program Files\\Rocket Division Software\\StarWind<\/p>\n<p>      mksparse.exe \u2013o C:\\image.img 10G<\/p>\n<p>      \u4f8b\u5982<\/p>\n<p>      C:\\Program Files\\Rocket Division Software\\StarWind>mksparse c:\\test.img 100M<\/p>\n<p>      mksparse: Image file creation utility  Version 1.0<\/p>\n<p>      Copyright (c) Rocket Division Software 2003-2004. All rights reserved.<\/p>\n<p>\n      Creating sparse file &#8216;c:\\test.img&#8217; of size 104857600 bytes&#8230;<\/p>\n<p>\n      \u65b0\u589eImage File<\/p>\n<p>      \u9009\u53d6c:\\test.img<\/p>\n<p>      \u65b0\u589edvd<\/p>\n<p>\n      \u5efa\u7acb\u5b58\u53d6\u5e10\u53f7\u5bc6\u7801\u7ba1\u63a7<\/p>\n<p>      2 Client\u7aef\u5b89\u88c5iSCSI initiator<\/p>\n<p>      \u4e0b\u8f7d\u5e76\u5b89\u88c5Microsoft iSCSI Software Initiator version 1.0<\/p>\n<p>      http:\/\/www.microsoft.com\/downloads\/details.aspx?displaylang=en&#038;familyid=12CB3C1A-15D6-4585-B385-BEFD1319F825<\/p>\n<p>      \u770b\u5230Available Targets\u4e2d\u7684\u88c5\u7f6e\u540e\uff0cStatus is Inactive\u9009\u62e9Log on<\/p>\n<p>      \u82e5\u6709\u5e10\u53f7\u5bc6\u7801\u63a7\u7ba1\uff0c\u8bf7\u8fdb\u5165Advanced\u8f93\u5165\u5e10\u53f7\u5bc6\u7801<\/p>\n<p>      \u767b\u5165\u6210\u529f\u540eStatus\u53d8\u6210Connected<\/p>\n<p>      \u5728\u672c\u673a\u78c1\u789f\u7ba1\u7406\uff0c\u91cd\u65b0\u6574\u7406\u540e\u53ef\u770b\u5230\u65b0\u7684\u78c1\u789f\uff0c\u5982\u540c\u672c\u673a\u65b0\u5b89\u88c5\u7684\u786c\u78c1\u76f8\u540c\u822c\u7684\u4f7f\u7528\u3002<\/p>\n<p>      \u611f\u60f3\uff1a<\/p>\n<p>      \u4e00\u822c\u800c\u8a00\uff0c\u4e00\u4e2aserver target\u4ec5\u5141\u8bb8\u4e00\u4e2aclient\u8fde\u7ed3\uff0c\u9664\u975estarwind.conf\u8bbe\u4e3areadonly\uff0c\u5219\u53ef\u50cfdvd\u76f8\u540c\u63d0\u4f9b\u591a\u4eba\u540c\u65f6\u8fde\u5165\u3002<\/p>\n<p>      \u5229\u7528dvd\u6a21\u62df\u65b9\u5f0f\uff0c\u53ef\u5c06\u8bb8\u591a\u5149\u789f\u6620\u50cf\u6863\uff0c\u53d8\u6210\u672c\u673a\u5149\u789f\u822c\u7684\u4f7f\u7528\u76f8\u5f53\u65b9\u4fbf\u3002<\/p>\n<p>      \u5efa\u7acbwindows 2003 Cluster<br \/> <br \/>\n      1. \u5b89\u88c5win2003\u4f01\u4e1a\u7248\uff0c\u518d\u5b89\u88c5StarWind<br \/> <br \/>\n      2. \u4fee\u6539StarWind.conf<br \/> <br \/>\n  add ImageFile1 -file:&#8221;d:\\temp\\image1.img&#8221; -clustered:yes<br \/> <br \/>\n      3. \u91cd\u65b0\u542f\u52a8StarWindService\u670d\u52a1<br \/> <br \/>\n      4. win2003\u4f3a\u670d\u5668\u5b89\u88c5 MS iSCSI initiator. \u9009\u62e9\u4e3a\u6c38\u4e45\u6027\u76ee\u6807&#8221;Persistent Target&#8221;.<br \/> <br \/>\n      5. \u683c\u5f0f\u5316\u6210NTFS\u683c\u5f0f\uff0c\u6307\u5b9a\u78c1\u789f\u540d\u79f0\u4ee3\u7801<br \/> <br \/>\n      6. \u5378\u8f7d\u76ee\u6807\u786c\u789f\u540e\uff0c\u5728\u6b63\u5f0f\u7684\u7b2c\u4e00\u53f0cluster\u673a\u5668\u4e2d\u91cd\u65b0\u6302\u4e0apersistent target\u6307\u5b9a\u76f8\u540c\u7684\u78c1\u789f\u540d\u79f0\u4ee3\u7801<br \/> <br \/>\n      7. \u5230\u7b2c\u4e8c\u53f0cluster\u673a\u5668\u518d\u6302\u4e0a\u4e00\u6b21<br \/> <br \/>\n      8. \u542f\u52a8Cluster Administrator\u4f9d\u7167\u5fae\u8f6f\u6307\u793a\u5efa\u7acbcluster\u5230StarWind\u7684\u5b9e\u4f53\u78c1\u789f\u4e2d\u3002<br \/> <br \/>\n      9. \u52a0\u5165\u7b2c\u4e8c\u4e2anode\u5230\u8fd9\u4e2acluster. <\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528ISCSI\u6784\u5efa\u7f51\u7edc\u5b58\u50a8 \u6458 \u8981 \u67b6\u8bbeiscsi\u670d\u52a1\u5668\u662f\u4e3a\u4e86\u80fd\u8ba9QA\u4eba\u5458\u5728\u6d4b\u8bd5SAN\u7684\u51c6\u5907\u9636\u6bb5\u80fd\u591f\u66f4\u597d\u7684\u8ba4\u8bc6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/posts\/78"}],"collection":[{"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78"}],"version-history":[{"count":1,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":79,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=\/wp\/v2\/posts\/78\/revisions\/79"}],"wp:attachment":[{"href":"http:\/\/www.microwolf.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.microwolf.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}