Vine Linux 5.2 (Palmer) 8 -RAID- 8

[*] mdmonitor [*] mdmpd   mail to microSD Crash!

[root@sd /]# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdc1[0]
   7350592 blocks [2/1] [U_]
unused devices: < none >

[root@sd /]# mdadm --fail /dev/md0 /dev/sdd1
mdadm: set /dev/sdd1 faulty in /dev/md0

[root@sd /]# mdadm --remove /dev/md0 /dev/sdd1
mdadm: hot removed /dev/sdd1

xxxxxx Change microSD xxxxxx

[root@sd /]# fdisk /dev/sdb

Command (m for help): p

Disk /dev/sdd: 8010 MB, 8010072064 bytes
247 heads, 62 sectors/track, 1021 cylinders
Units = cylinders of 15314 * 512 = 7840768 bytes
Disk identifier: 0xdad8888a
   Device Boot     Start     End    Blocks   Id    System
/dev/sdb1  *         1       960   7350689  fd    Linux raid autodetect
/dev/sdb2          961      1021   467077  82   Linux swap / Solaris

Command (m for help): q

[root@sd /]# grub
 grub> device (hd0) /dev/sdb
 grub> root (hd0,0)
 grub> install /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/grub.conf
 grub> quit

[root@sd /]# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdc1[0]
   7350592 blocks [2/1] [U_]
unused devices: < none >

[root@sd /]# mdadm /dev/md0 --add /dev/sdb1
mdadm: re-added /dev/sdb1

[root@sd /]# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdb1[1] sdc1[0]
   7350592 blocks [2/2] [UU]
unused devices: < none >

[root@sd /]# free
              total       used      free     shared    buffers    cached
Mem:        497228    86264     410964      0       7532      41964
-/+ buffers/cache:     36768     460460
Swap:   467068      0        467068

[root@sd /]# mkswap /dev/sdb2
[root@sd /]# swapon -a
[root@sd /]# swapon -s

[root@sd /]# free
              total       used      free     shared    buffers    cached
Mem:        497228    86264     410964      0       7532      41964
-/+ buffers/cache:     35488     461740
Swap:   934136      0        934136

[root@sd /]#