Serial Number: 141218410909

LU WWN Device Id: 5 001b44 becdaed9d

Firmware Version: X231600

User Capacity: 128,035,676,160 bytes [128 GB]

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 6

Local Time is: Fri Jan 16 08:35:48 2015 CST

SMART support is: Available - device has SMART capability.

SMART support is: Enabled


从上面可以看出,硬盘型号为SanDisk SD6SB1M128G1022I,容量为128GB


 


二、磁盘阵列 RAID模式


如果该机有做磁盘阵列,那么运行上述命令会报错,得不到你要的磁盘信息。可以借助MegaCli命令


MegaCli命令系统不自带,需要额外下载,


下载地址:


<http://www.lsi.com/downloads/Public/RAID%20Controllers/RAID%20Controllers%20Common%20Files/8.07.14_MegaCLI.zip>


下载之后解压,


unzip CSA1.5-MegaCli\_REL80571.zip


cd MegaCLI/MegaCli\_Linux


rpm -ivh MegaCli-8.05.71-1.noarch.rpm


  
 


安装完成


ln -s /opt/MegaRAID/MegaCli/MegaCli64 /usr/bin/  
 


默认安装在/opt下面,建立软链到/usr/bin



[root@localhost bin]# /opt/MegaRAID/MegaCli/MegaCli64 -PDlist -aALL

Adapter #0

Enclosure Device ID: 32

Slot Number: 0

Drive’s position: DiskGroup: 0, Span: 0, Arm: 0

Enclosure position: 1

Device Id: 0

WWN: 50000C0F02E57BE9

Sequence Number: 2

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

Raw Size: 279.396 GB [0x22ecb25c Sectors]

Non Coerced Size: 278.896 GB [0x22dcb25c Sectors]

Coerced Size: 278.875 GB [0x22dc0000 Sectors]

Sector Size: 0

Firmware state: Online, Spun Up

Device Firmware Level: D1S6

Shield Counter: 0

Successful diagnostics completion on : N/A

SAS Address(0): 0x50000c0f02e57bea

SAS Address(1): 0x0

Connected Port Number: 0(path0)

Inquiry Data: WD WD3001BKHG D1S6WX11E83NU249

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: None

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive Temperature :31C (87.80 F)

PI Eligibility: No

Drive is formatted for PI information: No

PI: No PI

Port-0 :

Port status: Active

Port’s Linkspeed: 6.0Gb/s

Port-1 :

Port status: Active

Port’s Linkspeed: Unknown

Drive has flagged a S.M.A.R.T alert : No

Enclosure Device ID: 32

Slot Number: 1

Drive’s position: DiskGroup: 0, Span: 0, Arm: 1

Enclosure position: 1

Device Id: 1

WWN: 50000C0F028F32ED

Sequence Number: 2

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

Raw Size: 279.396 GB [0x22ecb25c Sectors]

Non Coerced Size: 278.896 GB [0x22dcb25c Sectors]

Coerced Size: 278.875 GB [0x22dc0000 Sectors]

Sector Size: 0

Firmware state: Online, Spun Up

Device Firmware Level: D1S6

Shield Counter: 0

Successful diagnostics completion on : N/A

SAS Address(0): 0x50000c0f028f32ee

SAS Address(1): 0x0

Connected Port Number: 1(path0)

Inquiry Data: WD WD3001BKHG D1S6WX11E83VD242

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: None

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive Temperature :31C (87.80 F)

PI Eligibility: No

Drive is formatted for PI information: No

PI: No PI

Port-0 :

Port status: Active

Port’s Linkspeed: 6.0Gb/s

Port-1 :

Port status: Active

Port’s Linkspeed: Unknown

Drive has flagged a S.M.A.R.T alert : No

Enclosure Device ID: 32

Slot Number: 2

Drive’s position: DiskGroup: 0, Span: 0, Arm: 2

Enclosure position: 1

Device Id: 2

WWN: 50000C0F02E5B8ED

Sequence Number: 2

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

Raw Size: 279.396 GB [0x22ecb25c Sectors]

Non Coerced Size: 278.896 GB [0x22dcb25c Sectors]

Coerced Size: 278.875 GB [0x22dc0000 Sectors]

Sector Size: 0

Firmware state: Online, Spun Up

Device Firmware Level: D1S6

Shield Counter: 0

Successful diagnostics completion on : N/A

SAS Address(0): 0x50000c0f02e5b8ee

SAS Address(1): 0x0

Connected Port Number: 2(path0)

Inquiry Data: WD WD3001BKHG D1S6WX11E83NU081

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: None

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive Temperature :28C (82.40 F)

PI Eligibility: No

Drive is formatted for PI information: No

PI: No PI

Port-0 :

Port status: Active

Port’s Linkspeed: 6.0Gb/s

Port-1 :

Port status: Active

Port’s Linkspeed: Unknown

Drive has flagged a S.M.A.R.T alert : No

Exit Code: 0x00


  
  

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐