首先使用smartctl --all /dev/sda指令來檢查硬盤信息,該指令CentOS自帶,得到的結(jié)果可能如下:
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-358.el6.x86_64] (local build)Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net=== START OF INFORMATION SECTION ===Device Model: WDC WD20EZRX-00DC0B0Serial Number: WD-WMC301111333LU WWN Device Id: 5 0014ee 601111622Firmware Version: 80.00A80User Capacity: 2,000,398,934,016 bytes [2.00 TB]Sector Sizes: 512 bytes logical, 4096 bytes physicalDevice is: Not in smartctl database [for details use: -P showall]ATA Version is: 8ATA Standard is: ACS-2 (revision not indicated)Local Time is: Fri Jul 3 16:04:20 2015 CSTSMART support is: Available - device has SMART capability.SMART support is: Enabled
這里的Device Model右側(cè)的信息就是硬盤的具體型號,User Capacity右側(cè)的信息就是硬盤的實(shí)際大小,同時也表明該機(jī)器并沒有做磁盤陣列。 如果該機(jī)有做磁盤陣列,那么運(yùn)行上述命令得到的結(jié)果可能如下:
Vendor: DELLPRoduct: PERC H310Revision: 2.12User Capacity: 999,653,638,144 bytes [999 GB]Logical block size: 512 bytesLogical Unit id: 0x6b083fe0e9aa11111cf094800440aee5Serial number: 00e5ae40048094f01c1111aae9e03f08Device type: diskLocal Time is: Fri Jul 3 15:39:02 2015 CSTDevice does not support SMARTError Counter logging not supportedDevice does not support Self Test logging
這里的Vendor和Product實(shí)際上是磁盤陣列卡的信息,而不是磁盤信息。
這時可先安裝smart工具,指令為yum install smartmontools,輸入該指令并回車。之后輸入指令: smartctl -a -d sat+megaraid,0 /dev/sda并回車,可得到如下的結(jié)果:
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-431.el6.x86_64] (local build)Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net=== START OF INFORMATION SECTION ===Device Model: ST91000640NSSerial Number: 9XG3XXXFLU WWN Device Id: 5 000x50 04fxxxx06Firmware Version: AA02User Capacity: 1,000,204,886,016 bytes [1.00 TB]Sector Size: 512 bytes logical/physicalDevice is: Not in smartctl database [for details use: -P showall]ATA Version is: 8ATA Standard is: ATA-8-ACS revision 4Local Time is: Fri Jul 3 16:01:03 2015 CSTSMART support is: Available - device has SMART capability.SMART support is: Enabled
這里的Device Model右側(cè)的信息就是硬盤的具體型號,User Capacity右側(cè)的信息就是硬盤的實(shí)際大小。
新聞熱點(diǎn)
疑難解答
圖片精選