52AV手機A片王|52AV.ONE
標題:
如何找出硬碟的型號及序號,測試硬碟的健康狀態
[打印本頁]
作者:
IT_man
時間:
2016-1-5 18:20
標題:
如何找出硬碟的型號及序號,測試硬碟的健康狀態
當linux系統裝有多顆硬碟且使用raid0組合成一顆磁碟,不幸其中一顆毀損時,整個磁碟就找不到了,且資料全部遺失,如果是重要資料的話,那就真的GG了.
! T& x! ?; r G
本篇重點是在說明"如何找出哪一顆出問題",那就是找出硬碟的型號及序號:
. e3 c7 F. O' I3 y7 [3 n
! q% [, x% w' Z) O U6 m1 Q6 @
#hdparm -I /dev/sd?|grep -E "Number|/dev"
% G, W/ d. k9 B, O2 q" P
/dev/sda:
6 T. Q6 ~% n0 h2 m+ o9 `/ C
Model Number: HDS722516VLSA80
, k4 a6 _' K9 l# K
Serial Number: VN6D3ECDD7RG1D
7 K6 K" F i7 @0 H7 S6 R" P! {2 i7 y& x
/dev/sdb:
- v4 x) q4 C3 `/ {
Model Number: WDC WD740GD-00FLA1
$ J; u4 n# l9 ` q4 R ?
Serial Number: WD-WMAKE1690676
; Z5 A' K9 h1 |/ K9 P" \
/dev/sdc:
/ W! h9 E& n6 h4 [" s1 V- ?
Model Number: HDS722525VLSA80
/ v9 i" }' N' j X. O
Serial Number: VN6J3ECFEALJRD
- N4 F3 |7 D5 S$ F) q
/dev/sdd:
4 g1 ?& L1 i8 p S" v6 ?, A1 J
Model Number: HDS722525VLSA80
" G' W$ \( \+ i! H) H( C$ x8 f1 t4 n9 G* A
Serial Number: VN6J3ECFEBSR1D
2 C* _; W& L6 k
2 |, t# Q1 ?: G: `7 O
7 k1 L3 Q1 \! S% {7 l
註:
. k9 J- \5 ?5 F7 Y
hdparm並不一定可以適用所有硬碟,有些廠牌可能不支援此指令,可能會出現如下錯誤:
, _" w; P% z" B6 S7 D# t7 }, e4 O
HDIO_DRIVE_CMD(identify) failed: Invalid argument
% Q- ^9 B% G* h4 s- o; d% U
可以使用: 參考
http://70tw.spotlight.net.tw/?p=330
# @1 b) u; d$ S; e; M1 `- {
smartctl -i -d ata /dev/sda # ata 是 sata,
假如無 smartctl ===>
yum install
smartmontools
* D0 S8 {( [. m
smartctl -i -d scsi /dev/sdb # scsi 硬碟
- Y6 Y. R5 l+ ^
[root@server ~]# smartctl -i -d scsi /dev/sdb
5 }: b9 K- P0 ^: g C: K& Z, S+ d
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-431.el6.x86_64] (local build)
6 y# J# i2 S2 l y: E, H9 K! i
Copyright (C) 2002-12 by Bruce Allen,
http://smartmontools.sourceforge.net
0 l- \5 S$ V& t9 q8 U* N" p
6 z4 {8 m8 s2 f- A
[3 G2 j0 L) a5 J
Vendor: AMCC
/ W% u; Z' G2 r% \# @5 s
Product: 9650SE-12M DISK
! Y% ^8 x5 C* n e7 x
Revision: 4.10
0 B, c% ]5 @8 t g5 o7 q
User Capacity: 2,999,988,518,912 bytes [2.99 TB]
2 X1 _+ |8 y* c y
Logical block size: 512 bytes
3 S* S5 |8 T$ J- _! J
Logical Unit id: 0x600050e09e18e100d23a0000d6b30000
* P. v" s) [: o# ?- ]
Serial number: 56L4B0GS9E18E100D23A
6 q" | W) I% T+ G: g6 k* C
Device type: disk
6 O5 i9 v& ?) X1 j- `' N3 A! }: O* d1 n
Local Time is: Mon Jan 25 09:05:11 2016 CST
. x5 r5 g- N9 y9 V
Device supports SMART and is Disabled
2 M1 {; C* J# S, ^* L1 g x8 N3 ]
Temperature Warning Disabled or Not Supported
: }; v% f. k$ \, O' f, }, k
[
測試硬碟健康狀態
]
C3 s& `) c; |: j
smartctl -H -d scsi /dev/sdb也可參考
http://www.av4u.info/forum.php?m ... ypeid%26typeid%3D43
& u, s& Q+ |" `" {, i6 h- U
& u* V; U8 W9 K: d" S. f* ?# Q
歡迎光臨 52AV手機A片王|52AV.ONE (https://www.52av.one/)
Powered by Discuz! X3.2