ceph 报警 [ low disk space] 解决

参考报警信息

[root@hh-yun-puppet-129021 ~]# ceph health detail
HEALTH_WARN mon.hh-yun-ceph-cinder026-128076 low disk space
mon.hh-yun-ceph-cinder026-128076 low disk space -- 30% avail

参考磁盘空间 , 故障原因: / 磁盘空间少于 70%

[root@hh-yun-ceph-cinder026-128076 ~]# df -h | grep -E 'root|home'
/dev/mapper/centos-root   50G   35G   16G   70% /
/dev/mapper/centos-home  3.6T   33M  3.6T    1% /home

注: 如 home 有重要数据, 需先进行备份, 缩减会导致 home 目录中数据不可用 ( 很有可能 )

缩减 HOME 磁盘空间

[root@hh-yun-ceph-cinder026-128076 /]# lvreduce -L100g /dev/centos/home
  WARNING: Reducing active and open logical volume to 100.00 GiB
  THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce home? [y/n]: y
  Size of logical volume centos/home changed from 2.64 TiB (691200 extents) to 100.00 GiB (25600 extents).
  Logical volume home successfully resized

查询 lvm 空间

[root@hh-yun-ceph-cinder026-128076 /]# lvs
  LV

你可能感兴趣的:(ceph)