We had a power cut on our data site last week, after managing to bring the cloud up again just one error remains, one osd has the message “No block devices detected using current configuration”.
I would like to know what is the best way to proceed here, I would proffer to remove that OSD and add it again as a new disk, instead of trying to make it to rejoin the cluster.
is it safe to use the following command?
what other considerations should i take into account?
I ran the following commands to provide the relevant information
the output is attached
I hope some can help me with this.
Thanks in advance
Hey @mario-chirinos. Can you also show the output of “juju config ceph-osd osd-devices” and the output of “lsblk” from the host which is showing this symptom ?
that’s the correct procedure, yes. The purge flag will make it so that you can re-use the OSD id for future placements (If the command succeeds, the output will tell you how you can replace the OSD that you’re removing as well).
geoint@MAAS-01:~$ juju run-action --wait ceph-osd/3 remove-disk osd-ids=osd.2 purge=true
errors:
0: action “remove-disk” not defined on unit “ceph-osd/3”
Seems like you’re running a version of the ceph-osd charm that doesn’t have the remove-disk action. You’ll need to upgrade the charm to run the action.
I was able to remove the OSD following the instructions in : https://discourse.ubuntu.com/t/removing-osds-pre-quincy/27693
Now I would like to add again the disk in Unit 3 to the cluster, should a enter the unit 3 and do some manual work or can i just use a juju command?
geoint@MAAS-01:~$ juju ssh ceph-mon/leader sudo ceph osd tree
ID CLASS WEIGHT TYPE NAME STATUS REWEIGHT PRI-AFF
-1 183.32373 root default
-21 21.83060 host calm-stag
6 hdd 21.83060 osd.6 up 1.00000 1.00000
-7 21.38379 host clean-hog
4 hdd 21.38379 osd.4 up 1.00000 1.00000
-13 21.38379 host exotic-goblin
5 hdd 21.38379 osd.5 up 1.00000 1.00000
-5 0 host key-ox
-9 21.38379 host liked-hermit
1 hdd 21.38379 osd.1 up 1.00000 1.00000
-17 21.83060 host pumped-bat
7 hdd 21.83060 osd.7 up 1.00000 1.00000
-15 0 host sharp-grouse
-19 32.74359 host sharp-heron
8 hdd 32.74359 osd.8 up 1.00000 1.00000
-11 21.38379 host stable-liger
0 hdd 21.38379 osd.0 up 1.00000 1.00000
-3 21.38379 host star-koala
3 hdd 21.38379 osd.3 up 1.00000 1.00000