ceph
pyrl
存储行业的小学生.
展开
-
ceph(luminous)-Bluestore,更换ssd和wal位置(不改变大小)
简介随着业务的增长,osd中数据很多,如果db或者wal设备需要更换,删除osd并且新建osd会引发大量迁移。本文主要介绍需要更换db或者wal设备时(可能由于需要更换其他速度更快的ssd;可能时这个db的部分分区损坏,但是db或者wal分区完好,所以需要更换),如何只更换db或者wal设备,减少数据迁移(不允许db或者wal设备容量变大或者变小).具体步骤如下:设置osd noout ...原创 2018-10-15 16:05:29 · 4757 阅读 · 0 评论 -
ceph(luminous)-Bluestore,查看对象信息
本文主要介绍了通过ceph-objectstore-tool和ceph-dencoder友好的展示出存储池对象中的一些基本信息.原创 2018-10-10 14:48:46 · 3188 阅读 · 0 评论 -
ceph(luminous)-Bluestore ceph-bluestore-tool工具
ceph-bluestore-tool工具的简介[root@test-1 /]# ceph-bluestore-tool --helpAll options:Options: -h [ --help ] produce help message --path arg bluestore path //osd的路径 --out-dir a...原创 2018-10-08 17:49:34 · 2798 阅读 · 0 评论 -
ceph(luminous)-Bluestore,ceph-kvstore-tool工具说明
前言此工具主要是作用是针对ceph中各种kv存储进行操作和展示的工具.先看一下help列表[root@test-1 ceph]# ceph-kvstore-tool --helpUsage: ceph-kvstore-tool <leveldb|rocksdb|bluestore-kv> <store path> command [args...]Commands...原创 2018-10-23 13:53:24 · 1683 阅读 · 0 评论 -
ceph(luminous)-Bluestore,ceph-objectstoe-tool工具
Allowed options: --help produce help message --type arg Arg is one of [bluestore, filestore (default), memstore] --data-path a...原创 2018-10-23 16:36:50 · 1056 阅读 · 0 评论 -
ceph小细节之chooseleaf_stable--减少pg迁移
前言看代码的时候无意间看到了这个参数,查了官方的文档,说明是这样的:chooseleaf_stable: Whether a recursive chooseleaf attempt will use a better value for an inner loop that greatly reduces the number of mapping changes when an OSD i...原创 2018-12-28 18:39:26 · 941 阅读 · 0 评论 -
ceph(luminous)-基于pgupmap单个pool数据均衡方案
原理由于ceph分片的特性,使得数据分配均衡就可以认为是pool中osd的pg数目分布大致均衡.pgupmap作为ceph12新加入的特性,在osdmap中记录了某个pg的单独映射,客户端计算完crushmap后需要遍历upmap,修改pg和osd的对应关系才能找到正确对应的osd,12版本 新加入的balancer的一个方案就是基于upmap进行均衡的,不过balancer是调节全部的po...原创 2018-12-18 18:07:16 · 2361 阅读 · 0 评论 -
rgw分片上传对象组织形式
定位rgw分片上传的对象version:ceph13.2.4确定分片上传的全部对象利用s3cmd向mpbucket01上传了一个名为2.txt的对象(210M)1.首先确定bucket的bucketindex[root@sns-nvceph01 ~]# radosgw-admin bucket stats | grep mpbucket01 -A 50 "bucket":...原创 2019-04-28 11:46:58 · 1842 阅读 · 0 评论 -
rgw分片上传/下载分析
rgw分片上传/下载分析上传1.客户端发送httppost请求,请求uploadid.2.客户端收到uploadid后,按照上传不同的分片,url需要带上uploadid和分片数(partnumber).3.全部分片上传完成后发送http-post请求,标记上传完成.1.请求上传[root@sns-nvceph01 ~]# s3cmd put 111.txt s3://mpbuc...原创 2019-04-29 11:27:20 · 1677 阅读 · 5 评论