tswxl:~# mdadm -a /dev/md0 /dev/sdb1
md: bind<sdb1>
RAID1 conf printout:
--- wd:1 rd:2
disk 0, wo:0, o:1, dev:sda1
disk 1, wo:1, o:1, dev:sdb1
md: recovery of RAID array md0
md: minimum _guaranteed_ speed: 1000 KB/sec/disk.
md: using maximum available idle IO bandwidth (but not more than 50000 KB/sec) for recovery.
md: using 128k window, over a total of 999872 blocks.
mdadm: added /dev/sdb1
tswxl:~# cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4]
md1 : active raid1 sda2[0]
4999936 blocks [2/1] [U_]
md10 : active raid1 sda5[0]
999872 blocks [2/1] [U_]
md0 : active raid1 sdb1[2] sda1[0]
999872 blocks [2/1] [U_]
[======>..............] recovery = 34.9% (350080/999872) finish=0.2min speed=50012K/sec
unused devices: <none>
tswxl:~#
しばらくして、、、、
tswxl:~# md: md0: recovery done.
RAID1 conf printout:
--- wd:2 rd:2
disk 0, wo:0, o:1, dev:sda1
disk 1, wo:0, o:1, dev:sdb1
cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4]
md1 : active raid1 sda2[0]
4999936 blocks [2/1] [U_]
md10 : active raid1 sda5[0]
999872 blocks [2/1] [U_]
md0 : active raid1 sdb1[1] sda1[0]
999872 blocks [2/2] [UU]
unused devices: <none>
tswxl:~#
/dev/md1
tswxl:~# mdadm -a /dev/md1 /dev/sdb2
md: bind<sdb2>
RAID1 conf printout:
--- wd:1 rd:2
disk 0, wo:0, o:1, dev:sda2
disk 1, wo:1, o:1, dev:sdb2
md: recovery of RAID array md1
md: minimum _guaranteed_ speed: 1000 KB/sec/disk.
md: using maximum available idle IO bandwidth (but not more than 50000 KB/sec) for recovery.
md: using 128k window, over a total of 4999936 blocks.
mdadm: added /dev/sdb2
tswxl:~# cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4]
md1 : active raid1 sdb2[2] sda2[0]
4999936 blocks [2/1] [U_]
[>....................] recovery = 1.9% (95488/4999936) finish=1.6min speed=48705K/sec
md10 : active raid1 sda5[0]
999872 blocks [2/1] [U_]
md0 : active raid1 sdb1[1] sda1[0]
999872 blocks [2/2] [UU]
unused devices: <none>
tswxl:~# md: md1: recovery done.
RAID1 conf printout:
--- wd:2 rd:2
disk 0, wo:0, o:1, dev:sda2
disk 1, wo:0, o:1, dev:sdb2
tswxl:~# !cat
cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4]
md1 : active raid1 sdb2[1] sda2[0]
4999936 blocks [2/2] [UU]
md10 : active raid1 sda5[0]
999872 blocks [2/1] [U_]
md0 : active raid1 sdb1[1] sda1[0]
999872 blocks [2/2] [UU]
unused devices: <none>
tswxl:~#
/dev/md10
tswxl:~# mdadm -a /dev/md10 /dev/sdb5
md: bind<sdb5>
RAID1 conf printout:
--- wd:1 rd:2
disk 0, wo:0, o:1, dev:sda5
disk 1, wo:1, o:1, dev:sdb5
md: recovery of RAID array md10
md: minimum _guaranteed_ speed: 1000 KB/sec/disk.
md: using maximum available idle IO bandwidth (but not more than 50000 KB/sec) for recovery.
md: using 128k window, over a total of 999872 blocks.
mdadm: added /dev/sdb5
tswxl:~# cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4]
md1 : active raid1 sdb2[1] sda2[0]
4999936 blocks [2/2] [UU]
md10 : active raid1 sdb5[2] sda5[0]
999872 blocks [2/1] [U_]
[====>................] recovery = 24.9% (250112/999872) finish=0.2min speed=50023K/sec
md0 : active raid1 sdb1[1] sda1[0]
999872 blocks [2/2] [UU]
unused devices: <none>
tswxl:~# md: md10: recovery done.
RAID1 conf printout:
--- wd:2 rd:2
disk 0, wo:0, o:1, dev:sda5
disk 1, wo:0, o:1, dev:sdb5
tswxl:~# cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4]
md1 : active raid1 sdb2[1] sda2[0]
4999936 blocks [2/2] [UU]
md10 : active raid1 sdb5[1] sda5[0]
999872 blocks [2/2] [UU]
md0 : active raid1 sdb1[1] sda1[0]
999872 blocks [2/2] [UU]
unused devices: <none>
tswxl:~#
再起動して確認
念のため、再起動して確認
tswxl:~# shutdown -r now
INIT: Switching to runlevel: 6
INIT: Sending processes the TERM signal
:
:
Debian GNU/Linux 5.0 tswxl ttyS0
tswxl login: root
Password:
Last login: Fri May 7 06:24:51 JST 2010 on ttyS0
Linux tswxl 2.6.22.18-mv78100 #134 Thu Feb 4 11:14:40 JST 2010 armv5tejl
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
tswxl:~# cat /proc/mdstat
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4]
md1 : active raid1 sda2[0] sdb2[1]
4999936 blocks [2/2] [UU]
md10 : active raid1 sda5[0] sdb5[1]
999872 blocks [2/2] [UU]
md0 : active raid1 sda1[0] sdb1[1]
999872 blocks [2/2] [UU]
unused devices: <none>
tswxl:~#
|