-2

I created the cluster by cephadm and want to exec the command blow enter image description here

It seems to need the OSD process to stop for it to work properly,But when I stopped it, the container was deleted。 How can i do? thanks!

1 Answers1

0

It depends which command you're trying to execute. For example, the command you're referring to flush-journal you don't need to stop the container, this works with the OSD online:

host1:~ # cephadm enter -n osd.6 Inferring fsid [ceph: root@host1 /]# ceph daemon osd.6 flush_journal

I wrote a blog post about manipulating ceph containers where I had to stop the required service in order to change something. Maybe that helps you understand what to do in such a case.

eblock
  • 579
  • 3
  • 5