linux下查看硬盘型号、大小等信息(含Raid)
linux下查看硬盘型号、大小等信息(含Raid)
一、普通模式(该机硬盘没有做磁盘阵列)
1、fdisk -l 查看你的硬盘编号,如sda,sdb 等
2、smartctl --all /dev/sda
smartctl --all /dev/sda #该命令redhat自带
[root@localhost ~]# smartctl --all /dev/sda
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-504.el6.x86_64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Device Model: SanDisk SD6SB1M128G1022I
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
从上面可以看出,该机有三块硬盘,型号为,
WD WD3001BKHG D1S6WX11E83NU249,容量为300GB。
MegaCli常用参数介绍
MegaCli -adpCount 【显示适配器个数】
MegaCli -AdpGetTime –aALL 【显示适配器时间】
MegaCli -AdpAllInfo -aAll 【显示所有适配器信息】
MegaCli -LDInfo -LALL -aAll 【显示所有逻辑磁盘组信息】
MegaCli -PDList -aAll 【显示所有的物理信息】
MegaCli -AdpBbuCmd -GetBbuStatus -aALL |grep ‘Charger Status’ 【查看充电状态】
MegaCli -AdpBbuCmd -GetBbuStatus -aALL【显示BBU状态信息】
MegaCli -AdpBbuCmd -GetBbuCapacityInfo -aALL【显示BBU容量信息】
MegaCli -AdpBbuCmd -GetBbuDesignInfo -aALL 【显示BBU设计参数】
MegaCli -AdpBbuCmd -GetBbuProperties -aALL 【显示当前BBU属性】
MegaCli -cfgdsply -aALL 【显示Raid卡型号,Raid设置,Disk相关信息】
磁带状态的变化,从拔盘,到插盘的过程中。
Device |Normal|Damage|Rebuild|Normal
Virtual Drive |Optimal|Degraded|Degraded|Optimal
Physical Drive |Online|Failed –> Unconfigured|Rebuild|Online
linux下查看硬盘型号、大小等信息(含Raid)相关推荐
- linux下查看硬盘型号等信息
linux下查看硬盘型号等信息 (2011-09-15 18:07:06) 转载▼ 标签: 杂谈 分类:Linux 在准备替换或加装硬盘时,如何得到硬盘信息? 可以用smartctl,hdparm等命 ...
- linux 下查看硬盘型号、大小等信息
1.fdisk -l 查看你的硬盘编号,如sda,sdb 等 可以看到上图分别有sda.和sdb磁盘编号 2.smartctl --all /dev/sda 如果没有smartctl 工具可以用 yu ...
- linux下查看硬盘型号等信息,linux下如何查看硬盘型号等信息
在linux系统中查看硬盘信息,比如硬盘型号,可以用smartctl,hdparm等命令来查询. 1,在日志中显示硬盘有坏扇区 复制代码 代码示例: tail /var/log/messages Ma ...
- linux查询服务器硬盘型号,linux下查看硬盘型号等信息
在准备替换或加装硬盘时,如何得到硬盘信息? 可以用smartctl,hdparm等命令来查询. 在日志中显示硬盘有坏扇区 tail /var/log/messages Mar 1 09:42:55 c ...
- Linux 下查看硬盘 smart 信息
Linux 下查看硬盘 smart 信息的方法 smartctl:查看硬盘 S.M.A.R.T信息 sudo apt install smartmontools sudo smartctl -A /d ...
- Linux下查看内存型号、主板、硬盘等等
@Linux下查看内存型号.主板.硬盘等等 首先查看是否安装了dmidecode工具 [root@algerfan ~]# dmidecode Linux 查看内存的插槽数,已经使用多少插槽.每条内存 ...
- Linux下查看硬盘序列号、设备序列号、操作系统版本和安装时间、系统启用时间等命令
Linux下查看硬盘序列号.设备序列号.操作系统版本和安装时间.启用时间等命令 最近由于工作需要查询一些硬盘序列号.设备序列号.操作系统版本和安装时间.系统启用时间等信息.所以对用到的命令进行一下总结 ...
- linux下查看GPU版本和详情信息 CUDA版本信息 anaconda版本信息
查看GPU型号 lspci | grep -i nvidia 查看NVIDIA驱动版本 sudo dpkg --list | grep nvidia-* # lspci | grep -i nvidi ...
- linux查看网卡的驱动命令行,Linux下查看网卡驱动和版本信息
Linux下查看网卡驱动和版本信息 查看网卡生产厂商和信号 查看基本信息:lspci 查看详细信息:lspci -vvv # 3个小写的v 查看网卡信息:lspci | grep Ethernet 查 ...
- linux查看当前igb的版本信息,Linux下查看网卡驱动和版本信息
Linux下查看网卡驱动和版本信息 查看网卡生产厂商和信号 查看基本信息:lspci 查看详细信息:lspci -vvv # 3个小写的v 查看网卡信息:lspci | grep Ethernet ...
最新文章
- python函数可选参数传递_Python中函数的参数传递
- Neural Networks神经网络编程入门
- boost::gil::compute_harris_responses用法的测试程序
- 爬虫IP被禁的简单解决方法
- Windows7查看本地Java安装是否成功和路径的方法
- linqtoxml读写xml
- C# 使用 HelpProvider 控件调用帮助文件
- [Leedcode][JAVA][第1248题][统计「优美子数组][找规律]
- 【CF#468 div2 D. 】Peculiar apple-tree(思维)
- linux18配置静态ip,ubuntu18配置静态IP地址
- java 栈 先进后出_栈先进后出,堆先进先出
- VMWare虚拟机安装RedHat Linux全过程
- 教你手工mysql拆库
- shell脚本不换行刷新数据
- redis、mysql、和php原生array数组效率对比
- 深入学习 Intellij IDEA 调试技巧
- HOW TO:枚举网络所有打印机
- 【笔记1-4】陈丹琦毕业论文 NEURAL READING COMPREHENSION AND BEYOND
- 20+非常棒的Photoshop卡通设计教程
- UMLChina公众号文章精选(20220227更新精选)
热门文章
- win7用友u8安装教程_用友u8怎么安装?分享一组用友u8安装教程(图文)
- CA配置证书自动注册
- 笔记本自动打开计算机,笔记本电脑自动开机是什么原因
- ISA防火墙策略配置以及服务器的发布
- Win32 API 列表5 (格式有点乱)
- frontpage中没有动态HTML效果,[多选] 在frontpage中,应用文字的动态HTML效果时可选择的事件有()...
- 【Java基础】Lambda表达式的使用
- 2021年秋互联网思维期末考试
- 搭建网站服务器必须开443端口,HTTPS端口必须一定要443吗?
- 数据结构 习题 第四章 串 (C语言描述)