-bash-3.2# more /proc/mda
more: /proc/mda: No such file or directory
-bash-3.2# more /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb1[1] sda1[0]
251840 blocks [2/2] [UU]
md2 : active raid1 sdb2[1] sda2[2](F)
251840 blocks [2/1] [_U]
md3 : active raid1 sdb3[1] sda3[0]
251840 blocks [2/2] [UU]
-bash-3.2# /sbin/mdadm --misc --detail /dev/md2
/dev/md2
Version : 0.90
Creation Time : Thu Dec 13 20:51:43 2012
Raid Level : raid1
Array Size : 251840 (245.98 MiB 257.88 MB)
Used Dev Size : 251840 (245.98 MiB 257.88 MB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 2
Persistence : Superblock is persistent
Update Time : Thu Dec 13 21:12:11 2012
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 1
Spare Devices : 0
UUID : f6d4071f:70713bdc:067ea4b4:de7cc10e (local to host aroma)
Events : 0.70
Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 18 1 active sync /dev/sdb2
2 8 2 - faulty spare /dev/sda2
■/dev/sda2 をRAIDアレイから外す。
-bash-3.2# /sbin/mdadm --remove /dev/md2 /dev/sda2
mdadm: hot removed /dev/sda2 from /dev/md2
-bash-3.2# more /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb1[1] sda1[0]
251840 blocks [2/2] [UU]
md2 : active raid1 sdb2[1]
251840 blocks [2/1] [_U]
md3 : active raid1 sdb3[1] sda3[0]
251840 blocks [2/2] [UU]
unused devices: <none>
-bash-3.2# /sbin/mdadm --misc --detail /dev/md2
/dev/md2:
Version : 0.90
Creation Time : Thu Dec 13 20:51:43 2012
Raid Level : raid1
Array Size : 251840 (245.98 MiB 257.88 MB)
Used Dev Size : 251840 (245.98 MiB 257.88 MB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 2
Persistence : Superblock is persistent
Update Time : Thu Dec 13 21:16:37 2012
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : f6d4071f:70713bdc:067ea4b4:de7cc10e (local to host aroma)
Events : 0.84
Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 18 1 active sync /dev/sdb2
■RAIDを再構築する。
-bash-3.2# /sbin/mdadm --add /dev/md2 /dev/sda2
-bash-3.2# more /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb1[1] sda1[0]
251840 blocks [2/2] [UU]
md2 : active raid1 sda2[0] sdb2[1]
251840 blocks [2/2] [UU]
md3 : active raid1 sdb3[1] sda3[0]
251840 blocks [2/2] [UU]