{"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 \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 <\/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 \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 \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 \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 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>\n17.1 iSCSI\u6280\u672f\u4ecb\u7ecd<\/strong><\/span><\/h5>\n
17.2 \u521b\u5efaRAID\u78c1\u76d8\u9635\u5217<\/strong><\/span><\/h5>\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
[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