RAID 1 in linux

I would certainly such as to arrangement RAID 1 with 2 drives in linux. I do not have an equipment RAID controller and also do not intend to acquire one, so what is the most effective software RAID alternative for linux?

Keep in mind: If it makes a distinction, I'm running Gentoo.

0
2019-05-05 02:01:37
Source Share
Answers: 2

You can make use of mdadm to take care of software raid on linux.

0
2019-05-08 07:41:41
Source

Use mdadm, examine the manpage. Nonetheless, I will certainly detail one gotcha below. If you do this and also actually desire integrity, you need to see to it your master boot document is replicated to both drives. By default it will likely just get replicated to one drive. If that drive passes away, you can not boot from the various other drive, despite the fact that all your information is secure.

To replicate the mbr to both drives, make use of something like dd to replicate the first 446 bytes of one drive to the various other.

dd if=/dev/sda of=/dev/sdb bs=446 count=1
.

If you're constructing the RAID in addition to the tools (/ dev/sda) as opposed to in addition to partions on the tools (/ dev/sda1), after that you possibly should not do what I am recommending due to the fact that you're creating information straight to the tool below the md vehicle driver. At the very least, I've never ever attempted it in this way.

0
2019-05-08 05:56:26
Source