RAID 0/1/5/10 分为0.1.5.10 RAID 0 :以条带得方式进行存储 (2个磁盘) RAID 1:以镜像方式进行存储 (2个磁盘) RAID 5:条带+分布校验 (3个磁盘及以上) RAID10:镜像+条带 (4个磁盘以上)
- RAID 0
- ls /dev/sd{a,b,c}1
- yum install mdadm
- mdadm -C -v /dev/md0 -l 0 -n 2 /dev/sdb1 /dev/sdc1
- ll /dev/md0
- mdadm -Ds (查看信息) 7.mdadm -Ds /dev/md0 查看详情信息 8.mdadm -Ds > /etc/mdadm.conf 9.fdisk /dev/md0 10.ll /dev/md0 11.mkfs.xfs /dev/mdop1 12.mkdir /mnt/md0 13.mount /dev/md0p1 /mnt/md0 14.blkld |grep md0 15.vi /etc/fstab 16.tail -l /etc/fstab