CentOS如何查看硬碟品牌型號等具體資訊

來源:互聯網
上載者:User

標籤:

首先使用smartctl --all /dev/sda 指令來檢查硬碟資訊,該指令CentOS內建,得到的結果可能如下:

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-00DC0B0
Serial Number:    WD-WMC301111333
LU WWN Device Id: 5 0014ee 601111622
Firmware Version: 80.00A80
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   8
ATA Standard is:  ACS-2 (revision not indicated)
Local Time is:    Fri Jul  3 16:04:20 2015 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

這裡的Device Model右側的資訊就是硬碟的具體型號,User Capacity右側的資訊就是硬碟的實際大小,同時也表明該機器並沒有做磁碟陣列。 如果該機有做磁碟陣列,那麼運行上述命令得到的結果可能如下:

Vendor:               DELL
Product:              PERC H310
Revision:             2.12
User Capacity:        999,653,638,144 bytes [999 GB]
Logical block size:   512 bytes
Logical Unit id:      0x6b083fe0e9aa11111cf094800440aee5
Serial number:        00e5ae40048094f01c1111aae9e03f08
Device type:          disk
Local Time is:        Fri Jul  3 15:39:02 2015 CST
Device does not support SMART
 
Error Counter logging not supported
Device does not support Self Test logging

這裡的Vendor和Product實際上是磁碟陣列卡的資訊,而不是磁碟資訊。

這時可先安裝smart工具,指令為yum install smartmontools,輸入該指令並斷行符號。之後輸入指令: smartctl -a -d sat+megaraid,0 /dev/sda並斷行符號,可得到如下的結果: 

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: ST91000640NS
 
Serial Number: 9XG3XXXF
 
LU WWN Device Id: 5 000x50 04fxxxx06
 
Firmware Version: AA02
 
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
 
Sector Size: 512 bytes logical/physical
 
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: Fri Jul 3 16:01:03 2015 CST
 
SMART support is: Available - device has SMART capability.
 
SMART support is: Enabled

這裡的Device Model右側的資訊就是硬碟的具體型號,User Capacity右側的資訊就是硬碟的實際大小。

著作權聲明:本文為博主原創文章,未經博主允許不得轉載。

CentOS如何查看硬碟品牌型號等具體資訊

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.