In Linux, how does one configure RAID1?

Source: Internet
Author: User
Article Title: how to configure RAID1 in Linux ?. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

In Linux, how does one configure RAID1?

A: First, the Linux kernel supports RAID. The first step is to purchase two identical hard disks and divide them into partitions of the same size. Then you can download the mdadm tool to create and manage RAID arrays.

Run the following command to create your first array on the disk:

# Modprobe md
# Mdadm -- create -- verbose/dev/md0 -- level = 1 -- raid-devices = 2/dev/hda1/dev/hde1

The preceding command creates an array (/dev/md0) and maps it to two physical disks (/dev/hda1 and/dev/hde1 ). This RAID array is called RAID 1, that is, the direct image mode. After the partition is created, You Can format it and operate it like other partitions.

RAID does not require any configuration files. The RAID array takes effect immediately when the system is started. Therefore, you can perform any operations on RAID devices like other physical partitions.

 

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.