RAID for Linux

Source: Internet
Author: User

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]


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.