扫描二维码关注官方公众号
返回列表 发布新帖

[玩法/技巧] SAS硬盘SMART读取,和伪实时监控

7725 5
发表于 2022-3-18 15:09:15 | 显示全部楼层 阅读模式

来吧兄弟,一起玩一起讨论!

您需要 登录 才可以下载或查看,没有账号?注册

×
本帖最后由 66247 于 2022-3-18 15:09 编辑

这款方法可以通用SAS硬盘和SATA硬盘,阵列卡是否适用未知,直通卡适用。
SATA硬盘可以直接读取SMART属性表;而使用SAS硬盘,群晖无法读取SMART属性表。
如果硬盘濒临损坏,我们只有在RAID降级或损坏后才能发现,这不利于我们的数据安全。
我通过Hard Disk Sentinel Linux版(硬盘哨兵)获取了SAS硬盘SMART属性表,也可以配合Windows版【Hard Disk Sentinel】的【配置NAS磁盘监控】可以在Windows中查看NAS硬盘的状态。
00000001.png
环境:
DS3617xs DSM 6.2.2-24922 Update 6 SAS直通卡 SAS硬盘
DS918+ DSM 6.2.3-25426 SATA硬盘

软件:
Hard Disk Sentinel Linux版
Hard Disk Sentinel 5.70 PRO Windows版

步骤:
1、下载Hard Disk Sentinel Linux版 hdsentinel-019c-x64.gz
https://www.hdsentinel.com/hdslin/hdsentinel-019c-x64.gz

2、解压hdsentinel-019c-x64.gz,获得HDSentinel文件

3、上传HDSentinel到NAS的web目录(可以根据自己需要修改,如果修改目录下面命令行相关目录请一同修改)

4、获取HDSentinel位置:
通过File Station找到HDSentinel位置,右键属性,复制位置信息备用:/volume1/web/HDSentinel
00000002.png

5、打开群晖控制面板,进入计划任务,
新增-计划的任务-用户自定义的脚本
00000003.png

常规:
任务名称:Hard Disk Sentinel
用户账号:root
勾选 已启动
0101.png

计划:
日期-在以下天中运行:每天
时间:
运行频率: 每小时
首次运行时间 00:00
最后运行时间 23:00
0102.png

任务设置:
自定义脚本:
  1. cd /volume1/web/
  2. chmod 755 HDSentinel
  3. /volume1/web/HDSentinel -r /volume1/web/hdsreport.html -html
复制代码

0103.png


现在会根据你设定的时间定时生成硬盘报告,并储存在web/hdsreport.html内
你可以打开查看硬盘状态。

6、在Windows下读取
在Windows网络中映射网络驱动器到你的电脑
下载 Hard Disk Sentinel 5.70 PRO,破解版请自行下载,我用的是大眼仔汉化版本
在软件菜单文件里找到【配置NAS磁盘监控】选择浏览,并找到刚才生成的hdsreport.html文件
确定后你就可以看到NAS上的所有硬盘,并查看SMART属性表了。
也可以用添加URL,前提是Web Station设置了相应目录的站点
000001.png
0000012.png

7、如果需要更高频率监控,请在计划任务内修改运行频率

注释:原创首发内容,转载请附带此贴URL。

评论5

zhuxy117Lv.10 发表于 2022-4-26 08:31:59 | 显示全部楼层
谢谢楼主,我用的就是直通卡 回去后也去试试
回复 点赞

使用道具 举报

netusbLv.7 发表于 2022-4-25 21:42:21 | 显示全部楼层
Hard Disk Sentinel Linux版
官网地址,更多可用命令:
输出的结果,可以用其它方式展现,比如 NAS导航页、ax206 数码相框 等等
  1. Command line switches
  2. The switches are NOT case sensitive. Upper and lower case can be used to specify them.

  3. -h - displays help and usage information
  4. -r [report file] - automatically save report to filename (default: report.txt)
  5. -html - use with -r to save HTML format report (-html -r report.html)
  6. -mht - use with -r to save MHT format report (-mht -r report.mht)
  7. -autosd - detect industrial SD card type and save flag file (see How to: monitor (micro) SD card health and status for more details)
  8. -dev /dev/sdX - detect and report only the specified device without accessing others
  9. -dump - dump report to stdout (can be used with -xml to dump XML output instead of text)
  10. -xml - create and save XML report instead of TXT
  11. -solid - solid output (drive, tempC, health%, power on hours, model, S/N, size)
  12. -verbose - detailed detection information and save temporary files (only for debug purposes)
  13. -aam - display acoustic management settings (current and recommended level)
  14. -setaam drive_num|ALL level(hex)80-FE|QUIET|LOUD - set acoustic level on drive 0..n (or all)
  15. 80 or QUIET is the lowest (most silent) setting, FE or LOUD is the highest (fastest) setting
  16. For example: hdsentinel -setaam 0 loud - Configures drive 0 to fastest (loud) setting. Same as hdsentinel -setaam 0 FE
  17. Please send saved XML or TXT reports, questions or ideas to info@hdsentinel.com to help improving this tool.
复制代码

https://www.hdsentinel.com/hard_disk_sentinel_linux.php
回复 点赞

使用道具 举报

VIPER888Lv.3 发表于 2022-4-25 07:21:10 来自手机 | 显示全部楼层
不知道这是不是解决dsm7.x 直通卡无smart信息的方法
回复 点赞

使用道具 举报

momoVIP互助团队 发表于 2022-3-19 12:25:32 | 显示全部楼层
不错支持下,只是现在用sas盘的同学估计非常的少。
隔壁网希捷酷狼8T硬盘,正品国行,3年换新,只需要1320元,赠送论坛邀请码和VIP!
回复 点赞

使用道具 举报

wxlLv.6 发表于 2022-3-19 11:12:47 | 显示全部楼层
不错,支持楼主的分享
回复 点赞

使用道具 举报

回复

懒得打字嘛,点击右侧快捷回复 【本站酷狼4T,750元】
您需要登录后才可以回帖 登录 | 注册

本版积分规则

投诉/建议联系

support@gebi1.cn

未经授权禁止转载,复制和建立镜像,
如有违反,追究法律责任
  • 关注公众号
  • 添加微信客服
Copyright © 2001-2024 隔壁网 版权所有 All Rights Reserved. 粤ICP备14056481号-1
关灯 在本版发帖
扫一扫添加微信客服
返回顶部
快速回复 返回顶部 返回列表