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