码迷,mamicode.com
首页 > 其他好文 > 详细

ceph pool 管理

时间:2017-12-19 15:06:23      阅读:669      评论:0      收藏:0      [点我收藏+]

标签:let   ceph   pos   cts   str   abs   war   count   res   

 

创建池
[root@node1 ~]# ceph osd pool create monitor 128
pool monitor created
查看池
[root@node1 ~]# ceph osd pool ls
rbd
zstack
bak-t-2ea1196a7ada4fa0adc0f19177a1c101
pri-c-601e39f80c6a4659a223ddcfb1f4c929
pri-v-r-601e39f80c6a4659a223ddcfb1f4c929
pri-v-d-601e39f80c6a4659a223ddcfb1f4c929
monitor
上传镜像
[root@node1 ~]# qemu-img convert -p -f qcow2 -O raw openstack-centos7.qcow2 rbd:monitor/test1.img
    (100.00/100%)

查看池中的镜像
[root@node1 ~]# rbd ls zstack
mnvm.img
test.img
test1.img
查看镜像信息
[root@node1 ~]# rbd info zstack/test.img
rbd image test.img:
    size 10240 MB in 2560 objects
    order 22 (4096 kB objects)
    block_name_prefix: rbd_data.3bf902ae8944a
    format: 2
    features: layering, striping
    flags: 
    stripe unit: 4096 kB
    stripe count: 1
删除镜像信息
[root@node1 ~]# rbd rm zstack/test.img
Removing image: 100% complete...done.
[root@node1 ~]# 
删除pool 
[root@node1 ~]# ceph osd pool delete monitor --yes-i-really-really-mean-it
Error EPERM: WARNING: this will *PERMANENTLY DESTROY* all data stored in pool monitor.  If you are *ABSOLUTELY CERTAIN* that is what you want, pass the pool name *twice*, followed by --yes-i-really-really-mean-it.

[root@node1 ~]# ceph osd pool delete monitor monitor --yes-i-really-really-mean-it
pool monitor removed
确认
[root@node1 ~]# ceph osd pool ls
rbd
zstack
bak-t-2ea1196a7ada4fa0adc0f19177a1c101
pri-c-601e39f80c6a4659a223ddcfb1f4c929
pri-v-r-601e39f80c6a4659a223ddcfb1f4c929
pri-v-d-601e39f80c6a4659a223ddcfb1f4c929
[root@node1 ~]# 

 

ceph pool 管理

标签:let   ceph   pos   cts   str   abs   war   count   res   

原文地址:http://www.cnblogs.com/sxwen/p/8064946.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!