{"id":300,"date":"2019-09-07T16:28:44","date_gmt":"2019-09-07T08:28:44","guid":{"rendered":"https:\/\/aichh.com\/?p=300"},"modified":"2019-09-07T16:28:44","modified_gmt":"2019-09-07T08:28:44","slug":"esxi%e7%a1%ac%e7%9b%98rdm%e7%9b%b4%e9%80%9a","status":"publish","type":"post","link":"https:\/\/aichh.com\/300.html","title":{"rendered":"ESXI\u786c\u76d8RDM\u76f4\u901a"},"content":{"rendered":"<!--wp-compress-html--><!--wp-compress-html no compression--><ul class=\"b3-solo-list\">\n<li class=\"b3-solo-list-h3\"><a href=\"http:\/\/www.rainsun.me\/articles\/2017\/01\/16\/1484576132064.html#b3_solo_h3_0\">\u524d\u63d0<\/a><\/li>\n<li class=\"b3-solo-list-h3\"><a href=\"http:\/\/www.rainsun.me\/articles\/2017\/01\/16\/1484576132064.html#b3_solo_h3_1\">\u521b\u5efaRDM\u865a\u62df\u78c1\u76d8<\/a><\/li>\n<li class=\"b3-solo-list-h3\"><a href=\"http:\/\/www.rainsun.me\/articles\/2017\/01\/16\/1484576132064.html#b3_solo_h3_2\">\u5220\u9664\u7269\u7406\u78c1\u76d8\u5206\u533a\u65b9\u6cd51<\/a><\/li>\n<li class=\"b3-solo-list-h3\"><a href=\"http:\/\/www.rainsun.me\/articles\/2017\/01\/16\/1484576132064.html#b3_solo_h3_3\">\u5220\u9664\u7269\u7406\u78c1\u76d8\u5206\u533a\u65b9\u6cd52<\/a><\/li>\n<li class=\"b3-solo-list-h3\"><a href=\"http:\/\/www.rainsun.me\/articles\/2017\/01\/16\/1484576132064.html#b3_solo_h3_4\">\u63d0\u793a\uff1a<\/a><\/li>\n<\/ul>\n<h3>\u524d\u63d0<\/h3>\n<p>ESXi\u652f\u6301\u786c\u4ef6\u76f4\u901a\uff08\u9700\u8981CPU\u548c\u4e3b\u677f\u90fd\u652f\u6301VT-d\uff09\uff0c\u53ef\u4ee5\u5c06PCI\u7684\u786c\u4ef6\u76f4\u63a5\u914d\u7f6e\u7ed9\u865a\u62df\u673a\u6765\u4f7f\u7528\u3002\u4f46\u4e5f\u4ec5\u9650\u4e8ePCI\u8bbe\u5907\uff0c\u5176\u4ed6\u76f4\u63a5\u63a5\u5728\u4e3b\u677f\u7684\u78c1\u76d8\u3001USB\u8bbe\u5907\u3001CPU\u5185\u7f6e\u663e\u5361\u7b49\u90fd\u662f\u4e0d\u80fd\u88ab\u76f4\u901a\u7684\u3002\u5982\u679c\u5e0c\u671b\u5c06\u67d0\u4e2a\u78c1\u76d8\u4e5f\u76f4\u901a\u7ed9\u865a\u62df\u673a\uff0c\u6709\u4e24\u79cd\u529e\u6cd5\uff1a<\/p>\n<ul>\n<li>\u6dfb\u7f6e\u4e00\u5757PCI\u7684\u9635\u5217\u5361\uff0c\u5c06\u5176\u76f4\u901a\u7ed9\u865a\u62df\u673a\uff0c\u6240\u6709\u9700\u8981\u76f4\u901a\u7684\u78c1\u76d8\u90fd\u63a5\u5728\u8fd9\u4e2a\u9635\u5217\u5361\u4e0a\u9762\uff1b<\/li>\n<li>\u521b\u5efaRDM\u865a\u62df\u78c1\u76d8\uff1b<\/li>\n<\/ul>\n<h3>\u521b\u5efaRDM\u865a\u62df\u78c1\u76d8<\/h3>\n<p>\u901a\u8fc7SSH\u767b\u5f55ESXi\uff0c\u83b7\u53d6\u78c1\u76d8\u8bbe\u5907\u6807\u8bc6\u7b26\uff1a<\/p>\n<pre>ls -l \/dev\/disks<\/pre>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre>naa.200049454505080f\r\nnaa.200049454505080f:1\r\nnaa.200049454505080f:5\r\nnaa.200049454505080f:6\r\nnaa.200049454505080f:7\r\nnaa.200049454505080f:8\r\nnaa.200049454505080f:9\r\nt10.ATA_____HGST_HTS541010A9E680__________________________JD1050CCG3XJZK\r\nt10.ATA_____LITEONIT_LMT2D256M3M_____________________TW0V6PN8550852CJ1446\r\nt10.ATA_____LITEONIT_LMT2D256M3M_____________________TW0V6PN8550852CJ1446:4\r\nvml.01000000002020202020204a443130353043434733584a5a4b484753542048\r\nvml.01000000005457305636504e38353530383532434a313434364c4954454f4e\r\nvml.01000000005457305636504e38353530383532434a313434364c4954454f4e:4\r\nvml.0200000000200049454505080f4d6173732053\r\nvml.0200000000200049454505080f4d6173732053:1\r\nvml.0200000000200049454505080f4d6173732053:5\r\nvml.0200000000200049454505080f4d6173732053:6\r\nvml.0200000000200049454505080f4d6173732053:7\r\nvml.0200000000200049454505080f4d6173732053:8\r\nvml.0200000000200049454505080f4d6173732053:9\r\n<\/pre>\n<p>\u5176\u4e2d\u5192\u53f7\u540e\u7684\u6570\u5b57\u4e3a\u786c\u76d8\u5206\u533a\u3002\u590d\u5236\u4e0d\u5e26\u6570\u5b57\u7684\u6807\u8bc6\u7b26\uff0c\u5982\uff1at10.ATA_____HGST_HTS541010A9E680__________________________JD1050CCG3XJZK<\/p>\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>vmkfstools -z \/vmfs\/devices\/disks\/&lt;\u76f4\u901a\u786c\u76d8\u7684\u6807\u8bc6\u7b26&gt; \/vmfs\/volumes\/&lt;\u4fdd\u5b58vmdk\u7684\u786c\u76d8\u6807\u8bc6\u7b26&gt;\/&lt;VMDK\u540d\u5b57&gt;.vmdk<\/pre>\n<pre>\u4f8b\uff1a\r\n<\/pre>\n<pre><\/pre>\n<pre><\/pre>\n<pre class=\"prettyprint lang-js prettyprinted\"><span class=\"pln\">vmkfstools <\/span><span class=\"pun\">-<\/span><span class=\"pln\">z <\/span><span class=\"pun\">\/<\/span><span class=\"pln\">vmfs<\/span><span class=\"pun\">\/<\/span><span class=\"pln\">devices<\/span><span class=\"pun\">\/<\/span><span class=\"pln\">disks<\/span><span class=\"pun\">\/<\/span><span class=\"pln\">t10<\/span><span class=\"pun\">.<\/span><span class=\"pln\">ATA_____HGST_HTS541010A9E680__________________________JD1050CCG3XJZK \r\n<\/span><span class=\"pun\">\/<\/span><span class=\"pln\">vmfs<\/span><span class=\"pun\">\/<\/span><span class=\"pln\">volumes<\/span><span class=\"pun\">\/<\/span><span class=\"lit\">5851c14c<\/span><span class=\"pun\">-<\/span><span class=\"lit\">7f3006b5<\/span><span class=\"pun\">-<\/span><span class=\"lit\">33e4<\/span><span class=\"pun\">-<\/span><span class=\"lit\">000ec4ce7958<\/span><span class=\"pun\">\/<\/span><span class=\"typ\">DSMdisk<\/span><span class=\"pun\">.<\/span><span class=\"pln\">vmdk<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p>\u6267\u884c\u547d\u4ee4\u540e\u5c06\u4e3a\u8be5\u786c\u76d8\u521b\u5efaRDM\u76f4\u901a\u7684vmdk\uff0c\u7136\u540e\u5728\u865a\u62df\u673a\u4e2d\u6dfb\u52a0\u786c\u76d8\u9009\u62e9\u6240\u521b\u5efa\u7684vmdk\u5373\u53ef\u3002<\/p>\n<p>===========================================================================================<\/p>\n<p>\u5728\u521b\u5efaRDM\u7684\u65f6\u5019\uff0c\u5982\u679c\u76ee\u6807\u786c\u76d8\u4e0a\u9762\u6709ESXi\u80fd\u8bc6\u522b\u7684\u5206\u533a\uff0c\u53ef\u80fd\u5bfc\u81f4vmkfstools\u6267\u884c\u5931\u8d25\u3002\u9700\u8981\u5728\u786e\u4fdd\u91cd\u8981\u6570\u636e\u5df2\u7ecf\u5907\u4efd\u7684\u60c5\u51b5\u4e0b\uff0c\u5220\u9664\u76ee\u6807\u78c1\u76d8\u4e0a\u7684\u5206\u533a\u3002<\/p>\n<h3>\u5220\u9664\u7269\u7406\u78c1\u76d8\u5206\u533a\u65b9\u6cd51<\/h3>\n<blockquote><p>\u4ee5\u4e0b\u64cd\u4f5c\u6709\u6570\u636e\u635f\u574f\u7684\u98ce\u9669<\/p><\/blockquote>\n<p>\u663e\u793a\u73b0\u6709\u5206\u533a\uff1a<\/p>\n<pre>partedUtil get \/dev\/disks\/&lt;\u786c\u76d8\u6807\u8bc6\u7b26&gt;<\/pre>\n<p>\u5c06\u770b\u5230\u7c7b\u4f3c\u8f93\u51fa\uff1a<\/p>\n<pre>1 2048 4982527 253 0\r\n2 4982528 9176831 253 0\r\n3 9437184 3907015007 15 0\r\n5 9453280 3906822239 253 0<\/pre>\n<p>\u5176\u4e2d\u7b2c\u4e00\u5217\u4e3a\u5206\u533a\u7f16\u53f7\uff0c\u7136\u540e\u901a\u8fc7\uff1a<\/p>\n<pre>partedUtil delete \/dev\/disks\/&lt;\u786c\u76d8\u6807\u8bc6\u7b26&gt; &lt;\u5206\u533a\u7f16\u53f7&gt;<\/pre>\n<p>\u5220\u9664\u6240\u6709\u5206\u533a\u3002<\/p>\n<p>\u5982\u679c\u5728\u6267\u884c\u5220\u9664\u5206\u533a\u64cd\u4f5c\u7684\u65f6\u5019\uff0c\u51fa\u73b0\u9519\u8befError: Read-only file system during write on ...\uff0c\u5728\u5220\u9664\u4e4b\u524d\uff0c\u6267\u884c\uff1a<\/p>\n<pre>esxcli system coredump partition set --enable false<\/pre>\n<pre><\/pre>\n<h3>\u5220\u9664\u7269\u7406\u78c1\u76d8\u5206\u533a\u65b9\u6cd52<\/h3>\n<p>\u5982\u679c\u8bd5\u56fe\u7528\u00a0partedUtil delete \u547d\u4ee4\u5220\u9664\u5206\u533a\uff0c\u5931\u8d25\u3002<\/p>\n<p>\u53ef\u4ee5\u901a\u8fc7\u66f4\u6539\u78c1\u76d8\u7684\u5377\u6807\uff0c\u53ef\u4ee5\u7834\u574f\u78c1\u76d8\u7684\u6240\u6709\u5206\u533a\u3002\u6240\u4ee5\u8fd9\u91cc\u7528\u00a0partedUtil mklabel \u547d\u4ee4\u628a\u78c1\u76d8\u5377\u6807\u6539\u4e3a msdos \u3002<\/p>\n<h3>\u63d0\u793a\uff1a<\/h3>\n<p>\u5982\u679c\u4f7f\u7528\u5230\u4e0d\u6b63\u786e\u7684\u8def\u5f84\u5982 \/dev\/disks\/ vmkfstools -z \/dev\/disks\/naa.6c81f660f45937001bd9044a07056f67 \u00a0\/vmfs\/volumes\/datastore1\/db600gbhdd.vmdk\u00a0 \u9519\u8bef\u4fe1\u606f Failed to create virtual disk: The specified device is not a valid physical disk device (20).<\/p>\n<!--wp-compress-html no compression--><!--wp-compress-html-->","protected":false},"excerpt":{"rendered":"\u524d\u63d0 \u521b\u5efaRDM\u865a\u62df\u78c1\u76d8 \u5220\u9664\u7269\u7406\u78c1\u76d8\u5206\u533a\u65b9\u6cd51 \u5220\u9664\u7269\u7406\u78c1\u76d8\u5206\u533a\u65b9\u6cd52 \u63d0\u793a\uff1a \u524d\u63d0 ESXi\u652f\u6301\u786c\u4ef6\u76f4\u901a\uff08\u9700\u8981CPU\u548c\u4e3b\u677f\u90fd\u652f\u6301VT-d\uff09\uff0c\u53ef\u4ee5\u5c06PCI\u7684\u786c\u4ef6\u76f4\u63a5\u914d\u7f6e\u7ed9\u865a\u62df\u673a\u6765\u4f7f\u7528\u3002\u4f46\u4e5f\u4ec5\u9650\u4e8ePC \u00b7\u00b7\u00b7","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-300","post","type-post","status-publish","format-standard","hentry","category-jiaocheng"],"views":1926,"_links":{"self":[{"href":"https:\/\/aichh.com\/api\/wp\/v2\/posts\/300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aichh.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aichh.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aichh.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aichh.com\/api\/wp\/v2\/comments?post=300"}],"version-history":[{"count":1,"href":"https:\/\/aichh.com\/api\/wp\/v2\/posts\/300\/revisions"}],"predecessor-version":[{"id":301,"href":"https:\/\/aichh.com\/api\/wp\/v2\/posts\/300\/revisions\/301"}],"wp:attachment":[{"href":"https:\/\/aichh.com\/api\/wp\/v2\/media?parent=300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aichh.com\/api\/wp\/v2\/categories?post=300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aichh.com\/api\/wp\/v2\/tags?post=300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}