=====创建Raid50的步骤======
1、创建分区
[[email protected] ~]# fdisk /dev/sdb
[[email protected] ~]# fdisk /dev/sdc
[[email protected] ~]# fdisk /dev/sdd
[[email protected] ~]# fdisk /dev/sde
[[email protected] ~]# fdisk /dev/sdf
[[email protected] ~]# fdisk /dev/sdg
[[email protected] ~]# fdisk /dev/sdh
[[email protected] ~]# fdisk /dev/sdi
2、查看Raid的版本以及帮助
[[email protected] ~]# mdadm --verson
[[email protected] ~]# mdadm -V
[[email protected] ~]# mdadm --help
3、查看系统是否支持Raid
[[email protected] ~]# cat /proc/devices
[[email protected] ~]# cat /proc/devices | grep md
[[email protected] ~]# ls /dev/md*
4、创建Raid5
[[email protected] ~]# mdadm -C /dev/md0 -l5 -n3 -x1 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1
[[email protected] ~]# mdadm -C /dev/md1 -l5 -n3 -x1 /dev/sdf1 /dev/sdg1 /dev/sdh1 /dev/sdi1
5、查看Raid5
[[email protected] ~]# ls /dev/md*
[[email protected] ~]# mdadm -Ds
[[email protected] ~]# mdadm -Ds /dev/md0
[[email protected] ~]# mdadm -Ds /dev/md1
6、格式化Raid5(此步骤可省略)
注意:可使用Raid5
[[email protected] ~]# mkfs -t ext4 /dev/md0
[[email protected] ~]# mkfs -t ext4 /dev/md1
7、创建Raid50
原理:将2个Raid5生成1个Raid0
[[email protected] ~]# mdadm -C /dev/md2 -l0 -n2 /dev/md0 /dev/md1
[[email protected] ~]# ls /dev/md*
8、格式化Raid50
[[email protected] ~]# mkfs -t ext4 /dev/md2
9、挂载使用
[[email protected] ~]# mkdir /www
[[email protected] ~]# mount /dev/md2 /www/
[[email protected] ~]# df -hT
原文地址:https://www.cnblogs.com/luoyan01/p/9733759.html