Fedora SMART硬盤生產(chǎn)商們建立的一個工業(yè)標(biāo)準(zhǔn)
現(xiàn)在的硬盤的容量和速度越來越快了,故障率也比前的東西高,總覺得現(xiàn)在的質(zhì)量沒有以前的好,數(shù)據(jù)都放在里面,要有故障造成的損失可大可小,有沒有簡單的方法可提前發(fā)現(xiàn)硬盤的狀態(tài),做好準(zhǔn)備。有個smartmontools 軟件包只用2個命令smartctl和smartd ,軟件在http://smartmontools.sourceforge.net/
Fedora SMART
Fedora SMART(SFF-8035i) 是硬盤生產(chǎn)商們建立的一個工業(yè)標(biāo)準(zhǔn),這個標(biāo)準(zhǔn)就是在硬盤上保存一個跟執(zhí)行情況,可靠程度,讀找錯誤率等屬性的表格。所有屬性都有一個1byte(大小范圍 1-253)的標(biāo)準(zhǔn)化值,還包含另一個1byte的關(guān)鍵階段值。
如果屬性表格內(nèi)某個數(shù)據(jù)接近小于或達到關(guān)鍵階段值,那么你的硬盤就快跟你永別了,至少也是超過它的設(shè)計使用極限了- 該做備份和最壞的打算了。SFF-8035i工業(yè)標(biāo)準(zhǔn)經(jīng)過ATA-3,ATA-4到了ATA-5,加入了一個錯誤信息文件(error log) 和一系列硬盤自測SMART命令。
Fedora SMART適應(yīng)與IDE和SCSI硬盤。支持平臺:Mac OSX, Linux, FreeBSD, NetBSD, OpenBSD, Solaris, OS/2, eComStation or Windows system在windows下可以個:smartmontools-5.36-1.win32.zip 解壓出binsmartctl.exe,smartd.exe,syslogevt.exedoc*3個主要文件smartctl.exe,smartd.exe,syslogevt.exe,為方便把它拷到
C:在命令提示符下:
C:>smartd.exe <--先運行smart
C:>smartd.exe
smartd: already running.Use "smartd status|stop|reload|restart|sigusr1|sigusr2" to control daemon.說明已經(jīng)在跑查一下硬盤是否支持SMARTC:>smartctl -i /dev/hdasmartctl version 5.36 [i686-mingw32-xp-sp2] Copyright (C) 2002-6 Bruce AllenHome page is http://smartmontools.sourceforge.net/
- START OF INFORMATION SECTION ===
- Model Family: IBM/Hitachi Deskstar GXP-180 family
- Device Model: IC35L120AVV207-0
- Serial Number: VNVD30G4C9VP0T
- Firmware Version: V24OA66A
- User Capacity: 120,034,123,776 bytes
- Device is: In smartctl database [for details use: -P show]
- ATA Version is: 6
- ATA Standard is: ATA/ATAPI-6 T13 1410D revision 3a
- Local Time is: Thu Apr 20 11:47:15 2006
- SMART support is: Available - device has SMART capability.
- Enabled status cached by OS, trying SMART RETURN STATUS cmd.
- SMART support is: Enabled
Fedora SMART簡單查一下硬盤健康狀態(tài)
C:>smartctl -H /dev/hda
smartctl version 5.36 [i686-mingw32-xp-sp2] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
如果你的self-assessment test result是FAILING,那就是說它要完蛋了,快點做準(zhǔn)備工作查硬盤歷史錯誤信息(error log)
smartctl -l error /dev/hda
Fedora SMART硬盤自測smartctl -l selftest /dev/hda
終止硬盤自測。smartctl -X /dev/hda其它的想了解更多的可用 C:>smartctl -h實現(xiàn)的功能可能沒有LINUX下多?smartmontools在LINUX和其它的系統(tǒng)上,有源包和適合各系統(tǒng)的軟件包,通常新版的LINUX,如Redhat4,F(xiàn)edora3以上都有安裝了。
如你手癢的話可以裝源包具體的下載和安裝,參考http://smartmontools.sourceforge.net/的“How to download and install smartmontools”這里不細說,LINUX下[root@localhost ~]# vi /etc/smartd.conf/dev/sda -H -m root@localhost.localdomain設(shè)置文件smartd.conf,有一個“-m”的選項,它設(shè)定把信息mail給誰。
Fedora SMART只是提醒工具,但不能幫你做備份。要真正的讓Fedora SMART為你服務(wù),應(yīng)該好好讀寫smartd & smartd.conf 的注釋, 讓其后臺程序在一定情況下提醒你(mail)有些關(guān)鍵值達到了危險區(qū)域, 以上給出的幾個命令是在你開始感到情況不妙的時候進行的手工測試注:在vmware下虛擬的RedhatLinux的SMART是起不來的,因虛擬的硬盤是不支持Fedora SMART的。
【編輯推薦】