{"id":739,"date":"2017-01-07T08:00:51","date_gmt":"2017-01-07T08:00:51","guid":{"rendered":"http:\/\/www.selinuxplus.com\/?p=739"},"modified":"2017-01-07T08:01:36","modified_gmt":"2017-01-07T08:01:36","slug":"ceph%e6%94%af%e6%8c%81zfs","status":"publish","type":"post","link":"http:\/\/www.selinuxplus.com\/?p=739","title":{"rendered":"ceph\u652f\u6301zfs"},"content":{"rendered":"<p>ceph \u652f\u6301zfs\u7684\u64cd\u4f5c<br \/>\n\u67e5\u770b\u96c6\u7fa4\u7684\u72b6\u6001\uff1a<\/p>\n<pre class=\"lang:default decode:true \" >    cluster 042f4922-d19f-4e00-8025-7f7b0ff2aa9a\r\n     health HEALTH_WARN\r\n            too many PGs per OSD (1568 &gt; max 300)\r\n     monmap e1: 3 mons at {vm181=192.168.19.x:6789\/0,vm182=192.168.19.x:6789\/0,vm183=192.168.19.x:6789\/0}\r\n            election epoch 34, quorum 0,1,2 vm181,vm182,vm183\r\n      fsmap e6: 1\/1\/1 up {0=vm183=up:active}, 1 up:standby\r\n     osdmap e80: 6 osds: 6 up, 6 in\r\n            flags sortbitwise\r\n      pgmap v657: 3136 pgs, 18 pools, 3704 bytes data, 191 objects\r\n            31212 MB used, 228 GB \/ 259 GB avail\r\n                3136 active+clean<\/pre>\n<p>\u67e5\u770bosd tree<\/p>\n<pre class=\"lang:default decode:true \" >[root@vm181 ~]# ceph osd tree\r\nID WEIGHT  TYPE NAME          UP\/DOWN REWEIGHT PRIMARY-AFFINITY \r\n-3 6.00000 root hdd                                             \r\n-2 2.00000     host vm181_hdd                                   \r\n 0 1.00000         osd.0           up  1.00000          1.00000 \r\n 1 1.00000         osd.1           up  1.00000          1.00000 \r\n-4 2.00000     host vm182_hdd                                   \r\n 2 1.00000         osd.2           up  1.00000          1.00000 \r\n 3 1.00000         osd.3           up  1.00000          1.00000 \r\n-5 2.00000     host vm183_hdd                                   \r\n 4 1.00000         osd.4           up  1.00000          1.00000 \r\n 5 1.00000         osd.5           up  1.00000          1.00000 \r\n-1       0 root default  <\/pre>\n<p>\u67e5\u770b\u914d\u7f6e\u6587\u4ef6<\/p>\n<pre class=\"lang:default decode:true \" >[osd.1]\r\nhost = vm181\r\njournal dio = false\r\nfilestore zfs snapshot = true\r\nosd journal = \/var\/lib\/ceph\/osd\/ucsm-1\/journal<\/pre>\n<p>\u67e5\u770bzfs pool<\/p>\n<pre class=\"lang:default decode:true \" >  pool: osd\r\n state: ONLINE\r\n  scan: none requested\r\nconfig:\r\n\r\n\tNAME        STATE     READ WRITE CKSUM\r\n\tosd         ONLINE       0     0     0\r\n\t  vda       ONLINE     <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>ceph \u652f\u6301zfs\u7684\u64cd\u4f5c \u67e5\u770b\u96c6\u7fa4\u7684\u72b6\u6001\uff1a cl&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[84],"tags":[180,163],"_links":{"self":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/739"}],"collection":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=739"}],"version-history":[{"count":2,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/739\/revisions"}],"predecessor-version":[{"id":741,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/739\/revisions\/741"}],"wp:attachment":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=739"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}