设备管理

查询哪些存储设备正在使用
ceph device ls
按守护程序或主机列出设备
ceph device ls-by-daemon <daemon>
ceph device ls-by-host <host>
对于任何单个设备,可以查询有关其位置以及如何使用它的信息:
ceph device info <devid>
启用监控
#启用
ceph device monitoring on

#禁用
ceph device monitoring off
抓取

如果启用了监视,则将定期自动刮除指标。该间隔可以配置为(默认为24小时):

ceph config set mgr mgr/devicehealth/scrape_frequency <seconds>

#设置后查看配置
ceph config dump

#手动触发所有设备的抓取
ceph device scrape-health-metrics

#单个设备可以用以下方式
ceph device scrape-health-metrics <device-id>

#单个守护程序的设备可以通过以下方式进行
ceph device scrape-daemon-health-metrics <who>
故障预测

预测模式可以配置为:

ceph config set global device_failure_prediction_mode <mode>

选项有:

  • none:禁用设备故障预测。
  • local:使用来自ceph-mgr守护程序的预训练预测模型
  • cloud:使用ProphetStor的免费服务或付费服务(具有更准确的预测)与ProphetStor运行的外部云服务共享设备运行状况和性能指标

预测通常在后台定期进行,因此填充预期寿命值可能需要一些时间,可以从以下输出中看到所有设备的预期寿命:

ceph device ls

可以使用以下命令显式强制预测设备的预期寿命

ceph device predict-life-expectancy <devid>

可以使用以下方法检查所有设备的存储预期寿命,并生成任何适当的健康警报:

ceph device check-health
文档更新时间: 2020-05-07 16:41   作者:子木