Linux CentOS 5.5 软RAID10 (二)配置成RAID10
一.用准备好的 四块磁盘创建 RAID10
[root@localhost dev]# mdadm --create --auto=yes /dev/md10 --level=10 --raid-devices=4 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1
mdadm: /dev/sdb1 appears to contain an ext2fs file system
size=2088128K mtime=Wed Apr 20 01:39:41 2011
mdadm: /dev/sdb1 appears to be part of a raid array:
level=raid0 devices=2 ctime=Wed Apr 20 01:35:41 2011
mdadm: /dev/sdc1 appears to be part of a raid array:
level=raid0 devices=2 ctime=Wed Apr 20 01:35:41 2011
mdadm: /dev/sdd1 appears to contain an ext2fs file system
size=2088128K mtime=Wed Apr 20 01:39:41 2011
mdadm: /dev/sdd1 appears to be part of a raid array:
level=raid0 devices=2 ctime=Wed Apr 20 01:36:08 2011
mdadm: /dev/sde1 appears to be part of a raid array:
level=raid0 devices=2 ctime=Wed Apr 20 01:36:08 2011
Continue creating array? y
mdadm: array /dev/md10 started.
查看一下
[root@localhost dev]# cat /proc/mdstat
Personalities : [raid0] [raid10]
md10 : active raid10 sde1[3] sdd1[2] sdc1[1] sdb1[0]
2088192 blocks 64K chunks 2 near-copies [4/4] [UUUU]
[=====>...............] resync = 29.5% (618048/2088192) finish=0.4min speed=51504K/sec
unused devices: <none>
二.格式化刚创建好的raid10
[root@localhost dev]# mkfs -t ext3 /dev/md10
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
261120 inodes, 522048 blocks
26102 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=536870912
16 block groups
32768 blocks per group, 32768 fragments per group
16320 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (8192 blocks):
done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 22 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@localhost dev]#
[root@localhost dev]# cat /proc/mdstat
Personalities : [raid0] [raid10]
md10 : active raid10 sde1[3] sdd1[2] sdc1[1] sdb1[0]
2088192 blocks 64K chunks 2 near-copies [4/4] [UUUU]
[================>....] resync = 84.1% (1758144/2088192) finish=0.1min speed=30868K/sec
unused devices: <none>