最近のハードディスクは、故障を未然に検知する技術としてS.M.A.R.T.(Self-Monitoring, Analysis and Reporting Technology)が組み込まれています。このS.M.A.R.T.を表示させるには「smartctl」コマンドを利用します。
※:「smartctl」コマンドを使用するには「smartmontools」パッケージをインストールする必要があります。
[root@host2 ~]# yum -y install smartmontools Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * sl: ftp.scientificlinux.org * sl-security: ftp.scientificlinux.org Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package smartmontools.x86_64 1:5.39.1-3.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================== Package Arch Version Repository Size ==================================================================================== Installing: smartmontools x86_64 1:5.39.1-3.el6 sl 342 k Transaction Summary ==================================================================================== Install 1 Package(s) Total download size: 342 k Installed size: 1.1 M Downloading Packages: smartmontools-5.39.1-3.el6.x86_64.rpm | 342 kB 00:01 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : 1:smartmontools-5.39.1-3.el6.x86_64 1/1 Installed: smartmontools.x86_64 1:5.39.1-3.el6 Complete!
[root@host2 ~]# smartctl -i /dev/sda smartctl 5.39.1 2010-01-28 r3054 [x86_64-redhat-linux-gnu] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net === START OF INFORMATION SECTION === Device Model: Hitachi HDS721050CLA362 Serial Number: JPB511HK3ESBVG Firmware Version: JP2OA3MA 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: ATA-8-ACS revision 4 Local Time is: Tue Aug 16 10:31:01 2011 JST SMART support is: Available - device has SMART capability. SMART support is: Enabled
上記の例では、「/dev/sda」は、「Device Model」よりHitachi社の製品で「HDS721050CLA362」と言う型番だと分かります。
また容量も「500,107,862,016 Bytes」≒「500 GByte」と分かります。