rook-ceph 实操 v17.2.5

1. 查看ceph版本

bash 复制代码
kubectl exec -it rook-ceph-tools-xxxxx -n rook-ceph /bin/bash
ceph version
# ceph version 17.2.5 (98318ae89f1a893a6ded3a640405cdbb33e08757) quincy (stable)

打开之前下载的rook-ceph文件夹(前提是你的文件夹名字已经标注了版本)在 deploy/examples/cluster.yaml里有

image: quay.io/ceph/ceph:v17.2.5

2. 删除osd

进入tool pod

bash 复制代码
# Step 1: Mark OSD as out
ceph osd out osd.3

# Step 2: Check the cluster status and wait for rebalancing
ceph -s

# Step 3: Once the cluster is balanced, remove the OSD from the CRUSH map and authentication
ceph osd crush remove osd.3
ceph auth del osd.3
ceph osd rm osd.3

# Step 4: Delete the corresponding Rook OSD deployment
kubectl -n rook-ceph delete deployment rook-ceph-osd-3 # 注意这里是deployment

# Optional Step 5: If using PVC, delete the corresponding PVC
kubectl -n rook-ceph delete pvc <pvc-name>

3. 释放出空间

需要删除 pv pvc sc,还有pool 才能释放出来

4. iscsi rook-ceph 在ceph 笔记2 中用ceph 16实现的

进入tool

ceph mgr module enable rook

bash-4.4$ ceph orch ps

Error ENOENT: No orchestrator configured (try ceph orch set backend)

bash-4.4$ ceph orch ls

Error ENOENT: No orchestrator configured (try ceph orch set backend)

bash-4.4$ ceph orch set backend rook

bash-4.4$ ceph orch ls

相关推荐
行走的山峰8 小时前
ceph之osd扩容和缩容
ceph
hejingdong1238 小时前
ceph iscsi网关配置过程遇到的问题和解决办法
ceph·ceph iscsi·iscsi 网关
行走的山峰8 小时前
ceph简介
ceph
奋斗的松鼠1 天前
numa分布奇葩引发的性能问题
ceph
奋斗的松鼠8 天前
2.1ceph集群部署准备-硬件及拓扑
linux·服务器·ceph
hejingdong12312 天前
ceph-iscsi 手动安装过程中的一些问题记录以及解决办法
ceph
奋斗的松鼠12 天前
2.2ceph集群部署准备-软件准备上
分布式·ceph
henan程序媛13 天前
云原生存储Rook部署Ceph
ceph·云原生·rook
不爱代码的小杜13 天前
Ceph集群维护相关操作
linux·服务器·ceph
PolarisHuster13 天前
ceph中pg与pool关系
ceph