Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

how do I swap a OSD and a journal?

on one of the nodes the drives are misconfigured, what is supposed to be a journal, is currently an OSD and what is supposed to be an Osd is currently a Journal

 

it is a three node cluster

1-4 ratio for Journal to OSD

 

let me know if this is right

 

ceph osd tree | grep -i up

  3   hdd   9.15329         osd.3           up  1.00000 1.00000 

  4   hdd   9.15329         osd.4           up  1.00000 1.00000 

  5   hdd   9.15329         osd.5           up  1.00000 1.00000 

  9   hdd   9.15329         osd.9           up  1.00000 1.00000 

  0   hdd   9.15329         osd.0           up  1.00000 1.00000 

  1   hdd   9.15329         osd.1           up  1.00000 1.00000 

  2   hdd   9.15329         osd.2           up  1.00000 1.00000 

 11   hdd   9.15329         osd.11          up  1.00000 1.00000 

  7   hdd   9.15329         osd.7           up  1.00000 1.00000 

  8   hdd   9.15329         osd.8           up  1.00000 1.00000 

 10   hdd   9.15329         osd.10          up  1.00000 1.00000 

  6   ssd   1.80469         osd.6           up  1.00000 1.00000 

 

systemctl stop ceph-osd@6

systemctl stop ceph-osd@10

systemctl stop ceph-osd@8

systemctl stop ceph-osd@7

by stopping them I can remove them and reassign them, thats what ive been doing if there I a better way please let me know

You will need to delete and recreate them. So yes you need to stop the OSDs first with systemctl as you show, the delete the joutnals then re-add them from start.

thanks it worked out fine thats what I did, thanks for replying