找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 41|回复: 4

磁盘时间问题

[复制链接]

7

主题

34

回帖

101

积分

注册会员

积分
101
发表于 2017-8-1 10:11:55 | 显示全部楼层 |阅读模式
各位大佬,查看磁盘时间的指令是多少?
搜索论坛也查不出来,买了20O准备开奖

回复

使用道具 举报

216

主题

1819

回帖

4310

积分

论坛元老

积分
4310
发表于 2017-8-1 10:44:30 | 显示全部楼层
CentOS下使用smartmontools查看硬盘使用时间

sudo yum -y install smartmontools

smartctl -s on /dev/sda

sudo smartctl -A /dev/sda

回复

使用道具 举报

7

主题

34

回帖

101

积分

注册会员

积分
101
 楼主| 发表于 2017-8-1 10:48:13 | 显示全部楼层

nic2013 发表于 2017-8-1 10:44

CentOS下使用smartmontools查看硬盘使用时间

sudo yum -y install smartmontools

谢谢 大佬 我就是百度这个 然后不行 我记得有一个就一个指令的
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
unable to fetch IEC (SMART) mode page [unsupported field in scsi command]
A mandatory SMART command failed: exiting. To continue, add one or more '-T perm                                                                             issive' options.
[root@sd-47996 ~]#
[root@sd-47996 ~]# sudo smartctl -A /dev/sda
smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-514.26.2.el7.x86_64] (local b                                                                             uild)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
回复

使用道具 举报

179

主题

728

回帖

2017

积分

金牌会员

积分
2017
发表于 2017-8-1 10:44:00 | 显示全部楼层
4T的么?4T的好像有raid,要用smartctl -a -d cciss,0 /dev/sda  命令
第一块硬盘是:smartctl -a -d cciss,0 /dev/sda
第二块硬盘是:smartctl -a -d cciss,1 /dev/sda
回复

使用道具 举报

7

主题

34

回帖

101

积分

注册会员

积分
101
 楼主| 发表于 2017-8-1 10:53:45 | 显示全部楼层

传说的烧饼 发表于 2017-8-1 10:53

4T的么?4T的好像有raid,要用smartctl -a -d cciss,0 /dev/sda  命令
第一块硬盘是:smartctl -a -d cciss ...

Power_On_Hours          0x0032   050   050   000    Old_age   Always       -       36908
谢谢啦,第二个盘看不到,不测了都是老硬盘
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Discuz! X

GMT+8, 2025-2-13 14:32 , Processed in 0.015709 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表