打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
查看linux服务器的Raid配置
有些情况下Linux服务器系统不是自己装好的,raid也不是自己配置的,远程登录系统后可能就不知道系统是否有做raid,raid级别多少?因此在这里稍微总结一下Linux下查看软、硬raid信息的方法。

软件raid:只能通过Linux系统本身来查看

cat /proc/mdstat

可以看到raid级别,状态等信息。

硬件raid:最佳的办法是通过已安装的raid厂商的管理工具来查看,有cmdline,也有图形界面。如Adaptec公司的硬件卡就可以通过下面的命令进行查看:

# /usr/dpt/raidutil -L all

可以看到非常详细的信息。

当然更多情况是没有安装相应的管理工具,只能依靠Linux本身的话一般我知道的是两种方式:

# dmesg |grep -i raid

# cat /proc/scsi/scsi

显示的信息差不多,raid的厂商,型号,级别,但无法查看各块硬盘的信息。

另外Dell的服务器可以通过命令来显示,而HP、IBM等的服务器通过上面的命令是显示不出的。只能够通过装硬件厂商的管理工具来查看。

另:软raid有工具 mdadm可供查看:
[root@test]# mdadm --help
mdadm is used for building, managing, and monitoring
Linux md devices (aka RAID arrays)
Usage: mdadm --create device options...
            Create a new array from unused devices.
       mdadm --assemble device options...
            Assemble a previously created array.
       mdadm --build device options...
            Create or assemble an array without metadata.
       mdadm --manage device options...
            make changes to an existing array.
       mdadm --misc options... devices
            report on or modify various md related devices.
       mdadm --grow options device
            resize/reshape an active array
       mdadm --incremental device
            add/remove a device to/from an array as appropriate
       mdadm --monitor options...
            Monitor one or more array for significant changes.
       mdadm device options...
            Shorthand for --manage.
Any parameter that does not start with '-' is treated as a device name
or, for --examine-bitmap, a file name.
The first such name is often the name of an md device.  Subsequent
names are often names of component devices.

 For detailed help on the above major modes use --help after the mode
 e.g.
         mdadm --assemble --help
 For general help on options use
         mdadm --help-options


本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
mdadm命令参数详解
vmware下linux 软raid0 过程
linux下 mdadm 创建软RAID
raid管理的几个命令
Raid的学习和基础知识详解
[原]用mdadm管理软件RAID
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服