{"id":181453,"date":"2021-04-25T02:48:50","date_gmt":"2021-04-24T18:48:50","guid":{"rendered":"https:\/\/q13zd.cn\/?p=181453"},"modified":"2022-03-07T00:55:14","modified_gmt":"2022-03-06T16:55:14","slug":"basic-learning-17","status":"publish","type":"post","link":"https:\/\/q13zd.cn\/basic-learning-17.html","title":{"rendered":"\u7b2c17\u7ae0 \u4f7f\u7528iSCSI\u670d\u52a1\u90e8\u7f72\u7f51\u7edc\u5b58\u50a8"},"content":{"rendered":"

\u7ae0\u8282\u6982\u8ff0\uff1a<\/strong><\/span><\/p>\n

\u672c\u7ae0\u5f00\u7bc7\u4ecb\u7ecd\u4e86\u8ba1\u7b97\u673a\u786c\u4ef6\u5b58\u50a8\u8bbe\u5907\u7684\u4e0d\u540c\u63a5\u53e3\u6280\u672f\u7684\u4f18\u7f3a\u70b9\uff0c\u5e76\u7531\u6b64\u5207\u5165iSCSI\u6280\u672f\u4e3b\u9898\u7684\u8bb2\u89e3\u3002iSCSI\u6280\u672f\u5b9e\u73b0\u4e86\u7269\u7406\u786c\u76d8\u8bbe\u5907\u4e0eTCP\/IP\u7f51\u7edc\u534f\u8bae\u7684\u76f8\u4e92\u7ed3\u5408\uff0c\u4f7f\u5f97\u7528\u6237\u80fd\u591f\u901a\u8fc7\u4e92\u8054\u7f51\u65b9\u4fbf\u5730\u8bbf\u95ee\u8fdc\u7a0b\u673a\u623f\u63d0\u4f9b\u7684\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\u3002\u672c\u7ae0\u5c06\u5e26\u9886\u5927\u5bb6\u5728Linux\u7cfb\u7edf\u4e0a\u90e8\u7f72iSCSI\u670d\u52a1\u7aef\u7a0b\u5e8f\uff0c\u5e76\u5206\u522b\u57fa\u4e8eLinux\u7cfb\u7edf\u548cWindows\u7cfb\u7edf\u6765\u8bbf\u95ee\u8fdc\u7a0b\u7684\u5b58\u50a8\u8d44\u6e90\u3002\u901a\u8fc7\u672c\u7ae0\u4ee5\u53ca\u7b2c6\u7ae0\u3001\u7b2c7\u7ae0\u7684\u5b66\u4e60\uff0c\u8bfb\u8005\u5c06\u8fdb\u4e00\u6b65\u7406\u89e3\u548c\u638c\u63e1\u5982\u4f55\u5728Linux\u7cfb\u7edf\u4e2d\u7ba1\u7406\u786c\u76d8\u8bbe\u5907\u548c\u5b58\u50a8\u8d44\u6e90\uff0c\u4e3a\u4eca\u540e\u8d70\u5411\u8fd0\u8425\u5c97\u4f4d\u6253\u4e0b\u575a\u5b9e\u7684\u57fa\u7840\u3002<\/p>\n

17.1 iSCSI\u6280\u672f\u4ecb\u7ecd<\/strong><\/span><\/h5>\n

\u786c\u76d8\u662f\u8ba1\u7b97\u673a\u786c\u4ef6\u8bbe\u5907\u4e2d\u91cd\u8981\u7684\u7ec4\u6210\u90e8\u5206\u4e4b\u4e00\uff0c\u786c\u76d8\u5b58\u50a8\u8bbe\u5907\u8bfb\u5199\u901f\u5ea6\u7684\u5feb\u6162\u4e5f\u4f1a\u5bf9\u670d\u52a1\u5668\u7684\u6574\u4f53\u6027\u80fd\u9020\u6210\u5f71\u54cd\u3002\u7b2c6\u7ae0\u3001\u7b2c7\u7ae0\u8bb2\u89e3\u7684\u786c\u76d8\u5b58\u50a8\u7ed3\u6784\u3001RAID\u78c1\u76d8\u9635\u5217\u6280\u672f\u4ee5\u53caLVM\u6280\u672f\u7b49\u90fd\u662f\u7528\u4e8e\u5b58\u50a8\u8bbe\u5907\u7684\u6280\u672f\uff0c\u5c3d\u7ba1\u8fd9\u4e9b\u6280\u672f\u6709\u8f6f\u4ef6\u5c42\u9762\u548c\u786c\u4ef6\u5c42\u9762\u4e4b\u5206\uff0c\u4f46\u662f\u5b83\u4eec\u90fd\u65e8\u5728\u89e3\u51b3\u786c\u76d8\u5b58\u50a8\u8bbe\u5907\u7684\u8bfb\u5199\u901f\u5ea6\u95ee\u9898\uff0c\u6216\u8005\u7aed\u529b\u4fdd\u969c\u5b58\u50a8\u6570\u636e\u7684\u5b89\u5168\u3002<\/p>\n

\u4e3a\u4e86\u8fdb\u4e00\u6b65\u63d0\u5347\u786c\u76d8\u5b58\u50a8\u8bbe\u5907\u7684\u8bfb\u5199\u901f\u5ea6\u548c\u6027\u80fd\uff0c\u4eba\u4eec\u4e00\u76f4\u5728\u52aa\u529b\u6539\u8fdb\u7269\u7406\u786c\u76d8\u8bbe\u5907\u7684\u63a5\u53e3\u534f\u8bae\u3002\u5f53\u524d\u7684\u786c\u76d8\u63a5\u53e3\u7c7b\u578b\u4e3b\u8981\u6709IDE\u3001SCSI\u548cSATA\u8fd93\u79cd\u3002<\/p>\n

IDE<\/strong>\uff1a\u4e00\u79cd\u6210\u719f\u7a33\u5b9a\u3001\u4ef7\u683c\u4fbf\u5b9c\u7684\u5e76\u884c\u4f20\u8f93\u63a5\u53e3\u3002<\/p>\n

SATA<\/strong>\uff1a\u4e00\u79cd\u4f20\u8f93\u901f\u5ea6\u66f4\u5feb\u3001\u6570\u636e\u6821\u9a8c\u66f4\u5b8c\u6574\u7684\u4e32\u884c\u4f20\u8f93\u63a5\u53e3\u3002<\/p>\n

SCSI<\/strong>\uff1a\u4e00\u79cd\u7528\u4e8e\u8ba1\u7b97\u673a\u548c\u786c\u76d8\u3001\u5149\u9a71\u7b49\u8bbe\u5907\u4e4b\u95f4\u7cfb\u7edf\u7ea7\u63a5\u53e3\u7684\u901a\u7528\u6807\u51c6\uff0c\u5177\u6709\u7cfb\u7edf\u8d44\u6e90\u5360\u7528\u7387\u4f4e\u3001\u8f6c\u901f\u9ad8\u3001\u4f20\u8f93\u901f\u5ea6\u5feb\u7b49\u4f18\u70b9\u3002<\/p><\/blockquote>\n

\u65e0\u8bba\u4f7f\u7528\u4ec0\u4e48\u7c7b\u578b\u7684\u786c\u76d8\u63a5\u53e3\uff0c\u786c\u76d8\u4e0a\u7684\u6570\u636e\u603b\u662f\u8981\u901a\u8fc7\u8ba1\u7b97\u673a\u4e3b\u677f\u4e0a\u7684\u603b\u7ebf\u4e0eCPU\u3001\u5185\u5b58\u8bbe\u5907\u8fdb\u884c\u6570\u636e\u4ea4\u6362\uff0c\u8fd9\u79cd\u7269\u7406\u73af\u5883\u4e0a\u7684\u9650\u5236\u7ed9\u786c\u76d8\u8d44\u6e90\u7684\u5171\u4eab\u5e26\u6765\u4e86\u5404\u79cd\u4e0d\u4fbf\u3002\u540e\u6765\uff0cIBM\u516c\u53f8\u5f00\u59cb\u52a8\u624b\u7814\u53d1\u57fa\u4e8eTCP\/IP\u534f\u8bae\u548cSCSI\u63a5\u53e3\u534f\u8bae\u7684\u65b0\u578b\u5b58\u50a8\u6280\u672f\uff0c\u8fd9\u4e5f\u5c31\u662f\u6211\u4eec\u76ee\u524d\u80fd\u770b\u5230\u7684\u4e92\u8054\u7f51\u5c0f\u578b\u8ba1\u7b97\u673a\u7cfb\u7edf\u63a5\u53e3\uff08iSCSI\uff0cInternet Small Computer System Interface\uff09\u3002\u8fd9\u662f\u4e00\u79cd\u5c06SCSI\u63a5\u53e3\u4e0e\u4ee5\u592a\u7f51\u6280\u672f\u76f8\u7ed3\u5408\u7684\u65b0\u578b\u5b58\u50a8\u6280\u672f\uff0c\u53ef\u4ee5\u7528\u6765\u5728\u7f51\u7edc\u4e2d\u4f20\u8f93SCSI\u63a5\u53e3\u7684\u547d\u4ee4<\/a>\u548c\u6570\u636e\u3002\u8fd9\u6837\uff0c\u4e0d\u4ec5\u514b\u670d\u4e86\u4f20\u7edfSCSI\u63a5\u53e3\u8bbe\u5907\u7684\u7269\u7406\u5c40\u9650\u6027\uff0c\u5b9e\u73b0\u4e86\u8de8\u533a\u57df\u7684\u5b58\u50a8\u8d44\u6e90\u5171\u4eab\uff0c\u800c\u4e14\u53ef\u4ee5\u5728\u4e0d\u505c\u673a\u7684\u72b6\u6001\u4e0b\u6269\u5c55\u5b58\u50a8\u5bb9\u91cf\u3002<\/p>\n

\u4e3a\u4e86\u8ba9\u5404\u4f4d\u8bfb\u8005\u505a\u5230\u77e5\u5176\u7136\uff0c\u77e5\u5176\u6240\u4ee5\u7136\uff0c\u4ee5\u4fbf\u5728\u5de5\u4f5c\u4e2d\u7075\u6d3b\u4f7f\u7528\u8fd9\u9879\u6280\u672f\uff0c\u4e0b\u9762\u5c06\u8bb2\u89e3\u4e00\u4e0biSCSI\u6280\u672f\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u7684\u4f18\u52bf\u548c\u52a3\u52bf\u3002\u9996\u5148\uff0ciSCSI\u5b58\u50a8\u6280\u672f\u975e\u5e38\u4fbf\u6377\uff0c\u5728\u8bbf\u95ee\u5b58\u50a8\u8d44\u6e90\u7684\u5f62\u5f0f\u4e0a\u53d1\u751f\u4e86\u5f88\u5927\u53d8\u5316\uff0c\u6446\u8131\u4e86\u7269\u7406\u73af\u5883\u7684\u9650\u5236\uff0c\u540c\u65f6\u8fd8\u53ef\u4ee5\u628a\u5b58\u50a8\u8d44\u6e90\u5206\u7ed9\u591a\u4e2a\u670d\u52a1\u5668\u5171\u540c\u4f7f\u7528\uff0c\u56e0\u6b64\u662f\u4e00\u79cd\u975e\u5e38\u63a8\u8350\u4f7f\u7528\u7684\u5b58\u50a8\u6280\u672f\u3002\u4f46\u662f\uff0ciSCSI\u5b58\u50a8\u6280\u672f\u53d7\u5230\u4e86\u7f51\u901f\u7684\u5236\u7ea6\u3002\u4ee5\u5f80\u786c\u76d8\u8bbe\u5907\u76f4\u63a5\u901a\u8fc7\u4e3b\u677f\u4e0a\u7684\u603b\u7ebf\u8fdb\u884c\u6570\u636e\u4f20\u8f93\uff0c\u73b0\u5728\u5219\u9700\u8981\u8ba9\u4e92\u8054\u7f51\u4f5c\u4e3a\u6570\u636e\u4f20\u8f93\u7684\u8f7d\u4f53\u548c\u901a\u9053\uff0c\u56e0\u6b64\u4f20\u8f93\u901f\u7387\u548c\u7a33\u5b9a\u6027\u662fiSCSI\u6280\u672f\u7684\u74f6\u9888\u3002\u968f\u7740\u7f51\u7edc\u6280\u672f\u7684\u6301\u7eed\u53d1\u5c55\uff0c\u76f8\u4fe1iSCSI\u6280\u672f\u4e5f\u4f1a\u968f\u4e4b\u5f97\u4ee5\u6539\u5584\u3002<\/p>\n

\u65e2\u7136\u8981\u901a\u8fc7\u4ee5\u592a\u7f51\u6765\u4f20\u8f93\u786c\u76d8\u8bbe\u5907\u4e0a\u7684\u6570\u636e\uff0c\u90a3\u4e48\u6570\u636e\u662f\u901a\u8fc7\u7f51\u5361\u4f20\u5165\u5230\u8ba1\u7b97\u673a\u4e2d\u7684\u4e48\uff1f\u8fd9\u5c31\u6709\u5fc5\u8981\u5411\u5927\u5bb6\u4ecb\u7ecdiSCSI-HBA\u5361\u4e86\uff08\u89c1\u56fe17-1\uff09\u3002\u4e0e\u4e00\u822c\u7684\u7f51\u5361\u4e0d\u540c\uff08\u8fde\u63a5\u7f51\u7edc\u603b\u7ebf\u548c\u5185\u5b58\uff0c\u4f9b\u8ba1\u7b97\u673a\u4e0a\u7f51\u4f7f\u7528\uff09\uff0ciSCSI-HBA\u5361\u8fde\u63a5\u7684\u5219\u662fSCSI\u63a5\u53e3\u6216FC\uff08\u5149\u7ea4\u901a\u9053\uff09\u603b\u7ebf\u548c\u5185\u5b58\uff0c\u4e13\u95e8\u7528\u4e8e\u5728\u4e3b\u673a\u4e4b\u95f4\u4ea4\u6362\u5b58\u50a8\u6570\u636e\uff0c\u5176\u4f7f\u7528\u7684\u534f\u8bae\u4e5f\u4e0e\u4e00\u822c\u7f51\u5361\u6709\u672c\u8d28\u7684\u4e0d\u540c\u3002\u8fd0\u884cLinux\u7cfb\u7edf\u7684\u670d\u52a1\u5668\u4f1a\u57fa\u4e8eiSCSI\u534f\u8bae\u628a\u786c\u76d8\u8bbe\u5907\u547d\u4ee4\u4e0e\u6570\u636e\u6253\u5305\u6210\u6807\u51c6\u7684TCP\/IP\u6570\u636e\u5305\uff0c\u7136\u540e\u901a\u8fc7\u4ee5\u592a\u7f51\u4f20\u8f93\u5230\u76ee\u6807\u5b58\u50a8\u8bbe\u5907\uff0c\u800c\u5f53\u76ee\u6807\u5b58\u50a8\u8bbe\u5907\u63a5\u6536\u5230\u8fd9\u4e9b\u6570\u636e\u5305\u540e\uff0c\u8fd8\u9700\u8981\u57fa\u4e8eiSCSI\u534f\u8bae\u628aTCP\/IP\u6570\u636e\u5305\u89e3\u538b\u6210\u786c\u76d8\u8bbe\u5907\u547d\u4ee4\u4e0e\u6570\u636e\u3002<\/p>\n

\"ISCSI<\/p>\n

\u56fe17-1\u00a0 iSCSI-HBA\u5361\u5b9e\u62cd\u56fe<\/p>\n

\u603b\u7ed3\u6765\u8bf4\uff0ciSCSI\u6280\u672f\u5177\u6709\u786c\u4ef6\u6210\u672c\u4f4e\u3001\u64cd\u4f5c\u7b80\u5355\u3001\u7ef4\u62a4\u65b9\u4fbf\u4ee5\u53ca\u6269\u5c55\u6027\u5f3a\u7b49\u4f18\u52bf\uff0c\u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86\u6570\u636e\u96c6\u4e2d\u5316\u5b58\u50a8\u7684\u670d\u52a1\uff0c\u800c\u4e14\u5176\u4ee5\u533a\u5757\u4e3a\u5355\u4f4d\u7684\u6570\u636e\u5b58\u50a8\u7a7a\u95f4\uff0c\u5728\u7b80\u5316\u4e86\u5b58\u50a8\u7a7a\u95f4\u7ba1\u7406\u6b65\u9aa4\u7684\u524d\u63d0\u4e0b\uff0c\u8fd8\u589e\u6dfb\u4e86\u5b58\u50a8\u7a7a\u95f4\u7684\u5f39\u6027\u3002\u5bf9\u4e8e\u7528\u6237\u800c\u8a00\uff0c\u4eff\u4f5b\u8ba1\u7b97\u673a\u4e0a\u591a\u4e86\u4e00\u5757\u65b0\u7684\u201c\u672c\u5730\u786c\u76d8\u201d\uff0c\u53ef\u4ee5\u4f7f\u7528\u672c\u5730\u7684\u8ba1\u7b97\u673a\u64cd\u4f5c\u7cfb\u7edf\u8fdb\u884c\u7ba1\u7406\uff0c\u5c31\u50cf\u662f\u4f7f\u7528\u672c\u5730\u786c\u76d8\u90a3\u6837\u6765\u4f7f\u7528\u8fdc\u7a0b\u5b58\u50a8\u7a7a\u95f4\u3002\u8fd9\u79cd\u9ad8\u6269\u5c55\u6027\u548c\u4f4e\u7ec4\u5efa\u6210\u672c\u3001\u4f4e\u7ef4\u62a4\u6210\u672c\u7684\u6574\u5408\u5b58\u50a8\u65b9\u5f0f\uff0c\u6b63\u662f\u5927\u90e8\u5206\u9884\u7b97\u53d7\u9650\u7684\u4e2d\u5c0f\u4f01\u4e1a\u548c\u529e\u516c\u5ba4\u6240\u9700\u8981\u7684\u3002<\/p>\n

17.2 \u521b\u5efaRAID\u78c1\u76d8\u9635\u5217<\/strong><\/span><\/h5>\n

\u65e2\u7136\u8981\u4f7f\u7528iSCSI\u5b58\u50a8\u6280\u672f\u4e3a\u8fdc\u7a0b\u7528\u6237\u63d0\u4f9b\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\uff0c\u9996\u5148\u8981\u4fdd\u969c\u7528\u4e8e\u5b58\u653e\u8d44\u6e90\u7684\u670d\u52a1\u5668\u7684\u7a33\u5b9a\u6027\u4e0e\u53ef\u7528\u6027\uff0c\u5426\u5219\u4e00\u65e6\u5728\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u6545\u969c\uff0c\u5219\u7ef4\u62a4\u7684\u96be\u5ea6\u76f8\u8f83\u4e8e\u672c\u5730\u786c\u76d8\u8bbe\u5907\u8981\u66f4\u52a0\u590d\u6742\u3001\u56f0\u96be\u3002\u56e0\u6b64\u63a8\u8350\u5404\u4f4d\u8bfb\u8005\u6309\u7167\u672c\u4e66\u7b2c7\u7ae0\u8bb2\u89e3\u7684\u77e5\u8bc6\u6765\u90e8\u7f72RAID\u78c1\u76d8\u9635\u5217\u7ec4\uff0c\u786e\u4fdd\u6570\u636e\u7684\u5b89\u5168\u6027\u3002\u4e0b\u9762\u4ee5\u914d\u7f6eRAID 5\u78c1\u76d8\u9635\u5217\u7ec4\u4e3a\u4f8b\u8fdb\u884c\u8bb2\u89e3\u3002\u8003\u8651\u5230\u7b2c7\u7ae0\u5df2\u7ecf\u4e8b\u65e0\u5de8\u7ec6\u5730\u8bb2\u89e3\u4e86RAID\u78c1\u76d8\u9635\u5217\u6280\u672f\u548c\u914d\u7f6e\u65b9\u6cd5\uff0c\u56e0\u6b64\u672c\u8282\u4e0d\u4f1a\u518d\u91cd\u590d\u4ecb\u7ecd\u76f8\u5173\u53c2\u6570\u7684\u610f\u4e49\u4ee5\u53ca\u7528\u9014\uff0c\u5fd8\u8bb0\u4e86\u7684\u8bfb\u8005\u53ef\u4ee5\u8fd4\u56de\u53bb\u770b\u4e00\u4e0b\u3002<\/p>\n

\u9996\u5148\u5728\u865a\u62df\u673a\u4e2d\u6dfb\u52a04\u5757\u65b0\u786c\u76d8\uff0c\u7528\u4e8e\u521b\u5efaRAID 5\u78c1\u76d8\u9635\u5217\u548c\u5907\u4efd\u76d8\uff0c\u5982\u56fe17-2\u6240\u793a\u3002<\/p>\n

\"\"<\/p>\n

\n

\u56fe17-2\u00a0 \u6dfb\u52a04\u5757\u7528\u4e8e\u521b\u5efaRAID 5\u7ea7\u522b\u78c1\u76d8\u9635\u5217\u7684\u65b0\u786c\u76d8<\/p>\n

\u542f\u52a8\u865a\u62df\u673a\u7cfb\u7edf\uff0c\u4f7f\u7528mdadm\u547d\u4ee4\u521b\u5efaRAID\u78c1\u76d8\u9635\u5217\u3002\u5176\u4e2d\uff0c-Cv\u53c2\u6570\u4e3a\u521b\u5efa\u9635\u5217\u5e76\u663e\u793a\u8fc7\u7a0b\uff0c\/dev\/md0\u4e3a\u751f\u6210\u7684\u9635\u5217\u7ec4\u540d\u79f0\uff0c-n 3\u53c2\u6570\u4e3a\u521b\u5efaRAID 5\u78c1\u76d8\u9635\u5217\u6240\u9700\u7684\u786c\u76d8\u4e2a\u6570\uff0c-l 5\u53c2\u6570\u4e3aRAID\u78c1\u76d8\u9635\u5217\u7684\u7ea7\u522b\uff0c-x 1\u53c2\u6570\u4e3a\u78c1\u76d8\u9635\u5217\u7684\u5907\u4efd\u76d8\u4e2a\u6570\u3002\u5728\u547d\u4ee4\u540e\u9762\u8981\u9010\u4e00\u5199\u4e0a\u4f7f\u7528\u7684\u786c\u76d8\u540d\u79f0\u3002\u53e6\u5916\uff0c\u8fd8\u5141\u8bb8\u4f7f\u7528\u7b2c3\u7ae0\u8bb2\u89e3\u7684\u901a\u914d\u7b26\u6765\u6307\u5b9a\u786c\u76d8\u8bbe\u5907\u7684\u540d\u79f0\uff0c\u611f\u5174\u8da3\u7684\u8bfb\u8005\u53ef\u4ee5\u8bd5\u4e00\u4e0b\u3002<\/p>\n

[root@linuxprobe ~]# mdadm -Cv \/dev\/md0 -n 3 -l 5 -x 1 \/dev\/sdb \/dev\/sdc \/dev\/sdd \/dev\/sde\r\nmdadm: layout defaults to left-symmetric\r\nmdadm: layout defaults to left-symmetric\r\nmdadm: chunk size defaults to 512K\r\nmdadm: size set to 20954112K\r\nmdadm: Defaulting to version 1.2 metadata\r\nmdadm: array \/dev\/md0 started.\r\n<\/pre>\n

\u5728\u4e0a\u8ff0\u547d\u4ee4\u6210\u529f\u6267\u884c\u4e4b\u540e\uff0c\u5f97\u5230\u4e00\u5757\u540d\u79f0\u4e3a\/dev\/md0\u7684\u65b0\u8bbe\u5907\uff0c\u8fd9\u662f\u4e00\u5757RAID 5\u7ea7\u522b\u7684\u78c1\u76d8\u9635\u5217\uff0c\u5e76\u4e14\u8fd8\u6709\u4e00\u5757\u5907\u4efd\u76d8\u4e3a\u786c\u76d8\u6570\u636e\u4fdd\u9a7e\u62a4\u822a\u3002\u5927\u5bb6\u53ef\u4f7f\u7528mdadm -D\u547d\u4ee4\u6765\u67e5\u770b\u8bbe\u5907\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u53e6\u5916\uff0c\u7531\u4e8e\u5728\u4f7f\u7528\u8fdc\u7a0b\u8bbe\u5907\u65f6\u6781\u6709\u53ef\u80fd\u51fa\u73b0\u8bbe\u5907\u8bc6\u522b\u987a\u5e8f\u53d1\u751f\u53d8\u5316\u7684\u60c5\u51b5\uff0c\u56e0\u6b64\uff0c\u5982\u679c\u76f4\u63a5\u5728fstab\u6302\u8f7d\u914d\u7f6e\u6587\u4ef6\u4e2d\u5199\u5165\/dev\/sdb\u3001\/dev\/sdc\u7b49\u8bbe\u5907\u540d\u79f0\u7684\u8bdd\uff0c\u5c31\u6709\u53ef\u80fd\u5728\u4e0b\u4e00\u6b21\u6302\u8f7d\u4e86\u9519\u8bef\u7684\u5b58\u50a8\u8bbe\u5907\u3002\u800cUUID\u503c\u662f\u8bbe\u5907\u7684\u552f\u4e00\u6807\u8bc6\u7b26\uff0c\u7528\u4e8e\u7cbe\u786e\u5730\u533a\u5206\u672c\u5730\u6216\u8fdc\u7a0b\u8bbe\u5907\u3002\u4e8e\u662f\u6211\u4eec\u53ef\u4ee5\u628a\u8fd9\u4e2a\u503c\u8bb0\u5f55\u4e0b\u6765\uff0c\u4e00\u4f1a\u513f\u51c6\u5907\u586b\u5199\u5230\u6302\u8f7d\u914d\u7f6e\u6587\u4ef6\u4e2d\u3002<\/p>\n

[root@linuxprobe ~]# mdadm -D \/dev\/md0\r\n\/dev\/md0:\r\n           Version : 1.2\r\n     Creation Time : Tue Apr 27 08:06:43 2021\r\n        Raid Level : raid5\r\n        Array Size : 41908224 (39.97 GiB 42.91 GB)\r\n     Used Dev Size : 20954112 (19.98 GiB 21.46 GB)\r\n      Raid Devices : 3\r\n     Total Devices : 4\r\n       Persistence : Superblock is persistent\r\n\r\n       Update Time : Tue Apr 27 08:08:28 2021\r\n             State : clean \r\n    Active Devices : 3\r\n   Working Devices : 4\r\n    Failed Devices : 0\r\n     Spare Devices : 1\r\n\r\n            Layout : left-symmetric\r\n        Chunk Size : 512K\r\n\r\nConsistency Policy : resync\r\n\r\n              Name : q13zd.cn:0  (local to host q13zd.cn)\r\n              UUID : 759282f9:093dbf7c:a6c4a16d:ed70333c\r\n            Events : 18\r\n\r\n    Number   Major   Minor   RaidDevice State\r\n       0       8       16        0      active sync   \/dev\/sdb\r\n       1       8       32        1      active sync   \/dev\/sdc\r\n       4       8       48        2      active sync   \/dev\/sdd\r\n\r\n       3       8       64        -      spare   \/dev\/sde\r\n<\/pre>\n<\/div>\n
17.3 \u914d\u7f6eiSCSI\u670d\u52a1\u7aef<\/strong><\/span><\/h5>\n

iSCSI\u6280\u672f\u5728\u5de5\u4f5c\u5f62\u5f0f\u4e0a\u5206\u4e3a\u670d\u52a1\u7aef\uff08target\uff09\u4e0e\u5ba2\u6237\u7aef\uff08initiator\uff09\u3002iSCSI\u670d\u52a1\u7aef\u5373\u7528\u4e8e\u5b58\u653e\u786c\u76d8\u5b58\u50a8\u8d44\u6e90\u7684\u670d\u52a1\u5668\uff0c\u5b83\u4f5c\u4e3a\u524d\u9762\u521b\u5efa\u7684RAID\u78c1\u76d8\u9635\u5217\u7684\u5b58\u50a8\u7aef\uff0c\u80fd\u591f\u4e3a\u7528\u6237\u63d0\u4f9b\u53ef\u7528\u7684\u5b58\u50a8\u8d44\u6e90\u3002iSCSI\u5ba2\u6237\u7aef\u5219\u662f\u7528\u6237\u4f7f\u7528\u7684\u8f6f\u4ef6\uff0c\u7528\u4e8e\u8bbf\u95ee\u8fdc\u7a0b\u670d\u52a1\u7aef\u7684\u5b58\u50a8\u8d44\u6e90\u3002\u4e0b\u9762\u6309\u7167\u886817-1\u6765\u914d\u7f6eiSCSI\u670d\u52a1\u7aef\u548c\u5ba2\u6237\u7aef\u6240\u7528\u7684IP\u5730\u5740\u3002<\/p>\n

\u886817-1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 iSCSI\u670d\u52a1\u7aef\u548c\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u4ee5\u53caIP\u5730\u5740<\/p>\n\n\n\n\n\n
\u4e3b\u673a\u540d\u79f0<\/td>\n\u64cd\u4f5c\u7cfb\u7edf<\/td>\nIP\u5730\u5740<\/td>\n<\/tr>\n
iSCSI\u670d\u52a1\u7aef<\/td>\nRHEL 8<\/td>\n192.168.10.10<\/td>\n<\/tr>\n
iSCSI\u5ba2\u6237\u7aef<\/td>\nRHEL 8<\/td>\n192.168.10.20<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

<\/p>\n

\u7b2c1\u6b65<\/strong>\uff1a\u5728RHEL 8\/CentOS<\/a>\u00a08\u7cfb\u7edf\u4e2d\uff0c\u9ed8\u8ba4\u5df2\u7ecf\u5b89\u88c5\u4e86iSCSI\u670d\u52a1\u7aef\u7a0b\u5e8f\uff0c\u7528\u6237\u9700\u8981\u505a\u7684\u662f\u914d\u7f6e\u597d\u8f6f\u4ef6\u4ed3\u5e93\u540e\u5b89\u88c5iSCSI\u670d\u52a1\u7aef\u7684\u4ea4\u6362\u5f0f\u914d\u7f6e\u5de5\u5177\u3002\u76f8\u8f83\u4e8e\u76f4\u63a5\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\uff0c\u901a\u8fc7\u4ea4\u4e92\u5f0f\u7684\u914d\u7f6e\u8fc7\u7a0b\u6765\u5b8c\u6210\u5bf9\u53c2\u6570\u7684\u8bbe\u5b9a\u65e2\u53c8\u65b9\u4fbf\u53c8\u5b89\u5168\u3002\u5728dnf\u547d\u4ee4\u7684\u540e\u9762\u6dfb\u52a0-y\u53c2\u6570\u540e\uff0c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u5c31\u4e0d\u9700\u8981\u518d\u8fdb\u884c\u624b\u52a8\u786e\u8ba4\u4e86\uff1a<\/p>\n

[root@linuxprobe ~]# dnf install -y targetcli\r\nUpdating Subscription Management repositories.\r\nUnable to read consumer identity\r\nThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.\r\nLast metadata expiration check: 0:23:54 ago on Tue 27 Apr 2021 08:12:59 AM CST.\r\nDependencies resolved.\r\n=============================================================================================\r\n Package                     Arch           Version                  Repository         Size\r\n=============================================================================================\r\nInstalling:\r\n targetcli                   noarch         2.1.fb49-1.el8           AppStream          73 k\r\nInstalling dependencies:\r\n python3-configshell         noarch         1:1.1.fb25-1.el8         BaseOS             74 k\r\n python3-kmod                x86_64         0.9-20.el8               BaseOS             90 k\r\n python3-pyparsing           noarch         2.1.10-7.el8             BaseOS            142 k\r\n python3-rtslib              noarch         2.1.fb69-3.el8           BaseOS            100 k\r\n python3-urwid               x86_64         1.3.1-4.el8              BaseOS            783 k\r\n target-restore              noarch         2.1.fb69-3.el8           BaseOS             23 k\r\n\r\nTransaction Summary\r\n=============================================================================================\r\nInstall  7 Packages\r\n\u2026\u2026\u2026\u2026\u2026\u2026\u7701\u7565\u90e8\u5206\u8f93\u51fa\u4fe1\u606f\u2026\u2026\u2026\u2026\u2026\u2026\r\nInstalled products updated.\r\n\r\nInstalled:\r\n  targetcli-2.1.fb49-1.el8.noarch           python3-configshell-1:1.1.fb25-1.el8.noarch     \r\n  python3-kmod-0.9-20.el8.x86_64            python3-pyparsing-2.1.10-7.el8.noarch           \r\n  python3-rtslib-2.1.fb69-3.el8.noarch      python3-urwid-1.3.1-4.el8.x86_64                \r\n  target-restore-2.1.fb69-3.el8.noarch     \r\n\r\nComplete!\r\n<\/pre>\n

iSCSI\u662f\u8de8\u5e73\u53f0\u7684\u534f\u8bae\uff0c\u56e0\u6b64\u7528\u6237\u4e5f\u53ef\u4ee5\u5728Windows\u7cfb\u7edf\u4e0b\u642d\u5efaiSCSI\u670d\u52a1\u7aef\uff0c\u518d\u5171\u4eab\u7ed9Linux\u7cfb\u7edf\u4e3b\u673a\u3002\u4e0d\u8fc7\u6839\u636e\u5218\u9044\u8001\u5e08\u4ee5\u5f80\u7684\u7ecf\u9a8c\uff0c\u7c7b\u4f3c\u4e8eDataCore\u8f6f\u4ef6\u516c\u53f8\u63a8\u51fa\u7684SANmelody\u6216\u662fFalconStor\u8f6f\u4ef6\u516c\u53f8\u63a8\u51fa\u7684iSCSI Server for Windows\u7b49\u8f6f\u4ef6\uff0c\u5728Windows\u7cfb\u7edf\u4e0a\u4f7f\u7528\u90fd\u662f\u8981\u6536\u8d39\u7684\u3002<\/p>\n

\u7b2c2\u6b65<\/strong>\uff1a\u914d\u7f6eiSCSI\u670d\u52a1\u7aef\u5171\u4eab\u8d44\u6e90\u3002targetcli\u662f\u7528\u4e8e\u7ba1\u7406iSCSI\u670d\u52a1\u7aef\u5b58\u50a8\u8d44\u6e90\u7684\u4e13\u7528\u914d\u7f6e\u547d\u4ee4\uff0c\u5b83\u80fd\u591f\u63d0\u4f9b\u7c7b\u4f3c\u4e8efdisk\u547d\u4ee4\u7684\u4ea4\u4e92\u5f0f\u914d\u7f6e\u529f\u80fd\uff0c\u5c06iSCSI\u5171\u4eab\u8d44\u6e90\u7684\u914d\u7f6e\u5185\u5bb9\u62bd\u8c61\u6210\u201c\u76ee\u5f55\u201d\u7684\u5f62\u5f0f\uff0c\u6211\u4eec\u53ea\u9700\u5c06\u5404\u7c7b\u914d\u7f6e\u4fe1\u606f\u586b\u5165\u5230\u76f8\u5e94\u7684\u201c\u76ee\u5f55\u201d\u4e2d\u5373\u53ef\u3002\u8fd9\u91cc\u7684\u96be\u70b9\u4e3b\u8981\u5728\u4e8e\u8ba4\u8bc6\u6bcf\u4e2a\u201c\u53c2\u6570\u76ee\u5f55\u201d\u7684\u4f5c\u7528\u3002\u5f53\u628a\u914d\u7f6e\u53c2\u6570\u6b63\u786e\u5730\u586b\u5199\u5230\u201c\u76ee\u5f55\u201d\u4e2d\u540e\uff0ciSCSI\u670d\u52a1\u7aef\u4e5f\u5c31\u53ef\u4ee5\u63d0\u4f9b\u5171\u4eab\u8d44\u6e90\u670d\u52a1\u4e86\u3002<\/p>\n

\u5728\u6267\u884ctargetcli\u547d\u4ee4\u540e\u5c31\u80fd\u770b\u5230\u4ea4\u4e92\u5f0f\u7684\u914d\u7f6e\u754c\u9762\u4e86\u3002\u5728\u8be5\u754c\u9762\u4e2d\u5141\u8bb8\u4f7f\u7528\u5f88\u591aLinux\u547d\u4ee4\uff0c\u6bd4\u5982\u5229\u7528ls\u67e5\u770b\u76ee\u5f55\u53c2\u6570\u7684\u7ed3\u6784\uff0c\u4f7f\u7528cd\u5207\u6362\u5230\u4e0d\u540c\u7684\u76ee\u5f55\u4e2d\u3002<\/p>\n

[root@linuxprobe ~]# targetcli\r\ntargetcli shell version 2.1.fb49\r\nCopyright 2011-2013 by Datera, Inc and others.\r\nFor help on commands, type 'help'.\r\n\r\n\/> ls\r\no- \/ ............................................................................ [...]\r\n  o- backstores ................................................................. [...]\r\n  | o- block ..................................................... [Storage Objects: 0]\r\n  | o- fileio .................................................... [Storage Objects: 0]\r\n  | o- pscsi ......................................................[Storage Objects: 0]\r\n  | o- ramdisk ................................................... [Storage Objects: 0]\r\n  o- iscsi ................................................................[Targets: 0]\r\n  o- loopback ............................................................ [Targets: 0]\r\n\/> \r\n<\/pre>\n

\/backstores\/block\u662fiSCSI\u670d\u52a1\u7aef\u914d\u7f6e\u5171\u4eab\u8bbe\u5907\u7684\u4f4d\u7f6e\u3002\u6211\u4eec\u9700\u8981\u628a\u521a\u521a\u521b\u5efa\u7684RAID 5\u78c1\u76d8\u9635\u5217md0\u6587\u4ef6\u52a0\u5165\u5230\u914d\u7f6e\u5171\u4eab\u8bbe\u5907\u7684\u201c\u8d44\u6e90\u6c60\u201d\u4e2d\uff0c\u5e76\u5c06\u8be5\u6587\u4ef6\u91cd\u65b0\u547d\u540d\u4e3adisk0\uff0c\u8fd9\u6837\u7528\u6237\u5c31\u4e0d\u4f1a\u77e5\u9053\u662f\u7531\u670d\u52a1\u5668\u4e2d\u7684\u54ea\u5757\u786c\u76d8\u6765\u63d0\u4f9b\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\uff0c\u800c\u53ea\u4f1a\u770b\u5230\u4e00\u4e2a\u540d\u4e3adisk0\u7684\u5b58\u50a8\u8bbe\u5907\u3002<\/p>\n

\/> cd \/backstores\/block \r\n\/backstores\/block> create disk0 \/dev\/md0\r\nCreated block storage object disk0 using \/dev\/md0.\r\n\/backstores\/block> cd \/\r\n\/> ls\r\no- \/ ............................................................................ [...]\r\n  o- backstores ................................................................. [...]\r\n  | o- block ..................................................... [Storage Objects: 1]\r\n  | | o- disk0 ............................ [\/dev\/md0 (40.0GiB) write-thru deactivated]<\/strong>\r\n  | |   o- alua ...................................................... [ALUA Groups: 1]\r\n  | |     o- default_tg_pt_gp ...........................[ALUA state: Active\/optimized]\r\n  | o- fileio .................................................... [Storage Objects: 0]\r\n  | o- pscsi ..................................................... [Storage Objects: 0]\r\n  | o- ramdisk ................................................... [Storage Objects: 0]\r\n  o- iscsi ............................................................... [Targets: 0]\r\n  o- loopback ............................................................ [Targets: 0]\r\n\/> \r\n<\/pre>\n

\u7b2c3\u6b65<\/strong>\uff1a\u521b\u5efaiSCSI target\u540d\u79f0\u53ca\u914d\u7f6e\u5171\u4eab\u8d44\u6e90\u3002iSCSI target\u540d\u79f0\u662f\u7531\u7cfb\u7edf\u81ea\u52a8\u751f\u6210\u7684\uff0c\u8fd9\u662f\u4e00\u4e32\u7528\u4e8e\u63cf\u8ff0\u5171\u4eab\u8d44\u6e90\u7684\u552f\u4e00\u5b57\u7b26\u4e32\u3002\u7a0d\u540e\u7528\u6237\u5728\u626b\u63cfiSCSI\u670d\u52a1\u7aef\u65f6\u5373\u53ef\u770b\u5230\u8fd9\u4e2a\u5b57\u7b26\u4e32\uff0c\u56e0\u6b64\u6211\u4eec\u4e0d\u9700\u8981\u8bb0\u4f4f\u5b83\u3002<\/p>\n

\/iscsi> create\r\nCreated target iqn.2003-01.org.linux-iscsi.linuxprobe.x8664:sn.745b21d6cad5.\r\nCreated TPG 1.\r\nGlobal pref auto_add_default_portal=true\r\nCreated default portal listening on all IPs (0.0.0.0), port 3260.\r\n\/iscsi> ls\r\no- iscsi ................................................................... [Targets: 1]\r\n  o- iqn.2003-01.org.linux-iscsi.linuxprobe.x8664:sn.745b21d6cad5<\/strong> ............. [TPGs: 1]\r\n    o- tpg1 ...................................................... [no-gen-acls, no-auth]\r\n      o- acls ................................................................. [ACLs: 0]\r\n      o- luns ................................................................. [LUNs: 0]\r\n      o- portals ........................................................... [Portals: 1]\r\n        o- 0.0.0.0:3260 ............................................................ [OK]\r\n<\/pre>\n
\n
\n

Tips<\/strong><\/h3>\n<\/div>\n
\n

\u8bf7\u6ce8\u610f\uff0c\u5728iSCSI\u81ea\u52a8\u751f\u6210\u7684\u540d\u79f0\u4e2d\uff0c\u6700\u540e\u4e00\u4e2a.\u4e3a\u53e5\u53f7\uff0c\u4e0d\u662f\u540d\u79f0\u4e2d\u7684\u4e00\u90e8\u5206\u3002<\/p>\n<\/div>\n<\/div>\n

\u7cfb\u7edf\u5728\u751f\u6210\u8fd9\u4e2atarget\u540d\u79f0\u540e\uff0c\u8fd8\u4f1a\u5728\/iscsi\u53c2\u6570\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u4e0e\u5176\u5b57\u7b26\u4e32\u540c\u540d\u7684\u65b0\u201c\u76ee\u5f55\u201d\u7528\u6765\u5b58\u653e\u5171\u4eab\u8d44\u6e90\u3002\u6211\u4eec\u9700\u8981\u628a\u524d\u9762\u52a0\u5165\u5230iSCSI\u5171\u4eab\u8d44\u6e90\u6c60\u4e2d\u7684\u786c\u76d8\u8bbe\u5907\u6dfb\u52a0\u5230\u8fd9\u4e2a\u65b0\u76ee\u5f55\u4e2d\uff0c\u8fd9\u6837\u7528\u6237\u5728\u767b\u5f55iSCSI\u670d\u52a1\u7aef\u540e\uff0c\u5373\u53ef\u9ed8\u8ba4\u4f7f\u7528\u8fd9\u786c\u76d8\u8bbe\u5907\u63d0\u4f9b\u7684\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\u4e86\u3002<\/p>\n

\/iscsi> cd iqn.2003-01.org.linux-iscsi.linuxprobe.x8664:sn.745b21d6cad5\/\r\n\/iscsi\/iqn.20....745b21d6cad5> cd tpg1\/luns \r\n\/iscsi\/iqn.20...ad5\/tpg1\/luns> create \/backstores\/block\/disk0 \r\nCreated LUN 0.\r\n<\/pre>\n

\u7b2c4\u6b65<\/strong>\uff1a\u8bbe\u7f6e\u8bbf\u95ee\u63a7\u5236\u5217\u8868\uff08ACL\uff09\u3002iSCSI\u534f\u8bae\u662f\u901a\u8fc7\u5ba2\u6237\u7aef\u540d\u79f0\u8fdb\u884c\u9a8c\u8bc1\u7684\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u7528\u6237\u5728\u8bbf\u95ee\u5b58\u50a8\u5171\u4eab\u8d44\u6e90\u65f6\u4e0d\u9700\u8981\u8f93\u5165\u5bc6\u7801\uff0c\u53ea\u8981iSCSI\u5ba2\u6237\u7aef\u7684\u540d\u79f0\u4e0e\u670d\u52a1\u7aef\u4e2d\u8bbe\u7f6e\u7684\u8bbf\u95ee\u63a7\u5236\u5217\u8868\u4e2d\u67d0\u4e00\u540d\u79f0\u6761\u76ee\u4e00\u81f4\u5373\u53ef\uff0c\u56e0\u6b64\u9700\u8981\u5728iSCSI\u670d\u52a1\u7aef\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u5199\u5165\u4e00\u4e32\u80fd\u591f\u9a8c\u8bc1\u7528\u6237\u4fe1\u606f\u7684\u540d\u79f0\u3002acls\u53c2\u6570\u76ee\u5f55\u7528\u4e8e\u5b58\u653e\u80fd\u591f\u8bbf\u95eeiSCSI\u670d\u52a1\u7aef\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\u7684\u5ba2\u6237\u7aef\u540d\u79f0\u3002\u63a8\u8350\u5728\u521a\u521a\u7cfb\u7edf\u751f\u6210\u7684iSCSI target\u540e\u9762\u8ffd\u52a0\u4e0a\u7c7b\u4f3c\u4e8e:client\u7684\u53c2\u6570\uff0c\u8fd9\u6837\u65e2\u80fd\u4fdd\u8bc1\u5ba2\u6237\u7aef\u7684\u540d\u79f0\u5177\u6709\u552f\u4e00\u6027\uff0c\u53c8\u975e\u5e38\u4fbf\u4e8e\u7ba1\u7406\u548c\u9605\u8bfb\uff1a<\/p>\n

\/iscsi\/iqn.20...ad5\/tpg1\/luns> cd ..\r\n\/iscsi\/iqn.20...21d6cad5\/tpg1> cd acls \r\n\/iscsi\/iqn.20...ad5\/tpg1\/acls> create iqn.2003-01.org.linux-iscsi.linuxprobe.x8664:sn.745b21d6cad5:client\r\nCreated Node ACL for iqn.2003-01.org.linux-iscsi.linuxprobe.x8664:sn.745b21d6cad5:client\r\nCreated mapped LUN 0.\r\n<\/pre>\n

\u7b2c5\u6b65<\/strong>\uff1a\u8bbe\u7f6eiSCSI\u670d\u52a1\u7aef\u7684\u76d1\u542cIP\u5730\u5740\u548c\u7aef\u53e3\u53f7\u3002\u4f4d\u4e8e\u751f\u4ea7\u73af\u5883\u4e2d\u7684\u670d\u52a1\u5668\u4e0a\u53ef\u80fd\u6709\u591a\u5757\u7f51\u5361\uff0c\u90a3\u4e48\u5230\u5e95\u662f\u7531\u54ea\u4e2a\u7f51\u5361\u6216IP\u5730\u5740\u5bf9\u5916\u63d0\u4f9b\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\u5462\uff1f\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u9ed8\u8ba4\u662f\u5141\u8bb8\u6240\u6709\u7f51\u5361\u63d0\u4f9biSCSI\u670d\u52a1\uff0c\u5982\u679c\u60a8\u8ba4\u4e3a\u8fd9\u6709\u4e9b\u8bb8\u4e0d\u5b89\u5168\uff0c\u53ef\u4ee5\u624b\u52a8\u5220\u9664\uff1a<\/p>\n

\/iscsi\/iqn.20...ad5\/tpg1\/acls> cd ..\/portals\/\r\n\/iscsi\/iqn.20...\/tpg1\/portals> ls\r\no- portals ................................................................... [Portals: 1]\r\n  o- 0.0.0.0:3260 .................................................................... [OK]\r\n\/iscsi\/iqn.20...\/tpg1\/portals> delete 0.0.0.0 3260\r\nDeleted network portal 0.0.0.0:3260\r\n<\/pre>\n

\u7ee7\u7eed\u8fdb\u884c\u8bbe\u7f6e\uff0c\u4f7f\u7cfb\u7edf\u4f7f\u7528\u670d\u52a1\u5668IP\u5730\u5740192.168.10.10\u76843260\u7aef\u53e3\u5411\u5916\u63d0\u4f9biSCSI\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\u670d\u52a1\uff1a<\/p>\n

\/iscsi\/iqn.20...\/tpg1\/portals> create 192.168.10.10\r\nUsing default IP port 3260\r\nCreated network portal 192.168.10.10:3260.\r\n<\/pre>\n

\u7b2c6\u6b65<\/strong>\uff1a\u5728\u53c2\u6570\u6587\u4ef6\u914d\u7f6e\u59a5\u5f53\u540e\uff0c\u6d4f\u89c8\u521a\u521a\u914d\u7f6e\u7684\u4fe1\u606f\uff0c\u786e\u4fdd\u4e0a\u8ff0\u63d0\u5230\u7684\u201c\u76ee\u5f55\u201d\u90fd\u5df2\u7ecf\u586b\u5199\u4e86\u6b63\u786e\u7684\u5185\u5bb9\u3002\u5728\u786e\u8ba4\u4fe1\u606f\u65e0\u8bef\u540e\u8f93\u5165exit\u547d\u4ee4\u9000\u51fa\u914d\u7f6e\u3002\u6ce8\u610f\uff0c\u5343\u4e07\u4e0d\u8981\u4e60\u60ef\u6027\u5730\u6309Ctrl + C\u7ec4\u5408\u952e\u7ed3\u675f\u8fdb\u7a0b\uff0c\u8fd9\u6837\u4e0d\u4f1a\u4fdd\u5b58\u914d\u7f6e\u6587\u4ef6\uff0c\u6211\u4eec\u7684\u5de5\u4f5c\u4e5f\u5c31\u767d\u8d39\u4e86\u3002<\/p>\n

\/iscsi\/iqn.20...\/tpg1\/portals> cd \/\r\n\/> ls\r\no- \/ ............................................................................... [...]\r\n  o- backstores .................................................................... [...]\r\n  | o- block ........................................................ [Storage Objects: 1]\r\n  | | o- disk0 <\/strong>................................. [\/dev\/md0 (40.0GiB) write-thru activated<\/strong>]\r\n  | |   o- alua ......................................................... [ALUA Groups: 1]\r\n  | |     o- default_tg_pt_gp ............................. [ALUA state: Active\/optimized]\r\n  | o- fileio ....................................................... [Storage Objects: 0]\r\n  | o- pscsi ........................................................ [Storage Objects: 0]\r\n  | o- ramdisk ...................................................... [Storage Objects: 0]\r\n  o- iscsi .................................................................. [Targets: 1]\r\n  | o- iqn.2003-01.org.linux-iscsi.linuxprobe.x8664:sn.745b21d6cad5<\/strong> ............ [TPGs: 1]\r\n  |   o- tpg1 ..................................................... [no-gen-acls, no-auth]\r\n  |     o- acls ................................................................ [ACLs: 1]\r\n  |     | o- iqn.2003-01.org.linux-iscsi.linuxprobe.x8664:sn.745b21d6cad5:client<\/strong>[Mapped LUNs: 1]\r\n  |     |   o- mapped_lun0<\/strong> ....................................... [lun0 block\/disk0 (rw)<\/strong>]\r\n  |     o- luns ................................................................ [LUNs: 1]\r\n  |     | o- lun0 ............................ [block\/disk0 (\/dev\/md0) (default_tg_pt_gp)]\r\n  |     o- portals .......................................................... [Portals: 1]\r\n  |       o- 192.168.10.10:3260<\/strong> ..................................................... [OK]\r\n  o- loopback ............................................................... [Targets: 0]\r\n\/> exit\r\nGlobal pref auto_save_on_exit=true\r\nConfiguration saved to \/etc\/target\/saveconfig.json\r\n<\/pre>\n

\u6e05\u7a7aiptables\u9632\u706b\u5899\u4e2d\u7684\u9ed8\u8ba4\u7b56\u7565\uff0c\u8bbe\u7f6efirewalld\u9632\u706b\u5899\uff0c\u4f7f\u5176\u653e\u884ciSCSI\u670d\u52a1\u62163260\/TCP\u7aef\u53e3\u53f7\uff1a<\/p>\n

[root@linuxprobe ~]# iptables -F\r\n[root@linuxprobe ~]# iptables-save\r\n[root@linuxprobe ~]# firewall-cmd --permanent --add-port=3260\/tcp \r\nsuccess\r\n[root@linuxprobe ~]# firewall-cmd --reload \r\nsuccess\r\n<\/pre>\n
17.4\u00a0\u914d\u7f6eLinux\u5ba2\u6237\u7aef<\/span><\/strong><\/h5>\n

\u6211\u4eec\u5728\u524d\u9762\u7684\u7ae0\u8282\u4e2d\u5df2\u7ecf\u914d\u7f6e\u4e86\u5f88\u591aLinux\u670d\u52a1\uff0c\u57fa\u672c\u4e0a\u53ef\u4ee5\u8bf4\uff0c\u65e0\u8bba\u662f\u4ec0\u4e48\u670d\u52a1\uff0c\u5ba2\u6237\u7aef\u7684\u914d\u7f6e\u6b65\u9aa4\u90fd\u8981\u6bd4\u670d\u52a1\u7aef\u7684\u914d\u7f6e\u6b65\u9aa4\u7b80\u5355\u4e00\u4e9b\u3002\u5728RHEL 8\u7cfb\u7edf\u4e2d\uff0c\u5df2\u7ecf\u9ed8\u8ba4\u5b89\u88c5\u4e86iSCSI\u5ba2\u6237\u7aef\u670d\u52a1\u7a0b\u5e8finitiator\u3002\u5982\u679c\u60a8\u7684\u7cfb\u7edf\u6ca1\u6709\u5b89\u88c5\u7684\u8bdd\uff0c\u53ef\u4ee5\u4f7f\u7528\u8f6f\u4ef6\u4ed3\u5e93\u624b\u52a8\u5b89\u88c5\u3002<\/p>\n

[root@linuxprobe ~]# dnf install iscsi-initiator-utils\r\nUpdating Subscription Management repositories.\r\nUnable to read consumer identity\r\nThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.\r\nLast metadata expiration check: 0:00:04 ago on Tue 27 Apr 2021 01:34:47 AM CST.\r\nPackage iscsi-initiator-utils-6.2.0.876-7.gitf3c8e90.el8.x86_64 is already installed.\r\nDependencies resolved.\r\nNothing to do.\r\nComplete!\r\n<\/pre>\n

\u524d\u9762\u8bb2\u5230\uff0ciSCSI\u534f\u8bae\u662f\u901a\u8fc7\u5ba2\u6237\u7aef\u7684\u540d\u79f0\u6765\u8fdb\u884c\u9a8c\u8bc1\u7684\uff0c\u800c\u8be5\u540d\u79f0\u4e5f\u662fiSCSI\u5ba2\u6237\u7aef\u7684\u552f\u4e00\u6807\u8bc6\uff0c\u800c\u4e14\u5fc5\u987b\u4e0e\u670d\u52a1\u7aef\u914d\u7f6e\u6587\u4ef6\u4e2d\u8bbf\u95ee\u63a7\u5236\u5217\u8868\u4e2d\u7684\u4fe1\u606f\u4e00\u81f4\uff0c\u5426\u5219\u5ba2\u6237\u7aef\u5728\u5c1d\u8bd5\u8bbf\u95ee\u5b58\u50a8\u5171\u4eab\u8bbe\u5907\u65f6\uff0c\u7cfb\u7edf\u4f1a\u5f39\u51fa\u9a8c\u8bc1\u5931\u8d25\u7684\u4fdd\u5b58\u4fe1\u606f\u3002<\/p>\n

\u4e0b\u9762\u7f16\u8f91iSCSI\u5ba2\u6237\u7aef\u4e2d\u7684initiator\u540d\u79f0\u6587\u4ef6\uff0c\u628a\u670d\u52a1\u7aef\u7684\u8bbf\u95ee\u63a7\u5236\u5217\u8868\u540d\u79f0\u586b\u5199\u8fdb\u6765\uff0c\u7136\u540e\u91cd\u542f\u5ba2\u6237\u7aefiscsid\u670d\u52a1\u7a0b\u5e8f\u5e76\u5c06\u5176\u52a0\u5165\u5230\u5f00\u673a\u542f\u52a8\u9879\u4e2d\uff1a<\/p>\n

[root@linuxprobe ~]# vim \/etc\/iscsi\/initiatorname.iscsi \r\nInitiatorName=iqn.2003-01.org.linux-iscsi.linuxprobe.x8664:sn.745b21d6cad5:client\r\n[root@linuxprobe ~]# systemctl restart iscsid\r\n[root@linuxprobe ~]# systemctl enable  iscsid\r\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/iscsid.service \u2192 \/usr\/lib\/systemd\/system\/iscsid.service.\r\n<\/pre>\n

iSCSI\u5ba2\u6237\u7aef\u8bbf\u95ee\u5e76\u4f7f\u7528\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\u7684\u6b65\u9aa4\u5f88\u7b80\u5355\uff0c\u53ea\u9700\u8981\u8bb0\u4f4f\u5218\u9044<\/a>\u8001\u5e08\u7684\u4e00\u4e2a\u5c0f\u53e3\u8bc0\u201c\u5148\u53d1\u73b0\uff0c\u518d\u767b\u5f55\uff0c\u6700\u540e\u6302\u8f7d\u5e76\u4f7f\u7528\u201d\u3002iscsiadm\u662f\u7528\u4e8e\u7ba1\u7406\u3001\u67e5\u8be2\u3001\u63d2\u5165\u3001\u66f4\u65b0\u6216\u5220\u9664iSCSI\u6570\u636e\u5e93\u914d\u7f6e\u6587\u4ef6\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u7528\u6237\u9700\u8981\u5148\u4f7f\u7528\u8fd9\u4e2a\u5de5\u5177\u626b\u63cf\u53d1\u73b0\u8fdc\u7a0biSCSI\u670d\u52a1\u7aef\uff0c\u7136\u540e\u67e5\u770b\u627e\u5230\u7684\u670d\u52a1\u7aef\u4e0a\u6709\u54ea\u4e9b\u53ef\u7528\u7684\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\u3002\u5176\u4e2d\uff0c-m discovery\u53c2\u6570\u7684\u76ee\u7684\u662f\u626b\u63cf\u5e76\u53d1\u73b0\u53ef\u7528\u7684\u5b58\u50a8\u8d44\u6e90\uff0c-t st\u53c2\u6570\u4e3a\u6267\u884c\u626b\u63cf\u64cd\u4f5c\u7684\u7c7b\u578b\uff0c-p 192.168.10.10\u53c2\u6570\u4e3aiSCSI\u670d\u52a1\u7aef\u7684IP\u5730\u5740\uff1a<\/p>\n

[root@linuxprobe ~]# iscsiadm -m discovery -t st -p 192.168.10.10\r\n192.168.10.10:3260,1 iqn.2003-01.org.linux-iscsi.linuxprobe.x8664:sn.745b21d6cad5<\/pre>\n

\u5728\u4f7f\u7528iscsiadm\u547d\u4ee4\u53d1\u73b0\u4e86\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u53ef\u7528\u7684\u5b58\u50a8\u8d44\u6e90\u540e\uff0c\u63a5\u4e0b\u6765\u51c6\u5907\u767b\u5f55iSCSI\u670d\u52a1\u7aef\u3002\u5176\u4e2d\uff0c-m node\u53c2\u6570\u4e3a\u5c06\u5ba2\u6237\u7aef\u6240\u5728\u4e3b\u673a\u4f5c\u4e3a\u4e00\u53f0\u8282\u70b9\u670d\u52a1\u5668\uff0c-T\u53c2\u6570\u4e3a\u8981\u4f7f\u7528\u7684\u5b58\u50a8\u8d44\u6e90\uff08\u5927\u5bb6\u53ef\u4ee5\u76f4\u63a5\u590d\u5236\u524d\u9762\u547d\u4ee4\u4e2d\u626b\u63cf\u53d1\u73b0\u7684\u7ed3\u679c\uff0c\u4ee5\u514d\u5f55\u5165\u9519\u8bef\uff09\uff0c-p 192.168.10.10\u53c2\u6570\u4f9d\u7136\u4e3a\u5bf9\u65b9iSCSI\u670d\u52a1\u7aef\u7684IP\u5730\u5740\u3002\u6700\u540e\u4f7f\u7528--login\u6216-l\u53c2\u6570\u8fdb\u884c\u767b\u5f55\u9a8c\u8bc1\u3002<\/p>\n

[root@linuxprobe ~]# iscsiadm -m node -T iqn.2003-01.org.linux-iscsi.linuxprobe.x8664:sn.745b21d6cad5 -p 192.168.10.10 --login\r\nLogging in to [iface: default, target: iqn.2003-01.org.linux-iscsi.linuxprobe.x8664:sn.745b21d6cad5, portal: 192.168.10.10,3260] (multiple)\r\nLogin to [iface: default, target: iqn.2003-01.org.linux-iscsi.linuxprobe.x8664:sn.745b21d6cad5, portal: 192.168.10.10,3260] successful.\r\n<\/pre>\n

\u5728iSCSI\u5ba2\u6237\u7aef\u6210\u529f\u767b\u5f55\u4e4b\u540e\uff0c\u4f1a\u5728\u5ba2\u6237\u7aef\u4e3b\u673a\u4e0a\u591a\u51fa\u4e00\u5757\u540d\u4e3a\/dev\/sdb\u7684\u8bbe\u5907\u6587\u4ef6\u3002\u7b2c6\u7ae0\u66fe\u7ecf\u8bb2\u8fc7\uff0cudev\u670d\u52a1\u5728\u547d\u540d\u786c\u76d8\u540d\u79f0\u65f6\uff0c\u4e0e\u786c\u76d8\u63d2\u69fd\u662f\u6ca1\u6709\u5173\u7cfb\u7684\u3002\u63a5\u4e0b\u6765\u4fbf\u80fd\u591f\u50cf\u4f7f\u7528\u672c\u5730\u4e3b\u673a\u4e0a\u7684\u786c\u76d8\u90a3\u6837\u6765\u64cd\u4f5c\u8fd9\u4e2a\u8bbe\u5907\u6587\u4ef6\u4e86\u3002<\/p>\n

[root@linuxprobe ~]# ls -l \/dev\/sdb\r\nbrw-rw----. 1 root disk 8, 16 Apr 27 01:43 \/dev\/sdb\r\n[root@linuxprobe ~]# file \/dev\/sdb \r\n\/dev\/sdb: block special (8\/16)\r\n<\/pre>\n

\u4e0b\u9762\u8fdb\u5165\u6807\u51c6\u7684\u78c1\u76d8\u64cd\u4f5c\u6d41\u7a0b\u3002\u8003\u8651\u5230\u5927\u5bb6\u5df2\u7ecf\u5728\u7b2c6\u7ae0\u5b66\u4e60\u4e86\u8fd9\u90e8\u5206\u5185\u5bb9\uff0c\u5916\u52a0\u8fd9\u4e2a\u8bbe\u5907\u6587\u4ef6\u672c\u8eab\u53ea\u670940GB\u7684\u5bb9\u91cf\uff0c\u56e0\u6b64\u4e0d\u5fc5\u8fdb\u884c\u5206\u533a\uff0c\u800c\u662f\u76f4\u63a5\u683c\u5f0f\u5316\u5e76\u6302\u8f7d\u4f7f\u7528\u3002<\/p>\n

[root@linuxprobe ~]# mkfs.xfs \/dev\/sdb\r\nmeta-data=\/dev\/sdb               isize=512    agcount=16, agsize=654720 blks\r\n         =                       sectsz=512   attr=2, projid32bit=1\r\n         =                       crc=1        finobt=1, sparse=1, rmapbt=0\r\n         =                       reflink=1\r\ndata     =                       bsize=4096   blocks=10475520, imaxpct=25\r\n         =                       sunit=128    swidth=256 blks\r\nnaming   =version 2              bsize=4096   ascii-ci=0, ftype=1\r\nlog      =internal log           bsize=4096   blocks=5120, version=2\r\n         =                       sectsz=512   sunit=0 blks, lazy-count=1\r\nrealtime =none                   extsz=4096   blocks=0, rtextents=0\r\n[root@linuxprobe ~]# mkdir \/iscsi\r\n[root@linuxprobe ~]# mount \/dev\/sdb \/iscsi\/\r\n<\/pre>\n

\u4e0d\u653e\u5fc3\u7684\u8bdd\uff0c\u53ef\u4ee5\u4f7f\u7528df\u547d\u4ee4\u67e5\u770b\u6302\u8f7d\u60c5\u51b5\uff1a<\/p>\n

[root@linuxprobe ~]# df -h\r\nFilesystem             Size  Used Avail Use% Mounted on\r\ndevtmpfs               969M     0  969M   0% \/dev\r\ntmpfs                  984M     0  984M   0% \/dev\/shm\r\ntmpfs                  984M  9.6M  974M   1% \/run\r\ntmpfs                  984M     0  984M   0% \/sys\/fs\/cgroup\r\n\/dev\/mapper\/rhel-root   17G  3.9G   14G  23% \/\r\n\/dev\/sr0               6.7G  6.7G     0 100% \/media\/cdrom\r\n\/dev\/sda1             1014M  152M  863M  15% \/boot\r\ntmpfs                  197M   16K  197M   1% \/run\/user\/42\r\ntmpfs                  197M  3.5M  194M   2% \/run\/user\/0\r\n\/dev\/sdb                40G  319M   40G   1% \/iscsi<\/strong>\r\n<\/pre>\n

\u4ece\u6b64\u4ee5\u540e\uff0c\u8fd9\u4e2a\u8bbe\u5907\u6587\u4ef6\u5c31\u5982\u540c\u662f\u5ba2\u6237\u7aef\u672c\u673a\u4e0a\u7684\u786c\u76d8\u90a3\u6837\u5de5\u4f5c\u3002\u9700\u8981\u63d0\u9192\u5927\u5bb6\u7684\u662f\uff0c\u7531\u4e8eudev\u670d\u52a1\u662f\u6309\u7167\u7cfb\u7edf\u8bc6\u522b\u786c\u76d8\u8bbe\u5907\u7684\u987a\u5e8f\u6765\u547d\u540d\u786c\u76d8\u8bbe\u5907\u7684\uff0c\u5f53\u5ba2\u6237\u7aef\u4e3b\u673a\u540c\u65f6\u4f7f\u7528\u591a\u4e2a\u8fdc\u7a0b\u5b58\u50a8\u8d44\u6e90\u65f6\uff0c\u5982\u679c\u4e0b\u4e00\u6b21\u8bc6\u522b\u8fdc\u7a0b\u8bbe\u5907\u7684\u987a\u5e8f\u53d1\u751f\u4e86\u53d8\u5316\uff0c\u5219\u5ba2\u6237\u7aef\u6302\u8f7d\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u4e5f\u5c06\u968f\u4e4b\u6df7\u4e71\u3002\u4e3a\u4e86\u9632\u6b62\u53d1\u751f\u8fd9\u6837\u7684\u95ee\u9898\uff0c\u5e94\u8be5\u5728\/etc\/fstab\u914d\u7f6e\u6587\u4ef6\u4e2d\u4f7f\u7528\u8bbe\u5907\u7684UUID\u8fdb\u884c\u6302\u8f7d\u3002\u8fd9\u6837\uff0c\u4e0d\u8bba\u8fdc\u7a0b\u8bbe\u5907\u8d44\u6e90\u7684\u8bc6\u522b\u987a\u5e8f\u518d\u600e\u4e48\u53d8\u5316\uff0c\u7cfb\u7edf\u4e5f\u80fd\u6b63\u786e\u627e\u5230\u8bbe\u5907\u6240\u5bf9\u5e94\u7684\u76ee\u5f55\u3002<\/p>\n

blkid\u547d\u4ee4\u7528\u4e8e\u67e5\u770b\u8bbe\u5907\u7684\u540d\u79f0\u3001\u6587\u4ef6\u7cfb\u7edf\u53caUUID\u3002\u53ef\u4ee5\u4f7f\u7528\u7ba1\u9053\u7b26\uff08\u8be6\u89c1\u7b2c3\u7ae0\uff09\u8fdb\u884c\u8fc7\u6ee4\uff0c\u53ea\u663e\u793a\u4e0e\/dev\/sdb\u8bbe\u5907\u76f8\u5173\u7684\u4fe1\u606f\uff1a<\/p>\n

[root@linuxprobe ~]# blkid | grep \/dev\/sdb\r\n\/dev\/sdb: UUID=\"0937b4ec-bada-4a09-9f99-9113296ab72d\" TYPE=\"xfs\"\r\n<\/pre>\n

\u5218\u9044\u8001\u5e08\u8fd8\u8981\u518d\u5570\u55e6\u4e00\u53e5\uff0c\u7531\u4e8e\/dev\/sdb\u662f\u4e00\u5757\u7f51\u7edc\u5b58\u50a8\u8bbe\u5907\uff0c\u800ciSCSI\u534f\u8bae\u662f\u57fa\u4e8eTCP\/IP\u7f51\u7edc\u4f20\u8f93\u6570\u636e\u7684\uff0c\u56e0\u6b64\u5fc5\u987b\u5728\/etc\/fstab\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4e0a_netdev\u53c2\u6570\uff0c\u8868\u793a\u5f53\u7cfb\u7edf\u8054\u7f51\u540e\u518d\u8fdb\u884c\u6302\u8f7d\u64cd\u4f5c\uff0c\u4ee5\u514d\u7cfb\u7edf\u5f00\u673a\u65f6\u95f4\u8fc7\u957f\u6216\u5f00\u673a\u5931\u8d25\uff1a<\/p>\n

[root@linuxprobe ~]# vim \/etc\/fstab\r\n#\r\n# \/etc\/fstab\r\n# Created by anaconda on Thu Feb 25 10:42:11 2021\r\n#\r\n# Accessible filesystems, by reference, are maintained under '\/dev\/disk\/'.\r\n# See man pages fstab(5), findfs(8), mount(8) and\/or blkid(8) for more info.\r\n#\r\n# After editing this file, run 'systemctl daemon-reload' to update systemd\r\n# units generated from this file.\r\n#\r\n\/dev\/mapper\/rhel-root                       \/             xfs      defaults           0 0\r\nUUID=37d0bdc6-d70d-4cc0-b356-51195ad90369   \/boot         xfs      defaults           0 0\r\n\/dev\/mapper\/rhel-swap                       swap          swap     defaults           0 0\r\n\/dev\/cdrom                                  \/media\/cdrom  iso9660  defaults           0 0 \r\nUUID=\"0937b4ec-bada-4a09-9f99-9113296ab72d\" \/iscsi        xfs      defaults,_netdev   0 0<\/strong> \r\n<\/pre>\n

\u5982\u679c\u6211\u4eec\u4e0d\u518d\u9700\u8981\u4f7f\u7528iSCSI\u5171\u4eab\u8bbe\u5907\u8d44\u6e90\u4e86\uff0c\u53ef\u4ee5\u7528iscsiadm\u547d\u4ee4\u7684-u\u53c2\u6570\u5c06\u5176\u8bbe\u5907\u5378\u8f7d\uff1a<\/p>\n

[root@linuxprobe ~]# iscsiadm -m node -T iqn.2003-01.org.linux-iscsi.linuxprobe.x8664:sn.745b21d6cad5 -u\r\nLogging out of session [sid: 1, target: iqn.2003-01.org.linux-iscsi.linuxprobe.x8664:sn.745b21d6cad5, portal: 192.168.10.10,3260]\r\nLogout of [sid: 1, target: iqn.2003-01.org.linux-iscsi.linuxprobe.x8664:sn.745b21d6cad5, portal: 192.168.10.10,3260] successful.\r\n<\/pre>\n

\u8fd9\u79cd\u83b7\u53d6iSCSI\u8fdc\u7a0b\u5b58\u50a8\u7684\u65b9\u6cd5\u4f9d\u8d56\u7684\u662fRHEL 8\u7cfb\u7edf\u81ea\u5e26\u7684iSCSI initiator\u8f6f\u4ef6\u7a0b\u5e8f\u3002\u8be5\u8f6f\u4ef6\u7a0b\u5e8f\u5c06\u4ee5\u592a\u7f51\u5361\u865a\u62df\u6210iSCSI\u5361\uff0c\u8fdb\u800c\u63a5\u6536\u6570\u636e\uff0c\u7136\u540e\u57fa\u4e8eTCP\/IP\u534f\u8bae\u5728\u4e3b\u673a\u4e0eiSCSI\u5b58\u50a8\u8bbe\u5907\u4e4b\u95f4\u5b9e\u73b0\u6570\u636e\u4f20\u8f93\u529f\u80fd\u3002\u8fd9\u79cd\u65b9\u5f0f\u4ec5\u9700\u4e3b\u673a\u4e0e\u7f51\u7edc\u5373\u53ef\u5b9e\u73b0\uff0c\u56e0\u6b64\u6210\u672c\u662f\u6700\u4f4e\u7684\u3002\u4f46\u662f\uff0c\u5728\u91c7\u7528\u8fd9\u79cd\u65b9\u5f0f\u4f20\u8f93\u6570\u636e\u65f6\uff0c\u4e0eiSCSI\u548cTCP\/IP\u76f8\u5173\u7684\u547d\u4ee4\u6570\u636e\u4f1a\u6d88\u8017\u5ba2\u6237\u7aef\u81ea\u8eab\u7684CPU\u8ba1\u7b97\u6027\u80fd\uff0c\u56e0\u6b64\u5b58\u5728\u4e00\u5b9a\u7684\u989d\u5916\u5f00\u9500\u3002\u4e00\u822c\u5efa\u8bae\u5728\u4f4eI\/O\u6216\u8005\u4f4e\u5e26\u5bbd\u8981\u6c42\u7684\u73af\u5883\u4e2d\u4f7f\u7528\u8fd9\u79cd\u65b9\u5f0f\u3002<\/p>\n

\u5982\u679c\u5728\u540e\u7eed\u7684\u751f\u4ea7\u73af\u5883\u4e2d\u9700\u8981\u8fdb\u884c\u5927\u91cf\u7684\u8fdc\u7a0b\u6570\u636e\u5b58\u50a8\uff0c\u5efa\u8bae\u81ea\u884c\u914d\u5907iSCSI HBA\uff08Host Bus Adapter\uff0c\u4e3b\u673a\u603b\u7ebf\u9002\u914d\u5668\uff09\u786c\u4ef6\u5361\u8bbe\u5907\uff0c\u5e76\u5c06\u5176\u5b89\u88c5\u5230iSCSI\u670d\u52a1\u5668\u4e0a\uff0c\u4ece\u800c\u5b9e\u73b0iSCSI\u670d\u52a1\u5668\u4e0e\u4ea4\u6362\u673a\u4e4b\u95f4\u3001iSCSI\u670d\u52a1\u5668\u4e0e\u5ba2\u6237\u7aef\u4e4b\u95f4\u7684\u9ad8\u6548\u6570\u636e\u4f20\u8f93\u3002\u4e0einitiator\u7684\u8f6f\u4ef6\u65b9\u5f0f\u76f8\u6bd4\uff0ciSCSI HBA\u786c\u4ef6\u5361\u8bbe\u5907\u4e0d\u9700\u8981\u6d88\u8017CPU\u8ba1\u7b97\u6027\u80fd\uff0c\u800c\u4e14\u5b83\u662f\u4e13\u7528\u7684\u8fdc\u7a0b\u6570\u636e\u5b58\u50a8\u8bbe\u5907\uff0c\u56e0\u6b64\u5bf9iSCSI\u7684\u652f\u6301\u4e5f\u4f1a\u66f4\u597d\u3002\u4f46\u662f\uff0ciSCSI HBA\u786c\u4ef6\u5361\u8bbe\u5907\u7684\u4ef7\u683c\u4f1a\u7a0d\u5fae\u8d35\u4e00\u4e9b\uff0c\u5927\u5bb6\u9700\u8981\u5728\u6027\u80fd\u548c\u6210\u672c\u4e4b\u95f4\u8fdb\u884c\u6743\u8861\u3002<\/p>\n

\u51fa\u73b0\u95ee\u9898?\u5927\u80c6\u63d0\u95ee!<\/strong><\/span><\/p>\n

\u56e0\u8bfb\u8005\u4eec\u786c\u4ef6\u4e0d\u540c\u6216\u64cd\u4f5c\u9519\u8bef\u90fd\u53ef\u80fd\u5bfc\u81f4\u5b9e\u9a8c\u914d\u7f6e\u51fa\u9519\uff0c\u8bf7\u8010\u5fc3\u518d\u4ed4\u7ec6\u770b\u770b\u64cd\u4f5c\u6b65\u9aa4\u5427\uff0c\u4e0d\u8981\u6c14\u9981~<\/p>\n

Linux\u6280\u672f\u4ea4\u6d41\u5b66\u4e60\u8bf7\u52a0\u8bfb\u8005\u7fa4\uff08\u63a8\u8350<\/span><\/strong>\uff09\uff1ahttps:\/\/q13zd.cn\/club<\/a><\/p>\n

*\u672c\u7fa4\u7279\u8272\uff1a\u786e\u4fdd\u6bcf\u4e00\u4f4d\u7fa4\u53cb\u90fd\u662f\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b\u7684\u8bfb\u8005\uff0c\u7b54\u7591\u66f4\u6709\u9488\u5bf9\u6027\uff0c\u4e0d\u5b9a\u671f\u9886\u53d6\u5b9a\u5236\u793c\u54c1\u3002<\/p><\/blockquote>\n

17.5 \u914d\u7f6eWindows\u5ba2\u6237\u7aef<\/strong><\/span><\/h5>\n

\u4f7f\u7528Windows\u7cfb\u7edf\u7684\u5ba2\u6237\u7aef\u4e5f\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95eeiSCSI\u670d\u52a1\u5668\u4e0a\u7684\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\uff0c\u800c\u4e14\u64cd\u4f5c\u539f\u7406\u53ca\u6b65\u9aa4\u4e0eLinux\u7cfb\u7edf\u7684\u5ba2\u6237\u7aef\u57fa\u672c\u76f8\u540c\u3002\u5728\u8fdb\u884c\u4e0b\u9762\u7684\u5b9e\u9a8c\u4e4b\u524d\uff0c\u8bf7\u5148\u5173\u95edLinux\u7cfb\u7edf\u5ba2\u6237\u7aef\uff0c\u4ee5\u514d\u8fd9\u4e24\u53f0\u5ba2\u6237\u7aef\u4e3b\u673a\u540c\u65f6\u4f7f\u7528iSCSI\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\u800c\u4ea7\u751f\u6f5c\u5728\u95ee\u9898\u3002\u4e0b\u9762\u6309\u7167\u886817-2\u6765\u914d\u7f6eiSCSI\u670d\u52a1\u5668\u548cWindows\u5ba2\u6237\u7aef\u6240\u7528\u7684IP\u5730\u5740\u3002<\/p>\n

\u886817-2\u00a0\u00a0\u00a0 iSCSI\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u7684\u64cd\u4f5c\u7cfb\u7edf\u4ee5\u53caIP\u5730\u5740<\/p>\n\n\n\n\n\n
\u4e3b\u673a\u540d\u79f0<\/td>\n\u64cd\u4f5c\u7cfb\u7edf<\/td>\nIP\u5730\u5740<\/td>\n<\/tr>\n
iSCSI\u670d\u52a1\u7aef<\/td>\nRHEL 8<\/td>\n192.168.10.10<\/td>\n<\/tr>\n
Windows\u7cfb\u7edf\u5ba2\u6237\u7aef<\/td>\nWindows 11<\/td>\n192.168.10.30<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

<\/p>\n

\u7b2c1\u6b65<\/strong>\uff1a\u8fd0\u884ciSCSI\u53d1\u8d77\u7a0b\u5e8f\u3002\u5728Windows 10\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u5df2\u7ecf\u9ed8\u8ba4\u5b89\u88c5\u4e86iSCSI\u5ba2\u6237\u7aef\u7a0b\u5e8f\uff0c\u6211\u4eec\u53ea\u9700\u5728\u63a7\u5236\u9762\u677f\u4e2d\u627e\u5230\u201c\u7cfb\u7edf\u548c\u5b89\u5168\u201d\u6807\u7b7e\uff0c\u7136\u540e\u5355\u51fb\u201c\u7ba1\u7406\u5de5\u5177\u201d\uff08\u89c1\u56fe17-3\uff09\uff0c\u8fdb\u5165\u5230\u201c\u7ba1\u7406\u5de5\u5177\u201d\u9875\u9762\u540e\u5373\u53ef\u770b\u5230\u201ciSCSI\u53d1\u8d77\u7a0b\u5e8f\u201d\u56fe\u6807\u3002\u53cc\u51fb\u8be5\u56fe\u6807\uff0c\u5728\u7b2c\u4e00\u6b21\u8fd0\u884ciSCSI\u53d1\u8d77\u7a0b\u5e8f\u65f6\uff0c\u7cfb\u7edf\u4f1a\u63d0\u793a\u201cMicrosoft iSCSI\u670d\u52a1\u7aef\u672a\u8fd0\u884c\u201d\uff0c\u5355\u51fb\u201c\u662f\u201d\u6309\u94ae\u5373\u53ef\u81ea\u52a8\u542f\u52a8\u5e76\u8fd0\u884ciSCSI\u53d1\u8d77\u7a0b\u5e8f\uff0c\u5982\u56fe17-4\u6240\u793a\u3002<\/p>\n

\"\"<\/p>\n

\u56fe17-3\u00a0 \u5728\u63a7\u5236\u9762\u677f\u4e2d\u5355\u51fb\u201c\u7ba1\u7406\u5de5\u5177\u201d<\/p>\n

\"\"<\/p>\n

\u56fe17-4\u00a0 \u53cc\u51fb\u201ciSCSI\u53d1\u8d77\u7a0b\u5e8f\u201d\u56fe\u6807<\/p>\n

\u7b2c2\u6b65<\/strong>\uff1a\u626b\u63cf\u53d1\u73b0iSCSI\u670d\u52a1\u7aef\u4e0a\u53ef\u7528\u7684\u5b58\u50a8\u8d44\u6e90\u3002\u4e0d\u8bba\u662fWindows\u7cfb\u7edf\u8fd8\u662fLinux\u7cfb\u7edf\uff0c\u8981\u60f3\u4f7f\u7528iSCSI\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\uff0c\u90fd\u5fc5\u987b\u5148\u8fdb\u884c\u626b\u63cf\u53d1\u73b0\u64cd\u4f5c\u3002\u8fd0\u884ciSCSI\u53d1\u8d77\u7a0b\u5e8f\u540e\u5728\u201c\u76ee\u6807\u201d\u9009\u9879\u5361\u7684\u201c\u76ee\u6807\u201d\u6587\u672c\u6846\u4e2d\u5199\u5165iSCSI\u670d\u52a1\u7aef\u7684IP\u5730\u5740\uff0c\u7136\u540e\u5355\u51fb\u201c\u5feb\u901f\u8fde\u63a5\u201d\u6309\u94ae\uff0c\u5982\u56fe17-5\u6240\u793a\u3002<\/p>\n

\u5728\u5f39\u51fa\u7684\u201c\u5feb\u901f\u8fde\u63a5\u201d\u5bf9\u8bdd\u6846\u4e2d\u53ef\u770b\u5230\u5171\u4eab\u7684\u786c\u76d8\u5b58\u50a8\u8d44\u6e90\uff0c\u6b64\u65f6\u663e\u793a\u201c\u65e0\u6cd5\u767b\u5f55\u5230\u76ee\u6807\u201d\u5c5e\u4e8e\u6b63\u5e38\u60c5\u51b5\uff0c\u5355\u51fb\u201c\u5b8c\u6210\u201d\u6309\u94ae\u5373\u53ef\uff0c\u5982\u56fe17-6\u6240\u793a\u3002<\/p>\n

\"\"<\/p>\n

\u56fe17-5\u00a0 \u586b\u5199iSCSI\u670d\u52a1\u7aef\u7684IP\u5730\u5740<\/p>\n

\"\"<\/p>\n

\u56fe17-6\u00a0 \u5728\u201c\u5feb\u901f\u8fde\u63a5\u201d\u63d0\u793a\u6846\u4e2d\u770b\u5230\u7684\u5171\u4eab\u7684\u786c\u76d8\u5b58\u50a8\u8d44\u6e90<\/p>\n

\u56de\u5230\u201c\u76ee\u6807\u201d\u9009\u9879\u5361\u9875\u9762\uff0c\u53ef\u4ee5\u770b\u5230\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\u7684\u540d\u79f0\u5df2\u7ecf\u51fa\u73b0\uff0c\u5982\u56fe17-7\u6240\u793a\u3002<\/p>\n

\"\"<\/p>\n

\u56fe17-7\u00a0 \u5728\u201c\u76ee\u6807\u201d\u9009\u9879\u5361\u4e2d\u770b\u5230\u4e86\u5171\u4eab\u5b58\u50a8\u8d44\u6e90<\/p>\n

\u7b2c3\u6b65<\/strong>\uff1a\u51c6\u5907\u8fde\u63a5iSCSI\u670d\u52a1\u7aef\u7684\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\u3002\u7531\u4e8e\u5728iSCSI\u670d\u52a1\u7aef\u7a0b\u5e8f\u4e0a\u8bbe\u7f6e\u4e86ACL\uff0c\u4f7f\u5f97\u53ea\u6709\u5ba2\u6237\u7aef\u540d\u79f0\u4e0eACL\u7b56\u7565\u4e2d\u7684\u540d\u79f0\u4fdd\u6301\u4e00\u81f4\u65f6\u624d\u80fd\u4f7f\u7528\u8fdc\u7a0b\u5b58\u50a8\u8d44\u6e90\uff0c\u56e0\u6b64\u9996\u5148\u9700\u8981\u5728\u201c\u914d\u7f6e\u201d\u9009\u9879\u5361\u4e2d\u5355\u51fb\u201c\u66f4\u6539\u201d\u6309\u94ae\uff08\u89c1\u56fe17-8\uff09\uff0c\u968f\u540e\u5728\u4fee\u6539\u754c\u9762\u5199\u5165iSCSI\u670d\u52a1\u5668\u914d\u7f6e\u8fc7\u7684ACL\u7b56\u7565\u540d\u79f0\uff08\u89c1\u56fe17-9\uff09\uff0c\u6700\u540e\u91cd\u65b0\u8fd4\u56de\u5230iSCSI\u53d1\u8d77\u7a0b\u5e8f\u7684\u201c\u76ee\u6807\u201d\u754c\u9762\uff08\u89c1\u56fe17-10\uff09\u3002<\/p>\n

\"\"<\/p>\n

\u56fe17-8 \u66f4\u6539\u5ba2\u6237\u7aef\u7684\u53d1\u8d77\u7a0b\u5e8f\u540d\u79f0<\/p>\n

\"\"<\/p>\n

\u56fe17-9\u00a0 \u4fee\u6539iSCSI\u53d1\u8d77\u7a0b\u5e8f\u7684\u540d\u79f0<\/p>\n

\"\"<\/p>\n

\u56fe17-10 \u8fd4\u56de\u5230\u201c\u76ee\u6807\u201d\u754c\u9762<\/p>\n

\u5728\u786e\u8ba4iSCSI\u53d1\u8d77\u7a0b\u5e8f\u540d\u79f0\u4e0eiSCSI\u670d\u52a1\u5668ACL\u7b56\u7565\u4e00\u81f4\u540e\uff0c\u91cd\u65b0\u5355\u51fb\u201c\u8fde\u63a5\u201d\u6309\u94ae\uff0c\u5982\u56fe17-11\u6240\u793a\uff0c\u5e76\u5355\u51fb\u201c\u786e\u8ba4\u201d\u6309\u94ae\u3002\u5927\u7ea61\uff5e3\u79d2\u540e\uff0c\u72b6\u6001\u4f1a\u66f4\u65b0\u4e3a\u201c\u5df2\u8fde\u63a5\u201d\uff0c\u5982\u56fe17-12\u6240\u793a\u3002<\/p>\n

\"\"<\/p>\n

\u56fe17-11 \u5c1d\u8bd5\u8fde\u63a5iSCSI\u5b58\u50a8\u76ee\u6807
\n\"\"<\/p>\n

\u56fe17-12\u00a0 \u6210\u529f\u8fde\u63a5\u5230\u8fdc\u7a0b\u5171\u4eab\u5b58\u50a8\u8d44\u6e90<\/p>\n

\u7b2c4\u6b65<\/strong>\uff1a\u8bbf\u95eeiSCSI\u8fdc\u7a0b\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\u3002\u53f3\u952e\u5355\u51fb\u684c\u9762\u4e0a\u7684\u201c\u8ba1\u7b97\u673a\u201d\u56fe\u6807\uff0c\u6253\u5f00\u8ba1\u7b97\u673a\u7ba1\u7406\u7a0b\u5e8f\uff0c\u5982\u56fe17-13\u6240\u793a\u3002<\/p>\n

\"\"<\/p>\n

\u56fe17-13\u00a0 \u8ba1\u7b97\u673a\u7ba1\u7406\u7a0b\u5e8f\u7684\u754c\u9762<\/p>\n

\u5f00\u59cb\u5bf9\u78c1\u76d8\u8fdb\u884c\u521d\u59cb\u5316\u64cd\u4f5c\uff0c\u5982\u56fe17-14\u6240\u793a\u3002Windows\u7cfb\u7edf\u7528\u6765\u521d\u59cb\u5316\u78c1\u76d8\u8bbe\u5907\u7684\u6b65\u9aa4\u5341\u5206\u7b80\u5355\uff0c\u5404\u4f4d\u8bfb\u8005\u90fd\u53ef\u4ee5\u73a9\u5f97\u8f6cLinux\u7cfb\u7edf\uff0c\u76f8\u4fe1Windows\u7cfb\u7edf\u5c31\u66f4\u4e0d\u5728\u8bdd\u4e0b\u4e86\u3002Windows\u7cfb\u7edf\u7684\u521d\u59cb\u5316\u8fc7\u7a0b\u6b65\u9aa4\u5982\u56fe17-15\uff5e\u56fe17-21\u6240\u793a\u3002<\/p>\n

\"\"<\/p>\n

\u56fe17-14\u00a0 \u5bf9\u78c1\u76d8\u8bbe\u5907\u8fdb\u884c\u521d\u59cb\u5316\u64cd\u4f5c<\/p>\n

\"\"<\/p>\n

\u56fe17-15\u00a0 \u5f00\u59cb\u4f7f\u7528\u201c\u65b0\u5efa\u7b80\u5355\u5377\u5411\u5bfc\u201d<\/p>\n

\"\"<\/p>\n

\u56fe17-16\u00a0 \u5bf9\u78c1\u76d8\u8bbe\u5907\u8fdb\u884c\u5206\u533a\u64cd\u4f5c<\/p>\n

\"\"<\/p>\n

\u56fe17-17\u00a0 \u8bbe\u7f6e\u7cfb\u7edf\u4e2d\u663e\u793a\u7684\u76d8\u7b26<\/p>\n

\"\"<\/p>\n

\u56fe17-18\u00a0 \u8bbe\u7f6e\u78c1\u76d8\u8bbe\u5907\u7684\u683c\u5f0f\u4ee5\u53ca\u5377\u6807<\/p>\n

\"\"<\/p>\n

\u56fe17-19\u00a0 \u00a0\u68c0\u67e5\u78c1\u76d8\u521d\u59cb\u5316\u4fe1\u606f\u662f\u5426\u6b63\u786e<\/p>\n

\"\"<\/p>\n

\u56fe17-20\u00a0 \u00a0\u7b49\u5f85\u78c1\u76d8\u8bbe\u5907\u521d\u59cb\u5316\u8fc7\u7a0b\u7ed3\u675f<\/p>\n

\"\"<\/p>\n

\u56fe17-21\u00a0 \u78c1\u76d8\u521d\u59cb\u5316\u5b8c\u6bd5\u540e\u5f39\u51fa\u8bbe\u5907\u56fe\u6807<\/p>\n

\u63a5\u4e0b\u6765\u5373\u53ef\u8fdb\u5165\u6b63\u5e38\u7684\u4f7f\u7528\u8fc7\u7a0b\u3002\u7531\u4e8e\u6574\u4e2a\u4f20\u8f93\u8fc7\u7a0b\u662f\u5b8c\u5168\u900f\u660e\u7684\uff0c\u800c\u4e14\u50cf\u4e00\u5757\u672c\u5730\u786c\u76d8\u90a3\u6837\u7a33\u5b9a\uff0c\u56e0\u6b64\u4e0d\u77e5\u60c5\u7684\u7528\u6237\u53ef\u80fd\u90fd\u5bdf\u89c9\u4e0d\u5230\u8fd9\u662f\u4e00\u5757\u8fdc\u7a0b\u5b58\u50a8\u8bbe\u5907\u3002\u4e0d\u8fc7\uff0c\u8fd9\u53ea\u662f\u7406\u8bba\u72b6\u6001\uff0c\u5b9e\u9645\u4e0a\u7684iSCSI\u6570\u636e\u4f20\u8f93\u901f\u7387\u5e76\u4e0d\u80fd\u5b8c\u5168\u8fbe\u5230\u672c\u5730\u786c\u76d8\u7684\u6027\u80fd\uff0c\u4f1a\u6216\u591a\u6216\u5c11\u5730\u53d7\u5230\u7f51\u7edc\u5e26\u5bbd\u7684\u5f71\u54cd\uff0c\u53ea\u4e0d\u8fc7\u5dee\u522b\u4e0d\u660e\u663e\u7f62\u4e86\u3002\u8003\u8651\u5230iSCSI\u5b58\u50a8\u6280\u672f\u8fd8\u6709\u4e00\u4e2a\u4f18\u52bf\uff0c\u5c31\u662f\u5b89\u5168\u6027\u9ad8\uff0c\u8fd9\u5bf9\u4e8e\u6570\u636e\u96c6\u4e2d\u5b58\u50a8\u6765\u8bb2\u663e\u5f97\u5341\u5206\u91cd\u8981\u3002\u56e0\u6b64\uff0c\u5728\u8fdb\u884c\u6570\u636e\u5b58\u50a8\u4e0e\u4f20\u8f93\u65f6\uff0ciSCSI\u503c\u5f97\u4e00\u8bd5\uff01<\/p>\n

\u51fa\u73b0\u95ee\u9898?\u5927\u80c6\u63d0\u95ee!<\/strong><\/span><\/p>\n

\u56e0\u8bfb\u8005\u4eec\u786c\u4ef6\u4e0d\u540c\u6216\u64cd\u4f5c\u9519\u8bef\u90fd\u53ef\u80fd\u5bfc\u81f4\u5b9e\u9a8c\u914d\u7f6e\u51fa\u9519\uff0c\u8bf7\u8010\u5fc3\u518d\u4ed4\u7ec6\u770b\u770b\u64cd\u4f5c\u6b65\u9aa4\u5427\uff0c\u4e0d\u8981\u6c14\u9981~<\/p>\n

Linux\u6280\u672f\u4ea4\u6d41\u5b66\u4e60\u8bf7\u52a0\u8bfb\u8005\u7fa4\uff08\u63a8\u8350<\/span><\/strong>\uff09\uff1ahttps:\/\/q13zd.cn\/club<\/a><\/p>\n

*\u672c\u7fa4\u7279\u8272\uff1a\u786e\u4fdd\u6bcf\u4e00\u4f4d\u7fa4\u53cb\u90fd\u662f\u300aLinux\u5c31\u8be5\u8fd9\u4e48\u5b66\u300b\u7684\u8bfb\u8005\uff0c\u7b54\u7591\u66f4\u6709\u9488\u5bf9\u6027\uff0c\u4e0d\u5b9a\u671f\u9886\u53d6\u5b9a\u5236\u793c\u54c1\u3002<\/p><\/blockquote>\n

\u672c\u7ae0\u8282\u7684\u590d\u4e60\u4f5c\u4e1a<\/span>(\u7b54\u6848\u5c31\u5728\u95ee\u9898\u7684\u4e0b\u4e00\u884c\u54e6\uff0c\u7528\u9f20\u6807\u9009\u4e2d\u5373\u53ef\u770b\u5230\u7684~)<\/strong><\/span><\/p>\n

1\uff0e\u7b80\u8ff0iSCSI\u5b58\u50a8\u6280\u672f\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u7684\u4f5c\u7528\u3002<\/p>\n

\u7b54\uff1a<\/strong>iSCSI\u5b58\u50a8\u6280\u672f\u901a\u8fc7\u628a\u786c\u4ef6\u5b58\u50a8\u8bbe\u5907\u4e0eTCP\/IP\u7f51\u7edc\u534f\u8bae\u76f8\u4e92\u7ed3\u5408\uff0c\u4f7f\u5f97\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u4e92\u8054\u7f51\u65b9\u4fbf\u5730\u8bbf\u95ee\u8fdc\u7a0b\u673a\u623f\u63d0\u4f9b\u7684\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\u3002<\/span><\/p>\n

2\uff0e\u5728Linux\u7cfb\u7edf\u4e2d\uff0ciSCSI\u670d\u52a1\u7aef\u548ciSCSI\u5ba2\u6237\u7aef\u6240\u4f7f\u7528\u7684\u670d\u52a1\u7a0b\u5e8f\u5206\u522b\u53eb\u4ec0\u4e48\uff1f<\/p>\n

\u7b54\uff1a<\/strong>iSCSI\u670d\u52a1\u7aef\u7a0b\u5e8f\u4e3atargetd\uff0ciSCSI\u5ba2\u6237\u7aef\u7a0b\u5e8f\u4e3ainitiator\u3002<\/span><\/p>\n

3\uff0e\u5728\u4f7f\u7528targetcli\u547d\u4ee4\u914d\u7f6eiSCSI\u670d\u52a1\u7aef\u914d\u7f6e\u6587\u4ef6\u65f6\uff0cacls\u4e0eportals\u53c2\u6570\u76ee\u5f55\u4e2d\u5206\u522b\u5b58\u653e\u4ec0\u4e48\u5185\u5bb9\uff1f<\/p>\n

\u7b54\uff1a<\/strong>acls\u53c2\u6570\u76ee\u5f55\u7528\u4e8e\u5b58\u653e\u80fd\u591f\u8bbf\u95eeiSCSI\u670d\u52a1\u7aef\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\u7684\u5ba2\u6237\u7aef\u540d\u79f0\uff0cportals\u53c2\u6570\u76ee\u5f55\u7528\u4e8e\u5b9a\u4e49\u7531\u670d\u52a1\u5668\u7684\u54ea\u4e2aIP\u5730\u5740\u5bf9\u5916\u63d0\u4f9b\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\u670d\u52a1\u3002<\/span><\/p>\n

4\uff0eiSCSI\u534f\u8bae\u5360\u7528\u4e86\u670d\u52a1\u5668\u7684\u54ea\u4e2a\u534f\u8bae\u548c\u7aef\u53e3\u53f7\uff1f<\/p>\n

\u7b54\uff1a<\/strong>iSCSI\u534f\u8bae\u5360\u7528\u4e86\u670d\u52a1\u5668TCP\u534f\u8bae\u76843260\u7aef\u53e3\u53f7\u3002<\/span><\/p>\n

5\uff0e\u00a0\u7528\u6237\u5728\u586b\u5199fstab\u8bbe\u5907\u6302\u8f7d\u914d\u7f6e\u6587\u4ef6\u65f6\uff0c\u4e00\u822c\u4f1a\u628a\u8fdc\u7a0b\u5b58\u50a8\u8d44\u6e90\u7684UUID\uff08\u800c\u975e\u8bbe\u5907\u7684\u540d\u79f0\uff09\u586b\u5199\u5230\u914d\u7f6e\u6587\u4ef6\u4e2d\u3002\u8fd9\u662f\u4e3a\u4ec0\u4e48\uff1f<\/p>\n

\u7b54\uff1a<\/strong>\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u8bbe\u5907\u540d\u79f0\u662f\u7531udev\u670d\u52a1\u8fdb\u884c\u7ba1\u7406\u7684\uff0c\u800cudev\u670d\u52a1\u7684\u8bbe\u5907\u547d\u540d\u89c4\u5219\u662f\u7531\u8bbe\u5907\u7c7b\u578b\u53ca\u7cfb\u7edf\u8bc6\u522b\u987a\u5e8f\u7b49\u4fe1\u606f\u5171\u540c\u7ec4\u6210\u7684\u3002\u8003\u8651\u5230\u7f51\u7edc\u5b58\u50a8\u8bbe\u5907\u5177\u6709\u8bc6\u522b\u987a\u5e8f\u4e0d\u7a33\u5b9a\u7684\u7279\u70b9\uff0c\u6240\u4ee5\u4e3a\u4e86\u907f\u514d\u8bc6\u522b\u987a\u5e8f\u6df7\u4e71\u9020\u6210\u7684\u6302\u8f7d\u9519\u8bef\u95ee\u9898\uff0c\u6545\u4f7f\u7528UUID\u8fdb\u884c\u6302\u8f7d\u64cd\u4f5c\u3002<\/span><\/p>\n

6\uff0e\u5728\u4f7f\u7528Windows\u7cfb\u7edf\u6765\u8bbf\u95eeiSCSI\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\u65f6\uff0c\u5b83\u6709\u4e24\u4e2a\u6b65\u9aa4\u4e0eLinux\u7cfb\u7edf\u4e00\u6837\u3002\u8bf7\u8bf4\u660e\u662f\u54ea\u4e24\u4e2a\u6b65\u9aa4\u3002<\/p>\n

\u7b54\uff1a<\/strong>\u626b\u63cf\u5e76\u53d1\u73b0\u670d\u52a1\u7aef\u4e0a\u53ef\u7528\u7684iSCSI\u5171\u4eab\u5b58\u50a8\u8d44\u6e90\uff1b\u9a8c\u8bc1\u767b\u5f55\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

\u7ae0\u8282\u6982\u8ff0\uff1a \u672c\u7ae0\u5f00\u7bc7\u4ecb\u7ecd\u4e86\u8ba1\u7b97\u673a\u786c\u4ef6\u5b58\u50a8\u8bbe\u5907\u7684\u4e0d\u540c\u63a5\u53e3\u6280\u672f\u7684\u4f18\u7f3a\u70b9\uff0c\u5e76\u7531\u6b64\u5207\u5165iSCSI\u6280\u672f\u4e3b\u9898\u7684\u8bb2\u89e3\u3002iSC […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[559],"tags":[],"class_list":["post-181453","post","type-post","status-publish","format-standard","hentry","category-rhel8"],"acf":[],"_links":{"self":[{"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/posts\/181453"}],"collection":[{"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/comments?post=181453"}],"version-history":[{"count":54,"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/posts\/181453\/revisions"}],"predecessor-version":[{"id":237389,"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/posts\/181453\/revisions\/237389"}],"wp:attachment":[{"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/media?parent=181453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/categories?post=181453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/q13zd.cn\/wp-json\/wp\/v2\/tags?post=181453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}