Delte Ceph-Pool "device_health_metrics"

Sycoriorz

Well-Known Member
Mar 19, 2018
45
4
48
36
Dear at all,

i have deleted the default pool "device_health_metrics".
Dont ask whyo_O!

My question is, is it repairable in an already running cluster or it must be set up complete new?

If it is possible to do while it is running, is it enough to create the pool manually with PG1?
Or is there any content in it which is created by build up automatically while creating Ceph-Setup.

Many thanks for help.
 
I think we also had this in our enterprise support right?
So to answer this question here as well for others who might run into the problem. The Ceph Blog has some background information on what this pool is used for.

Recreating the pool with the exact same name will cause the command
Code:
ceph device scrape-health-metrics
to run once again without any errors.

Setting the pg_num_min to 1 for this pool particularly will tell the autoscaler, that it can go down to 1 PG instead of the default 32.
Code:
ceph osd pool set device_health_metrics pg_num_min 1

And with that it should be as before. Of course, any data stored about device health before the delete will be lost.
 
  • Like
Reactions: takeokun
esto es la salida del comando
poz: ~ # ceph dispositivo scrape-health-metrics
Error EINVAL: Traceback (última llamada más reciente):
Archivo "/usr/share/ceph/mgr/mgr_module.py", línea 1355, en _handle_command
return CLICommand.COMMANDS [cmd ['prefijo']]. call (self, cmd, inbuf)
Archivo "/usr/share/ceph/mgr/mgr_module.py", línea 394, en la llamada
return self.func (mgr, ** kwargs)
Archivo "/usr/share/ceph/mgr/devicehealth/module.py", línea 175, en do_scrape_health_metrics
return self.scrape_all ()
Archivo "/usr/share/ceph/mgr/devicehealth/module.py", línea 369, en scrape_all
ioctx = self.open_connection ()
Archivo "/usr/share/ceph/mgr/devicehealth/module.py", línea 350, en open_connection
ioctx = self.rados.open_ioctx (self.pool_name)
Archivo "rados.pyx", línea 982, en rados.Rados.open_ioctx
rados.ObjectNotFound: [errno 2] Objeto RADOS no encontrado (error al abrir el grupo 'device_health_metrics')
 

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!