Ceph swap OSDs

Grapefruit

New Member
Feb 2, 2024
8
0
1
Hello,

Is it possible to swap the OSDs of 2 nodes without downtime?

The reason is to balance the node's storage because the OSD's sizes in nodes are different.

Thanks,
 
yes it is possible but nor in 1 just swap part ...

you have to remove one or both osd's and then swap it and readd

Code:
#Set Weight to 0
ceph osd crush reweight osd.X 0

#after disk empty
ceph osd out osd.x
ceph osd down osd.x
ceph osd crush rm osd.x
ceph auth del osd.x
ceph osd destroy x --yes-i-really-mean-it

this is just the clean way without going into redundancy mode on Ceph ;-)
 
  • Like
Reactions: Grapefruit
yes it is possible but nor in 1 just swap part ...

you have to remove one or both osd's and then swap it and readd

Code:
#Set Weight to 0
ceph osd crush reweight osd.X 0

#after disk empty
ceph osd out osd.x
ceph osd down osd.x
ceph osd crush rm osd.x
ceph auth del osd.x
ceph osd destroy x --yes-i-really-mean-it

this is just the clean way without going into redundancy mode on Ceph ;-)
Thanks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!