how do I swap a OSD and a journal?
R3LZX
50 Posts
May 27, 2020, 5:52 pmQuote from R3LZX on May 27, 2020, 5:52 pmon 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
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
Last edited on May 27, 2020, 6:41 pm by R3LZX · #1
admin
2,930 Posts
May 28, 2020, 4:03 pmQuote from admin on May 28, 2020, 4:03 pmYou 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.
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.
R3LZX
50 Posts
May 28, 2020, 11:00 pmQuote from R3LZX on May 28, 2020, 11:00 pmthanks it worked out fine thats what I did, thanks for replying
thanks it worked out fine thats what I did, thanks for replying
how do I swap a OSD and a journal?
R3LZX
50 Posts
Quote from R3LZX on May 27, 2020, 5:52 pmon 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
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
admin
2,930 Posts
Quote from admin on May 28, 2020, 4:03 pmYou 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.
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.
R3LZX
50 Posts
Quote from R3LZX on May 28, 2020, 11:00 pmthanks it worked out fine thats what I did, thanks for replying
thanks it worked out fine thats what I did, thanks for replying