1、侠义讲,对象存储就是云存储
2、分布式文件系统:CephFS
3、每天晚上10点到早上7点Scrub
ceph tell osd.* injectargs "--osd-scrub-begin-hour 22"
ceph tell osd.* injectargs "--osd-scrub-end-hour 7"
vi /etc/ceph/ceph.conf
[osd]
osd_scrub_begin_hour = 22
osd_scrub_end_hour = 7
4、ceph数据重建配置策略
//提升recovery的优先级,降低client的优先级
ceph tell osd.* injectargs "--osd-recovery-op-priority 63"
ceph tell osd.* injectargs "--osd-client-op-priority 3"
//等recovery完成,
ceph tell osd.* injectargs "--osd-recovery-op-priority 3"
ceph tell osd.* injectargs "--osd-client-op-priority 63"
//永久性修改优先级 /etc/ceph/ceph.conf
![](https://img.haomeiwen.com/i9967595/074d71df3887d4ea.png)
5、禁止数据重建和迁移、开启数据重建和迁移
ceph osd set norebalance
ceph osd set norecovery
ceph osd set nobackfill
////启用
ceph osd unset norebalance
ceph osd unset norecovery
ceph osd unset nobackfill
6、查看、管理full和near_full告警
查询:ceph --admin-daemon /run/ceph/ceph-mon.yourmonip.asok config show|grep full_ratio
ceph --admin-daemon /run/ceph/ceph-osd.yourosdip.asok config show|grep full
//遇见full,后处理
ceph osd pause
ceph tell mon.* injectargs "--mon-osd-full-ratio 0.96"
ceph tell osd.* injectargs "--mon-osd-full-ratio 0.96"
ceph pg set_full_ratio 0.96
ceph osd unpause
7、增量备份
rdb export rdb/test_img Time1_Data_img
![](https://img.haomeiwen.com/i9967595/05a3a13cc0486142.png)
![](https://img.haomeiwen.com/i9967595/c8e62e05518336eb.png)
![](https://img.haomeiwen.com/i9967595/5cb844ecb07cb229.png)
![](https://img.haomeiwen.com/i9967595/8a4a64247597121c.png)
![](https://img.haomeiwen.com/i9967595/353a0e25c6306cbf.png)
8、查找image被多少客户端连接,将这些客户端加入黑名单
rdb status test_img
rdb info test_img
rdb image test_img
rados listwatchers -p rdb rdb_header.xxxx watcher=xx client.xxx cookie=xxx
ceph osd blacklist add xxx blacklisting xx until xx
9、ceph对接openstack
![](https://img.haomeiwen.com/i9967595/6d666f1849321a51.png)
![](https://img.haomeiwen.com/i9967595/b35acbeed3af05bc.png)
![](https://img.haomeiwen.com/i9967595/5327dc935a7fdda1.png)
![](https://img.haomeiwen.com/i9967595/77bacfcbed159c1c.png)
![](https://img.haomeiwen.com/i9967595/0df5a277ea1c58dd.png)
![](https://img.haomeiwen.com/i9967595/82bb7a553ea747fa.png)
![](https://img.haomeiwen.com/i9967595/41f79dc27c553c31.png)
![](https://img.haomeiwen.com/i9967595/9980a68340508581.png)
![](https://img.haomeiwen.com/i9967595/41c5c9065f067d6c.png)
![](https://img.haomeiwen.com/i9967595/a5122b98f310a47b.png)
![](https://img.haomeiwen.com/i9967595/08d66cf99e46cd36.png)
![](https://img.haomeiwen.com/i9967595/7210c59754c80c7b.png)
![](https://img.haomeiwen.com/i9967595/bd1921febdd10d17.png)
网友评论