CEPH POOL MIGRATION

本文介绍了如何进行CEPH资源池的迁移,包括最简方法、使用cache tier和Rados导入导出的方式。在使用cache tier时需谨慎,迁移过程中要注意数据的完整性和安全性。
摘要由CSDN通过智能技术生成

CEPH POOL MIGRATION

从一个资源池迁移到另一个资源池,特别是资源池参数不可修改的,比如:从replicated pool 迁移到 EC pool,缩减 PGs 数量。

最简方法

ool=testpool
ceph osd pool create $pool.new 4096 4096 erasure default
rados cppool $pool $pool.new
ceph osd pool rename $pool $pool.old
ceph osd pool rename $pool.new $pool

N: 对于 EC pools可能会报错:“error copying pool testpool => newpool: (95) Operation not supported”.

使用 cache tier

使用时要小心,先做测试再用于生产环境

以相反的顺序使用 cache tier

举例:有2个pool 现在的testpool 和新的 newpool

1、安装 cache tier

ceph osd tier add newpool testpool --force-nonempty
ceph osd tier cache-mode testpool forward

在命令 `ceph osd dump` 下输出下面类似内容:

--> pool 58 'testpool' replicated size 3 .... tier_of 80

2、强制迁移所有对象到 newpool

rados -p testpoo
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值