1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| [iyunv@test data]# fdisk -l#先查看下磁盘的信息
[iyunv@test data]# smartctl -i /dev/sda
smartctl version 5.38 [x86_64-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Device Model: WDC WD5000AAKX-08U6AA0
Serial Number: WD-WMC2E0J27J46
Firmware Version: 19.01H19
User Capacity: 500,107,862,016 bytes
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: 8
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Mon Aug 15 21:55:51 2016 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled#这个值如果是Disabled,就是未启动需要我们手动开启
[iyunv@test data]# smartctl –smart=on –offlineauto=on –saveauto=on /dev/sda
[iyunv@test data]# smartctl -H /dev/sda
smartctl version 5.38 [x86_64-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED#这个值表示磁盘良好,如果是Failure就要替换了
|