move osd to another node

I got the solution:

1. Stop / Out the OSD you want to move
2. Physically move OSD to new node
3. In Proxmox on new node > Open a shell and type:

Bash:
pvscan
ceph-volume lvm activate --all

4. Have some patience, it can take at least 30 seconds - after some time, chech Ceph > OSD (reload) and you should see the OSD's start to appear on the new node!
 
if you don't have a separate (shared) journal device, you can just down and out the OSD and physically move it from one host to another. (hot-)plugging it in should automatically start the OSD service on the new host, and you can mark the osd as "in" on the GUI.

if you have a separate journal device only used for the particular osd, you can move it together with the OSD and it should work as well.

if you have a shared journal device, you might be able to move all the OSDs using it and the journal, all at the same time - I have never tried this though.

if you only want to move one of several OSDs sharing a journal, this is AFAIK not possible, and you need to actually remove it and create a new OSD from scratch on the new host, using the moved disk.
Hi @fabian by journaling you refer to metaserver when using CephFS ? so i assume it do not apply to RBD?
 
I got the solution:

1. Stop / Out the OSD you want to move
2. Physically move OSD to new node
3. In Proxmox on new node > Open a shell and type:

Bash:
pvscan
ceph-volume lvm activate --all

4. Have some patience, it can take at least 30 seconds - after some time, chech Ceph > OSD (reload) and you should see the OSD's start to appear on the new node!
can we import it in a completly other cluster node , or it as to be part from a previous member node from the same cluster ?
 
I got the solution:

1. Stop / Out the OSD you want to move
2. Physically move OSD to new node
3. In Proxmox on new node > Open a shell and type:

Bash:
pvscan
ceph-volume lvm activate --all

4. Have some patience, it can take at least 30 seconds - after some time, chech Ceph > OSD (reload) and you should see the OSD's start to appear on the new node!
Thank you!
Although this is an older Post, it still worked on PVE8.2.7 and Ceph 18.2.4
 
Last edited:
  • Like
Reactions: wigor

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!