ceph: 1、ceph常用命令

                ceph中常用命令总结


1 ceph中数据查看


 rados -p metrics ls | grep gnocc

rados -p metrics get gnocchi_00cd3818-05b8-4d6d-9f07-6d36b6814dc4_1519560000.0_mean_900.0_v3 /tmp/object3 
 

# od -x /tmp/object3

0000000 0000 0000 0000 0000 0000 0000 0000 0000*0067000 0100 0000 0000 0000 0000 0001 0000 00000067020 0000 00000067023

2 ceph中pool删除


ceph osd pool delete metrics metrics  --yes-i-really-really-mean-it

3 创建指定pg_number和pgp_number大小的pool


ceph osd pool create metrics 128 128

ceph osd pool create gnocchi 128 128
ceph auth get-or-create client.gnocchi mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=gnocchi'
ceph auth get-or-create client.gnocchi | tee ceph.client.gnocchi.keyring
sudo cp ./ceph.client.gnocchi.keyring /etc/ceph
ceph auth get-key client.gnocchi

4有关po

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值