
Then again use ‘ p‘ to print the changes what we have made.Īfter ‘ /dev/sdb‘ partition has been created, next follow the same instructions to create new partition on /dev/sdc drive. Choose ‘ fd‘ for Linux raid auto and press Enter to apply. Press ‘ L‘ to list all available types. Next press ‘ p‘ to print the defined partition. Give the default full size by just pressing two times Enter key. Then choose ‘ P‘ for Primary partition. Let’s create partitions on these two drives using ‘ fdisk‘ command and change the type to raid during partition creation. As I mentioned above, that we’re using minimum two partitions /dev/sdb and /dev/sdc for creating RAID1. # mdadm -E /dev/sdĪs you see from the above screen, that there is no any super-block detected yet, means no RAID defined. Once ‘ mdadm‘ package has been installed, we need to examine our disk drives whether there is already any raid configured using the following command.
So, let’s install the mdadm software package on Linux using yum or apt-get package manager tool. As I said above, we’re using mdadm utility for creating and managing RAID in Linux. Step 1: Installing Prerequisites and Examine Drivesġ. Although the same instructions also works on other Linux distributions such as RedHat, CentOS, Fedora, etc. This article will guide you through a step-by-step instructions on how to setup a software RAID 1 or Mirror using mdadm (creates and manages raid) on Linux Platform. Read Also: Basic Concepts of RAID in Linux My Server Setup Operating System :ĜentOS 6.5 Final Here we’re using software raid not a Hardware raid, if your system has an inbuilt physical hardware raid card you can access it from it’s utility UI or using Ctrl+I key. To add more disks, your system must have a RAID physical adapter (hardware card). Minimum Two number of disks are allowed to create RAID 1, but you can add more disks by using twice as 2, 4, 6, 8.
Reading will be good than writing data to drive.
No data loss in Mirroring if one disk fails, because we have the same content in both disks. Means if we have two disk with 500GB size total, it will be 1TB but in Mirroring it will only show us 500GB. However, the failed drive can be replaced from the running computer without any user interruption. When one disk fails, the same data can be retrieved from other functioning disk. Each disk in a mirror involves an exact copy of the data. Mirrors are created to protect against data loss due to disk failure. A minimum two number of disks are more required in an array to create RAID1 and it’s useful only, when read performance or reliability is more precise than the data storage capacity. RAID Mirroring means an exact clone (or mirror) of the same data writing to two drives.