当前位置:网站首页>ceph创建存储池,映射,删除练习
ceph创建存储池,映射,删除练习
2022-08-09 04:14:00 【量子波动猫】
1.创建一个存储池,存储池的名称为testpool
2.上传一个对象到testpool存储池,对象的名称为testobject
3.创建一个RBD的image,image名称为testimage,大小为100M
4.将testimage映射为块设备
5.删除testpool存储池
[[email protected] ~]# ceph osd pool create testpool 64
[[email protected] ~]# ceph osd pool application enable testpool testpool
[[email protected] ~]# rados put testobject test.txt -p testpool
[[email protected] ~]# rados ls -p testpool
[[email protected] ~]# rbd create testpool/testimage.img --size 100M --image-feature layering
[[email protected] ~]# rbd -p testpool ls
[[email protected] ~]# rbd map testpool/testimage.img --id admin
[[email protected] ~]# vim /etc/ceph/ceph.conf
添加一行
mon allow pool delete = true
[[email protected] ~]# systemctl restart ceph-mon.target
[[email protected] ~]# ceph osd pool delete testpool testpool --yes-i-really-really-mean-it





边栏推荐
猜你喜欢
随机推荐
了解CV和RoboMaster视觉组(五)local-distribution汇聚方法
了解CV和RoboMaster视觉组(五)滤波器、观测器和预测方法:自适应滤波器的应用
How to resolve the conflict between LAN segment and WAN segment when Honor router (WS831) is used as wireless relay
提升用户体验,给你的模态弹窗加个小细节
维护RAC日志轮转
07.1 类的的补充
项目管理-挣值分析方法学习总结
容易混淆的指针知识点
337. Robbery III
了解CV和RoboMaster视觉组(五)目标跟踪:基于深度学习的方法
JVM学习——1——虚拟机基础概念
30 norm
2022年起重机司机(限桥式起重机)考试题库及模拟考试
2分钟,带你走完企业经营分析全流程,更有通用分析框架直接套用
分布式数据库怎样才能“叫好又卖座”
OpenMLDB + Jupyter Notebook:快速搭建机器学习应用
数据库指标是怎么个意思
月报总结|Moonbeam 7月份大事一览
wift3.0设置导航栏,标题,字体,item颜色和字体大小
sklearn(一)









