大佬教程收集整理的这篇文章主要介绍了linux – 检查RAID软件:我的状态,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
root@Ubuntu-1204-precise-64-minimal # cat /proc/mdstat Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md3 : active raid1 sda4[0] sdb4[1] 1839089920 blocks super 1.2 [2/2] [UU] md1 : active raid1 sda2[0] sdb2[1] 523968 blocks super 1.2 [2/2] [UU] md2 : active raid1 sda3[0] sdb3[1] 1073610560 blocks super 1.2 [2/2] [UU] md0 : active raid1 sdb1[1] sda1[0] 16768896 blocks super 1.2 [2/2] [UU] unused devices: <none> root@Ubuntu-1204-precise-64-minimal # mdadm -D /dev/md0 /dev/md0: Version : 1.2 Creation Time : Wed Nov 6 08:02:41 2013 Raid Level : raid1 Array Size : 16768896 (15.99 Gib 17.17 GB) Used Dev Size : 16768896 (15.99 Gib 17.17 GB) Raid Devices : 2 @R_631_10586@l Devices : 2 Persistence : Superblock is persistent update Time : Thu Sep 10 04:02:26 2015 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 Name : rescue:0 UUID : 872ad258:c42ccb36:e9e19c96:98b55ee9 Events : 156 number Major Minor RaidDevice State 0 8 1 0 active sync /dev/sda1 1 8 17 1 active sync /dev/sdb1
这是否意味着RAID正在运行并且我的所有驱动器都是同步的?如果没有,如何检查驱动器是否已同步并且更换磁盘是否安全?
谢谢.
州:干净
和
[UU]
是一些重要的通知符,表明事物正在按照您的阵列工作.
您可以在md上的内核文档中仔细检查
clean - no pending writes,but otherwise active. When written to inactive array,starts without resync If a write request arrives then if Metadata is kNown,mark 'dirty' and switch to 'active'. if not kNown,block and switch to write-pending If written to an active array that has pending writes,then fails.
和mdstat上的Linux内核维基
从wiki条目中解释:
如果您想设置电子邮件以提醒您软件raid阵列是否存在问题,那么您可以使用Ubuntu论坛中的这篇文章:http://ubuntuforums.org/showthread.php?t=1185134,它将引导您完成设置电子邮件到远程帐户的过程.
如果你想仔细检查数组是否正常,你总是可以使用这个命令:/usr/share / mdadm / checkarray -a / dev / mdX这个命令也应该在/etc/cron.d/mdadm中并且每月运行一次.
除此之外,如果您怀疑即将发生的硬件故障未能触发阵列故障,则可能运行的smartctl可能是合理的.例子可以在这里找到:SMART checks with smartctl
最后,因为这绝不能说太多:确保您拥有良好的测试备份! = D Raid是非常好的,但它不能替代备份,当您知道备份时,来自您的提供商的消息不那么可怕. =)
希望有所帮助. =)
以上是大佬教程为你收集整理的linux – 检查RAID软件:我的状态全部内容,希望文章能够帮你解决linux – 检查RAID软件:我的状态所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。