{"id":1525,"date":"2014-08-23T06:48:30","date_gmt":"2014-08-23T11:48:30","guid":{"rendered":"http:\/\/www.shainmiley.com\/wordpress\/?p=1525"},"modified":"2014-08-23T06:48:30","modified_gmt":"2014-08-23T11:48:30","slug":"ceph-cheatsheet","status":"publish","type":"post","link":"https:\/\/www.shainmiley.com\/wordpress\/2014\/08\/23\/ceph-cheatsheet\/","title":{"rendered":"Ceph cheatsheet"},"content":{"rendered":"<p>Here is a list of Ceph commands that we tend to use on a regular basis:<\/p>\n<p>a)Display cluster status:<br \/>\n&#8216;ceph -s&#8217;<\/p>\n<p>b)Display running cluster status:<br \/>\n&#8216;ceph -w&#8217;<\/p>\n<p>c)Display pool usage stats:<br \/>\n&#8216;ceph df&#8217;<\/p>\n<p>d)List pools:<br \/>\n&#8216;ceph osd lspools&#8217;<\/p>\n<p>e)Display per pool placement group and replication levels:<br \/>\n&#8216;ceph osd dump | grep &#8216;replicated size&#8217;<\/p>\n<p>f)Set pool placement group sizes:<br \/>\n&#8216;ceph osd pool set pool_name pg_num 512&#8217;<br \/>\n&#8216;ceph osd pool set pool_name pgp_num 512&#8217;<\/p>\n<p>g)Display rbd images in a pool:<br \/>\n&#8216;rbd -p pool_name list&#8217;<\/p>\n<p>h)Create rbd snapshot:<br \/>\n&#8216;rbd &#8211;pool rbd snap create pool_name\/image_name@snap_name&#8217;<\/p>\n<p>i)Display rbd snapshots:<br \/>\n&#8216;rbd snap ls pool_name\/image_name&#8217;<\/p>\n<p>j)Display which images are mapped via kernel:<br \/>\n&#8216;rbd showmapped&#8217;<\/p>\n<p>k)Get rados statistics:<br \/>\n&#8216;rados df&#8217;<\/p>\n<p>l)List pieces of pool using rados:<br \/>\n&#8216;rados -p pool_name\u00c2\u00a0 ls&#8217;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a list of Ceph commands that we tend to use on a regular basis: a)Display cluster status: &#8216;ceph -s&#8217; b)Display running cluster status: &#8216;ceph -w&#8217; c)Display pool usage stats: &#8216;ceph df&#8217; d)List pools: &#8216;ceph osd lspools&#8217; e)Display per pool placement group and replication levels: &#8216;ceph osd dump | grep &#8216;replicated size&#8217; f)Set pool [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[35],"tags":[],"_links":{"self":[{"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/posts\/1525"}],"collection":[{"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1525"}],"version-history":[{"count":3,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/posts\/1525\/revisions"}],"predecessor-version":[{"id":1590,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/posts\/1525\/revisions\/1590"}],"wp:attachment":[{"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shainmiley.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}