{"id":688,"date":"2022-03-24T17:51:03","date_gmt":"2022-03-24T09:51:03","guid":{"rendered":"https:\/\/www.luyouli.com\/?p=688"},"modified":"2022-03-24T17:51:03","modified_gmt":"2022-03-24T09:51:03","slug":"rook%e4%bd%bf%e7%94%a8%e7%a3%81%e7%9b%98%e5%8e%9f%e5%a7%8b%e6%a8%a1%e5%bc%8f%e5%87%ba%e7%8e%b0%e7%9a%84%e9%a2%9d%e5%a4%96%e5%88%86%e5%8c%ba","status":"publish","type":"post","link":"https:\/\/www.luyouli.com\/?p=688","title":{"rendered":"rook\u4f7f\u7528\u78c1\u76d8\u539f\u59cb\u6a21\u5f0f\u51fa\u73b0\u7684\u989d\u5916\u5206\u533a"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u7cfb\u7edf\uff1aUbuntu 20.04 LTS<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5185\u6838\uff1a5.4<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f7f\u7528 rook\/ceph:v1.8.6 \u955c\u50cf\u90e8\u7f72\u96c6\u7fa4\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u57284T\u673a\u68b0\u786c\u76d8\u4e0a\u4f7f\u7528 \u78c1\u76d8\u539f\u59cb\u6a21\u5f0f \u90e8\u7f72OSD\uff0c\u4f1a\u989d\u5916\u521b\u5efa\u4e00\u4e2a\u5927\u5c0f\u4e3a48G\u7684\u5206\u533a\uff0c\u4e14block.db\u5206\u533a\uff08metadataDevice\uff09\u4e0d\u89c1\u4e86\uff0c\u53ea\u6709block\u5206\u533a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"349\" height=\"410\" src=\"https:\/\/www.luyouli.com\/wp-content\/uploads\/2022\/03\/1.png\" alt=\"\" class=\"wp-image-689\"\/><figcaption>\u51fa\u73b0\u989d\u5916\u768448G\u5206\u533a<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1296\" height=\"225\" src=\"https:\/\/www.luyouli.com\/wp-content\/uploads\/2022\/03\/2.png\" alt=\"\" class=\"wp-image-690\"\/><figcaption>block\u548cblock.db\u4e24\u4e2a\u5206\u533a<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u7ecf\u8fc7\u5728github\u5b98\u7f51\u5404\u79cd\u67e5\u627e\uff0c\u6700\u7ec8\u627e\u5230\u4e86\u539f\u56e0\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Even if we can use raw mode, do NOT use raw mode on disks. Ceph bluestore disks can sometimes appear as though they have &#8220;phantom&#8221; Atari (AHDI) partitions created on them when they don&#8217;t in reality. This is due to a series of bugs in the Linux kernel when it is built with Atari support enabled. This behavior does not appear for raw mode OSDs on partitions, and we need the raw mode to create partition-based OSDs. We cannot merely skip creating OSDs on &#8220;phantom&#8221; partitions due to a bug in\u00a0ceph-volume raw inventory which reports only the phantom partitions (and malformed OSD info) when they exist and ignores the original (correct) OSDs created on the raw disk.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5373\u4f7f\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 raw \u6a21\u5f0f\uff0c\u4e5f\u4e0d\u8981\u5728\u78c1\u76d8\u4e0a\u4f7f\u7528 raw \u6a21\u5f0f\u3002 Ceph bluestore \u78c1\u76d8\u6709\u65f6\u770b\u8d77\u6765\u597d\u50cf\u5728\u5176\u4e0a\u521b\u5efa\u4e86\u201c\u5e7b\u50cf\u201dAtari (AHDI) \u5206\u533a\uff0c\u800c\u5b9e\u9645\u4e0a\u5b83\u4eec\u5e76\u6ca1\u6709\u3002 \u8fd9\u662f\u7531\u4e8e\u5728\u542f\u7528 Atari \u652f\u6301\u7684\u60c5\u51b5\u4e0b\u6784\u5efa Linux \u5185\u6838\u65f6\u51fa\u73b0\u7684\u4e00\u7cfb\u5217\u9519\u8bef\u3002 \u8fd9\u79cd\u884c\u4e3a\u4e0d\u4f1a\u51fa\u73b0\u5728\u5206\u533a\u4e0a\u7684\u539f\u59cb\u6a21\u5f0f OSD \u4e2d\uff0c\u6211\u4eec\u9700\u8981\u539f\u59cb\u6a21\u5f0f\u6765\u521b\u5efa\u57fa\u4e8e\u5206\u533a\u7684 OSD\u3002 \u7531\u4e8e ceph-volume \u539f\u59cb\u6e05\u5355\u4e2d\u7684\u4e00\u4e2a\u9519\u8bef\uff0c\u6211\u4eec\u4e0d\u80fd\u4ec5\u4ec5\u8df3\u8fc7\u5728\u201c\u5e7b\u50cf\u201d\u5206\u533a\u4e0a\u521b\u5efa OSD\uff0c\u8be5\u9519\u8bef\u4ec5\u5728\u5e7b\u50cf\u5206\u533a\uff08\u548c\u683c\u5f0f\u9519\u8bef\u7684 OSD \u4fe1\u606f\uff09\u5b58\u5728\u65f6\u62a5\u544a\uff0c\u800c\u5ffd\u7565\u5728\u539f\u59cb\u78c1\u76d8\u4e0a\u521b\u5efa\u7684\u539f\u59cb\uff08\u6b63\u786e\uff09OSD\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># cat \/boot\/config-5.4.0-10* | grep -i ATARI\nCONFIG_ATARI_PARTITION=y\nCONFIG_ATARI_PARTITION=y<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"581\" height=\"80\" src=\"https:\/\/www.luyouli.com\/wp-content\/uploads\/2022\/03\/3.png\" alt=\"\" class=\"wp-image-691\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u662f\u7531\u4e8e\u5185\u6838\u7684BUG\u5bfc\u81f4\u591a\u4e86\u4e00\u4e2aACHI\u5206\u533a\uff0c\u867d\u7136\u5b98\u65b9\u57282021\u5e74\u7684 #7940 \u91cc\u9762\u4fee\u590d\u4e86\u8fd9\u4e2a\u95ee\u9898\uff0c\u4f46\u662f\u6211\u5728\u6d4b\u8bd5\u73af\u5883\u91cd\u590d\u8fdb\u884c\u591a\u6b21\u90e8\u7f72\u64cd\u4f5c\u4e4b\u540e\u590d\u73b0\u4e86\uff0c\u7136\u540e\u5c31\u65e0\u6cd5\u6062\u590d\u56de\u53bb\u4e86\uff0cWTF<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u5c1d\u8bd5\u4e86\u4e0d\u7528dd\uff0c\u53ea\u7528sgdisk\u683c\u5f0f\u5316HDD\u76d8\uff0c\u4e5f\u8bd5\u8fc7\u624b\u52a8\u5c06\u6bcf\u4e2a\u76d8\u683c\u5f0f\u5316\u6210GPT\u683c\u5f0f\u5e76\u53ea\u5206\u4e00\u4e2a\u533a\uff0c\u90fd\u4e0d\u884c<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u53c2\u8003\u4e86\u5927\u91cf\u7684\u5b98\u65b9\u6587\u6863\u4e4b\u540e\uff0c\u6700\u7ec8\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f03\u7528v1.8.6\uff0c\u9009\u62e9\u4f7f\u7528v1.8.7<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9644\u4e0a\u4e25\u91cd\u53c2\u8003\u7684\u5b98\u65b9\u6587\u6863\u5730\u5740\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/rook\/rook\/issues\/7940\">https:\/\/github.com\/rook\/rook\/issues\/7940<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/rook\/rook\/pull\/8319\">https:\/\/github.com\/rook\/rook\/pull\/8319<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/ceph\/ceph\/pull\/42469\">https:\/\/github.com\/ceph\/ceph\/pull\/42469<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7cfb\u7edf\uff1aUbuntu 20.04 LTS \u5185\u6838\uff1a5.4 \u4f7f\u7528 rook\/ceph:v1.8.6 \u955c\u50cf\u90e8\u7f72\u96c6\u7fa4\u7684\u65f6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-688","post","type-post","status-publish","format-standard","hentry","category-kubernetes"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"views":2577,"_links":{"self":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts\/688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=688"}],"version-history":[{"count":2,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts\/688\/revisions"}],"predecessor-version":[{"id":693,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts\/688\/revisions\/693"}],"wp:attachment":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}