admin管理员组文章数量:1122852
linux 查看磁盘信息命令行,linux命令
如果服务器有做磁盘阵列,那么运行fdisk -l或者smartctl –all /dev/sda,得不到你要的磁盘信息。
[root@localhost /]# fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 599.6 GB, 599584145408 bytes
255 heads, 63 sectors/track, 72895 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000aadb9
Device Boot Start End Blocks Id System
/dev/sda1 1 72896 585531391+ ee GPT
Partition 1 does not start on physical sector boundary.
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdb: 1999.3 GB, 1999307276288 bytes
255 heads, 63 sectors/track, 243068 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 243069 1952448511+ ee GPT
Partition 1 does not start on physical sector boundary.
[root@localhost /]# smartctl --all /dev/sda
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,
Vendor: LSI
Product: MR9260-8i
Revision: 2.13
User Capacity: 599,584,145,408 bytes [599 GB]
Logical block size: 512 bytes
Logical Unit id: 0x600605b00585ee301e70629e1af12036
Serial number: 003620f11a9e62701e30ee8505b00506
Device type: disk
Local Time is: Thu May 5 05:26:19 2016 EDT
Device does not support SMART
Error Counter logging not supported
Device does not support Self Test logging
可以借助MegaClI命令,MegaClI命令系统不自带,需要额外下载
下载地址,搜索MegaCLI即可找到:
我下载到/root/usr/local目录下
[root@localhost local]# ls
8-07-10_MegaCLI_Linux.zip etc include lib64 sbin src
bin games lib libexec share
然后解压
[root@localhost local]# unzip 8-07-10_MegaCLI_Linux.zip
Archive: 8-07-10_MegaCLI_Linux.zip
inflating: 8.07.10_MegaCLI_Linux/Linux MegaCLI 8.07.10.txt
creating: 8.07.10_MegaCLI_Linux/Linux MegaCLI 8.07.10/
inflating: 8.07.10_MegaCLI_Linux/Linux MegaCLI 8.07.10/MegaCli-8.07.10-1.noarch.rpm
找到安装包
[root@localhost local]# ls
8.07.10_MegaCLI_Linux bin games lib libexec share
8-07-10_MegaCLI_Linux.zip etc include lib64 sbin src
本文标签: linux 查看磁盘信息命令行linux命令
版权声明:本文标题:linux 查看磁盘信息命令行,linux命令 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/biancheng/1701895638a500140.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论