smartctl

作者: flycloud_hz | 来源:发表于2023-05-17 16:44 被阅读0次

磁盘监控smartctl

# https://github.com/AnalogJ/scrutiny`
cd docker
docker-compose -f example.omnibus.docker-compose.yml up -d  
docker-compose -f example.omnibus.docker-compose.yml down
# http://localhost:8080/web/dashboard

查看错误

smartctl -l error /dev/sda

查看信息

smartctl -a /dev/sda

id

id为5和197有错误时建议更换磁盘

5 Reallocated_Sector_Ct
197 Current_Pending_Sector

保存信息

# !/bin/bash

for i in sd{a..l}
do
    echo "==========DISK HEALTH $i ==========="
    smartctl -a /dev/$i
done

docker compose file

version: '3'

services:
  node_exporter:
    image: quay.io/prometheus/node-exporter:latest
    container_name: node_exporter
    command:
      - '--path.rootfs=/host'
      - '--web.listen-address=:9902'
      - '--collector.disable-defaults'
      - '--collector.textfile'
      - '--collector.textfile.directory=/var/lib/node_exporter'
    network_mode: host
    pid: host
    restart: unless-stopped
    volumes:
      - '/:/host:ro,rslave'
      - '/var/lib/node_exporter:/var/lib/node_exporter'

相关文章

  • 监控

    物理机磁盘监控, smartctl-exporter libvirt 监控, libvirt-exporter 比...

  • smartctl的使用

    [Linux运维 -- 硬件]smartctl的使用 1. 是什么 常用的磁盘检查工具,smart(Self-Mo...

  • smartctl 参数收集

    057 这个中间的57表示重映射扇区还剩57%057 这个中间的57表示重映射扇区还剩57%010 这款盘的...

  • linux查看硬盘信息的方法

    1、hdparm 设备 2、smartmontool包中的smartctl命令 3、cat \proc\scsi\...

  • M1 Mac 疯狂读写SSD smartctl

    /usr/local/sbin/smartctl -a /dev/disk0 2021/04/26 2021/05/12

  • smartctl查看磁盘信息

    查看磁盘信息 smartctl -x /dev/sdb 可以看出硬盘的制造商,容量,是否启动读缓存等信息。

  • Linux检查硬盘健康状态

    环境 系统:CentOS 7.9 准备 安装smartctl 检查硬盘健康 查看硬盘信息 检查硬盘健康状态 res...

  • 使用smartctl命令检查磁盘

    使用smartctl命令检查磁盘 在TS过程中会碰到很多磁盘异常出现影响系统数据或者生产数据的情况,但是有时候无法...

  • Linux下读取硬盘的smart信息

    Dell服务器之下,还不能直接通过smartctl /dev/sd*读取到磁盘的smart信息,因为Raid卡又包...

  • 【磁盘】Linux上使用badblocks&smartctl工具

    让我们从坏道和坏块的定义开始说起,它们是一块磁盘或闪存上不再能够被读写的部分,一般是由于磁盘表面特定的物理损坏[h...

网友评论

      本文标题:smartctl

      本文链接:https://www.haomeiwen.com/subject/urvisdtx.html