ceph设置标志位

1.常用命令

bash 复制代码
#查看ceph的资源池
ceph osd pool ls

#查看poll池中的volume
rbd ls $pool池 | grep $vm-uuid

#查看volume详细信息
rbd info $pool池/$volume-id

#备份卷文件
rbd mv $pool/$volume $pool/$volume.bak-`date +%F`

#创建卷
cinder create 250 --volume-type xsky-A --name $name

2.设置标志位

bash 复制代码
ceph osd set nobackfill
ceph osd set norebalance
ceph osd set noout

3.恢复标志位

bash 复制代码
ceph osd unset nobackfill
ceph osd unset norebalance
ceph osd unset noout

4.Ceph OSD 标志位总览

Ceph 集群通过 ceph osd set <flag> 和 ceph osd unset <flag> 来设置或取消标志位。

常用标志位:

标志位 含义 默认状态
nobackfill 禁止回填(Backfilling) ❌ 关闭
norebalance 禁止再平衡(Rebalancing) ❌ 关闭
noout 禁止 OSD 被标记为 out ✅ 可用时关闭
noin 禁止 OSD 自动加入(in) ❌ 关闭
pause 暂停所有读写(生产慎用) ❌ 关闭
noup 禁止 OSD 启动(up) ❌ 关闭
相关推荐
广州浮点FLOATLIC31 分钟前
许可证服务器迁移后软件打不开:研发 IT 怎样定位连接问题
linux·服务器·数据库
IT研究所1 小时前
AI-ITR平台如何减少客户问题反复升级?
大数据·运维·人工智能·低代码·自然语言处理·安全架构·企微
BLUcoding1 小时前
接口服务公网超时排查记录:SecureRandom 阻塞问题分析与解决
java·linux·springboot·aes·securerandom
AIgorithmGEEK1 小时前
[Linux]从手写报头到内核套路:序列化、反序列化与自定义协议全链路
linux·运维·服务器·网络·序列化·反序列化
Nil2081 小时前
leetcode 139单词拆分
linux·运维·服务器
Starry-sky(jing)1 小时前
BUG: unable to handle kernel paging request 完整排查:dmesg 四要素与三路定罪
linux·运维·服务器·内核·排障
mounter6251 小时前
从硬件互连到操作系统变革:CXL 技术演进与 Linux 内核工程挑战
linux·运维·服务器
zhengqweasd1 小时前
机房托管服务器怎么选硬盘,机械盘和 SSD 托管场景差异
运维·服务器·github
xh didida3 小时前
Linux -- 基础IO
linux·服务器·开发语言·c++