ceph 报警 [ low disk space] 解决
来源:互联网 发布:全钟穆勒编程软件下载 编辑:程序博客网 时间:2024/05/01 14:48
参考报警信息
[root@hh-yun-puppet-129021 ~]# ceph health detailHEALTH_WARN mon.hh-yun-ceph-cinder026-128076 low disk spacemon.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 VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert home centos -wi-ao---- 100.00g root centos -wi-ao---- 50.00g swap centos -wi-ao---- 31.44g[root@hh-yun-ceph-cinder026-128076 /]# vgs VG #PV #LV #SN Attr VSize VFree centos 1 3 0 wz--n- 3.64t 3.46t
扩容 root 空间
[root@hh-yun-ceph-cinder026-128076 /]# lvextend -l +100%FREE /dev/centos/root Size of logical volume centos/root changed from 50.00 GiB (12800 extents) to 3.51 TiB (919900 extents). Logical volume root successfully resized
检查 LVM
[root@hh-yun-ceph-cinder026-128076 /]# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert home centos -wi-ao---- 100.00g root centos -wi-ao---- 3.51t swap centos -wi-ao---- 31.44g
查询文件系统
[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[root@hh-yun-ceph-cinder026-128076 /]# mount | grep -E 'root|home'/dev/mapper/centos-root on / type xfs (rw,relatime,attr2,inode64,noquota)/dev/mapper/centos-home on /home type xfs (rw,relatime,attr2,inode64,noquota)
扩容文件系统
[root@hh-yun-ceph-cinder026-128076 /]# xfs_growfs -d /meta-data=/dev/mapper/centos-root isize=256 agcount=4, agsize=3276800 blks = sectsz=4096 attr=2, projid32bit=1 = crc=0 finobt=0data = bsize=4096 blocks=13107200, imaxpct=25 = sunit=0 swidth=0 blksnaming =version 2 bsize=4096 ascii-ci=0 ftype=0log =internal bsize=4096 blocks=6400, version=2 = sectsz=4096 sunit=1 blks, lazy-count=1realtime =none extsz=4096 blocks=0, rtextents=0data blocks changed from 13107200 to 941977600[root@hh-yun-ceph-cinder026-128076 /]# df -h文件系统 容量 已用 可用 已用% 挂载点/dev/mapper/centos-root 3.6T 35G 3.5T 1% /
home 目录已经破坏, 需要进行重新格式化. 并进行数据恢复
参考ceph 信息
[root@hh-yun-ceph-cinder026-128076 ~]# ceph health detailHEALTH_OK
0 0
- ceph 报警 [ low disk space] 解决
- 解决jenkins节点Disk space is too low
- centos low disk space问题
- Ubuntu 解决更新软件包的时候出现的 “Low Disk Space” 存储空间不足问题
- /tmp does not have enough disk space解决
- Low space &Clean up
- Excessive Disk Space
- Linux disk space analysis
- vmware disk space
- ES:cluster.routing.allocation.disk.watermark.low
- 深入理解ceph-disk的工作机制
- ceph (luminous 版) journal disk 故障测试
- ceph (luminous 版) data disk 故障测试
- 【未解决】Ubuntu启动出现The system is running in low-graphics mode,以及no space left on device
- low space check and clean up
- MySQL报警音解决
- Quick check of asm disk space
- Informix Verifying physical disk space, please wait...
- **spring mvc 整合hibernate 配置,弄了好几天
- split
- android 进度条
- Linux(CentOS)下配置安装Tomcat并配置JDK环境
- Oracle11g 重建EM
- ceph 报警 [ low disk space] 解决
- cvpr常用资源整理(ing...)
- srs之深入浅出看流媒体
- 编程求直方图中的最大矩形面积
- 电脑公司最新稳定win7系统下载
- Opencv图像偏色检测
- kcatSniM.155
- Linux系统学习入门(1)(转载)
- 关于RCP产品无法进行远程调试的说明(源码断点和高亮显示位置不对)