当前位置:网站首页>ceph2
ceph2
2022-08-09 15:46:00 【weijiajia123456】
创建一个存储池,存储池的名称为testpool
ceph osd pool create {name} {size}
副本类型:ceph osd pool create {pool-name}
纠删码类型:ceph osd pool create {pool-name}
eg:
ceph osd pool create test-pool
上传一个对象到testpool存储池,对象的名称为testobject
rados put {git} {srouce} -p {pool}
创建一个RBD的image,image名称为testimage,大小为100M
rbd create textpool/testimage.img --image-feature layering --size 100M
网络例子:
ceph osd pool set-quota {pool-name} [max_objects {obj-count}] [max_bytes {bytes}]
eg:
ceph osd pool set-quota data max_objects 10000
将testimage映射为块设备
rbd map textpool/testimage.img --id admin
8.删除testpool存储池
要删除池,必须在/etc/ceph/ceph.conf中mon的配置中将mon_allow_pool_delete标志设置为true
解答:
ceph osd pool delete textpool textpool --yes-i-really-really-mean-it
/etc/ceph/ceph.conf
mon allow pool delete = true
ceph osd pool rmsnap {pool-name} {snap-name}
边栏推荐
- Codeforces Round #808 (Div. 2)||Precipitation
- The use of websocket in uni-app Disconnection, reconnection, heartbeat mechanism
- BETA:一个用于计算药物靶标预测的综合基准
- 我的第一篇博客
- 2.1、基于并行上下文注意网络的场景文本图像超分辨率
- 现在,怎么挑选舞台租赁LED显示屏?
- Using Prometheus skillfully to extend the kubernetes scheduler
- OpenCV 图像变换之 —— 拉伸、收缩、扭曲和旋转
- 微信开发者工具程序开发好后,不报错,但是黑屏「建议收藏」
- DP 优化方法合集
猜你喜欢
Using Prometheus skillfully to extend the kubernetes scheduler
面试官:Redis 大 key 要如何处理?
The Chinese Academy of Sciences slaps Google in the face: ordinary computers catch up with quantum superiority, and can solve calculations that would have taken 10,000 years in a few hours...
视频聊天源码——一对一直播如何提高直播质量?
Vim practical skills_2. Normal mode and insert mode
Leading practice | How the world's largest wine app uses design sprint to innovate the vivino model
B40 - 基于STM32单片机的电热蚊香蓝牙控制系统
A51 - 基于STM32的DHT11和LCD显示串口通信仿真
网络——流量控制&可靠传输&滑动窗口
网络——IPv6 vs IPv4
随机推荐
央企施工企业数字化转型的灵魂是什么
推荐一些面向 Web 开发者的杀手级网站
面试官:Redis 大 key 要如何处理?
yolov5训练并生成rknn模型以及3588平台部署
How bad can a programmer be?
开源星「001 号」落地 FlyFish,欢迎登陆赢神秘大礼包!
No need to pay for the 688 Apple developer account, xcode13 packaged and exported ipa, and provided others for internal testing
转行做程序员,从月薪5k到30k,45岁测试员道出了一路的心酸
智慧灯杆网关智慧交通应用
【MySQL】源码编译MySQL8.x+升级gcc+升级cmake(亲测完整版)
Leetcode——3.无重复字符的最长字串
Collection of DP Optimization Methods
Numpy数组索引/切片 多维度索引
map和set容器
MySQL 5.5 series installation steps tutorial (graphical version)
AVL树的插入操作
Leetcode 算法面试冲刺 热题 HOT 100 刷题(406 416 437 438 448)(六十九)
A50 - 基于51单片机的太阳能充电路灯设计
B44 - 基于stm32蓝牙智能语音识别分类播报垃圾桶
五.初始指针