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.