标签:
以下问题是nagios监控不到的?
<1>
d238 ~ # cat /proc/mdstat
Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] [faulty]
md1 : active raid1 sdb1[1] sda1[0]
112320 blocks [2/2] [UU]
md2 : active raid10 sdc2[2] sdd2[3] sdb2[1] sda2[0]
33574912 blocks 512K chunks 2 far-copies [4/4] [UUUU]
md3 : active raid10 sdc3[2] sdd3[3] sdb3[1] sda3[0]
33574912 blocks 512K chunks 2 far-copies [4/4] [UUUU]
md4 : active raid5 sdc4[2] sdd4[3] sdb4[1] sda4[0]
2829214464 blocks level 5, 256k chunk, algorithm 2 [4/4] [UUUU] //这种状态是不正确的.
<2>
d237 ~ # cat /proc/mdstat
Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] [faulty]
md127 : inactive sdc4[2](S) sda4[0](S) sdb4[3](S) //变md号,且都是slave状态.
2829214848 blocks
md1 : active raid1 sda1[0]
112320 blocks [2/1] [U_]
md2 : active raid10 sdc2[2] sdb2[3] sda2[0]
33574912 blocks 512K chunks 2 far-copies [4/3] [U_UU]
md3 : active raid10 sdc3[2] sdb3[3] sda3[0]
33574912 blocks 512K chunks 2 far-copies [4/3] [U_UU]
解决===>???
示例:重命名/dev/md0到/dev/md3
正常情况:
mdadm -S /dev/md2
mdadm -A /dev/md2 /dev/sd[ab]2
缺失一块盘(sda2)的情况
mdadm -S /dev/md2
mdadm -E /dev/sdb2 得到uuid
mdadm -A /dev/md2 --uuid=063d9f6b:d6a208aa:cb201669:f728008a
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
db101 ~ # fdisk -l|grep "^/dev"
/dev/sda1 * 2048 206847 102400 83 Linux
/dev/sda2 206848 67315711 33554432 82 Linux swap / Solaris
/dev/sda3 67315712 193144831 62914560 83 Linux
/dev/sda4 193144832 1169686527 488270848 83 Linux
/dev/sdb1 2048 1169686527 584842240 83 Linux
/dev/sdc1 2048 1169686527 584842240 83 Linux
/dev/sdd1 2048 1169686527 584842240 83 Linux
/dev/sde1 2048 1169686527 584842240 83 Linux
/dev/sdf1 * 2048 488378644 1953506388 7 HPFS/NTFS/exFAT
标签:
原文地址:http://www.cnblogs.com/itcomputer/p/4654493.html