如何找出硬碟的型號及序號,測試硬碟的健康狀態
當linux系統裝有多顆硬碟且使用raid0組合成一顆磁碟,不幸其中一顆毀損時,整個磁碟就找不到了,且資料全部遺失,如果是重要資料的話,那就真的GG了.本篇重點是在說明"如何找出哪一顆出問題",那就是找出硬碟的型號及序號:
#hdparm -I /dev/sd?|grep -E "Number|/dev"
/dev/sda:
Model Number: HDS722516VLSA80
Serial Number: VN6D3ECDD7RG1D
/dev/sdb:
Model Number: WDC WD740GD-00FLA1
Serial Number: WD-WMAKE1690676
/dev/sdc:
Model Number: HDS722525VLSA80
Serial Number: VN6J3ECFEALJRD
/dev/sdd:
Model Number: HDS722525VLSA80
Serial Number: VN6J3ECFEBSR1D
註:
hdparm並不一定可以適用所有硬碟,有些廠牌可能不支援此指令,可能會出現如下錯誤:
HDIO_DRIVE_CMD(identify) failed: Invalid argument
可以使用: 參考 http://70tw.spotlight.net.tw/?p=330
smartctl -i -d ata /dev/sda # ata 是 sata, 假如無 smartctl ===> yum install smartmontools
smartctl -i -d scsi /dev/sdb# scsi 硬碟
# smartctl -i -d scsi /dev/sdb
smartctl 5.43 2012-06-30 r3573 (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net
Vendor: AMCC
Product: 9650SE-12M DISK
Revision: 4.10
User Capacity: 2,999,988,518,912 bytes
Logical block size: 512 bytes
Logical Unit id: 0x600050e09e18e100d23a0000d6b30000
Serial number: 56L4B0GS9E18E100D23A
Device type: disk
Local Time is: Mon Jan 25 09:05:11 2016 CST
Device supports SMART and is Disabled
Temperature Warning Disabled or Not Supported
[測試硬碟健康狀態]
smartctl -H -d scsi /dev/sdb也可參考 http://www.av4u.info/forum.php?mod=viewthread&tid=26284&extra=page%3D1%26filter%3Dtypeid%26typeid%3D43
頁:
[1]