RAID 0/1/5/10 分为0.1.5.10 RAID 0 :以条带得方式进行存储 (2个磁盘) RAID 1:以镜像方式进行存储 (2个磁盘) RAID 5:条带+分布校验 (3个磁盘及以上) RAID10:镜像+条带 (4个磁盘以上)

  1. RAID 0
  2. ls /dev/sd{a,b,c}1
  3. yum install mdadm
  4. mdadm -C -v /dev/md0 -l 0 -n 2 /dev/sdb1 /dev/sdc1
  5. ll /dev/md0
  6. 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