ceph提示: non-power-of-two pg_num解决办法

时间:2024-03-15 13:42:47

 问题:

 

[[email protected]]# ceph -s

  cluster:

    id:     e7a3be6e-2e30-49fd-99c0-dbb304ae1a82

    health: HEALTH_WARN

            1 pool(s) have non-power-of-two pg_num

 

 解决办法

 

增加OSD , ceph 空间资源不足,所致!

 现在每个node 增加了一个OSD

 

[[email protected] cluster]# lsblk

 

sdc                                                                          8:32   0   30G  0 disk

 ZAP disk  osd 清理磁盘数据

 

[[email protected] cluster]# ceph-deploy disk zap node-10 /dev/sdc

添加OSD

 

[[email protected] cluster]# ceph-deploy osd create node-10 --data /dev/sdc

 

检查状态

 

[[email protected] cluster]# ceph -s
  cluster:
    id:     e7a3be6e-2e30-49fd-99c0-dbb304ae1a82
    health: HEALTH_OK
 

ceph提示: non-power-of-two pg_num解决办法