Building a soft RAID disk array
When you get the video, rename it to RAID for Linux.exe so you can see!!
1. rpm-ivh/media/cdrom/server/mdadm-2.5.4-3.el5.i386.rpm
2. Add up to zero or more drives for the machine
3. Take 4 hard drives as an example/DEV/SDB/DEV/SDC/DEV/SDD/DEV/SDE partition and change ID for FD that is Linux RAID AutoDetect indicates support for RAID disk array fdisk/dev/sdb ...
4.partprobe re-probing the partition table (or rebooting the system)
Fdisk-l/dev/sd[b-e] |grep "^/DEV/SD"
5. Create a RAID device
Mdadm-cv/dev/md0-a yes-n4-l5/dev/sd[b-e]1
Ls-l/dev/md0
Cat/proc/mdstat
6.RAID device establishes file system and mounts automatically
Mkfs.ext3/dev/md0 Mount/dev/md0/mddata df-th
Vi/etc/fstab
/dev/md0/mddata ext3 defaults 0 0
7.MDADM-VDS/DEV/MD0 Scan to view disk array information
8.vi/etc/mdadm.conf
Device/dev/sdb1/dev/sdc1/dev/sdd1/dev/sde1
ARRAY/dev/md0level=raid5num-devices=4uuid= find devices=/dev/sdb1,/from above Dev/sdc1,/dev/sdd1,/dev/sde1
CREATEowner=rootgroup=rootmode=0640
9. Start the array mdadm-a/dev/md0 turn off the array mdadm-s/dev/md0
11. Analog Fault mdadm/dev/md0-f/dev/sde1-Cat/proc/mdstat
12. Remove the faulty device mdadm/dev/md0-r/dev/sde1 Add a mdadm/dev/md0-a/dev/sde1
Finally you take a look at Cat/proc/mdstat View Synchronization ^_^ _ ^_^ _ ^_^ _ ^_^ _^
Mdadm--create--auto=yes/dev/md0--level=5--raid-devices=4--spare-devices=1/dev/sd[b-f]
Mdadm-c/dev/md0-l5-n4-x1/dev/sd[b-f]