How to use fakeraid/dmraid with gpt?

1

So I recently set up Intel RST RAID on my Gigabyte z77‑d3h with UEFI firmware. The UEFI system recognizes the new RAID array instead of two disk and load bootx64.efi from the array.

The RAID array is a Windows/Linux dual‑boot system. I had no problem with Windows, as it simply recognized the RAID array instead of two disks (I didn’t had to reconfigure or install anything). The individual disks don't even show up in devmgmt.msc.

However, in Linux I have still /dev/sdaXX and /dev/sdbXX (where XX is the partition number). Only /dev/dm‑0 is created automatically by the kernel. But there aren’t sub block devices for partitions because dmraid knows nothing about gpt.

I tried to use software RAID. However, even for simple mirroring, mdadm require using metadata which won’t be understood by Windows®.

So how do I use an fake RAID array in Linux with GPT?

user2284570

Posted 2016-01-11T13:05:43.847

Reputation: 1 160

Please specify the exact Gigabyte motherboard. You are assuming you have hardware raid but as pointed out in an answer, this is very unlikely. – ChrisInEdmonton – 2016-01-11T14:13:35.183

@ChrisInEdmonton : see my edit.

– user2284570 – 2016-01-11T14:55:17.577

It is indeed the case that the Z77 chipset does not do hardware RAID, only software RAID (aka 'fakeRAID'). That's fine, for RAID0 and RAID1, you almost certainly don't care (and may not for RAID5), but hopefully this will guide you into setting up the fakeRAID in Linux. – ChrisInEdmonton – 2016-01-11T14:59:04.190

Answers

-1

Do you have a hardware raid? or a software assisted hardware raid(also called soft raid). manufacturors can be pretty deceptive about what they actually sold you in this space.

UEFI sees the first FAT partition and boots from it, and the configuration might simple mirror that partition on both disks. Just because a efi partition is seen don't prove you have raid it might simply be two mirrored filesystems.

On boot windows will load a driver and let the driver handle the raid ie it's software raid in all but name but windows don't always show this to the user. Linux tend to not ship soft raid drives in "the mainline tree" even when the manufacturers supply them because they have historically been problematic, and rarely actually provide benefits over the more optimized dmraid module.

Some vendors supply linux drivers for softraid controllers but it's one of the few exeptions where you actually need to go and download drivers on linux.

The typical difference here is that softraid controllers tend to depend on CPU offloading which makes them cheaper and usually slower then the full raid controllers you find in better server class hardware.

dudsen

Posted 2016-01-11T13:05:43.847

Reputation: 7

Did you pay attention to the question title and tags ? Or do you want me to add the controller is an Intel one ? ᴜᴇꜰɪ doesn’t use exfat. Your answer is full of wrong things. – user2284570 – 2016-01-11T13:44:21.457

1exfat is the closed standard analogue to the FAT32 filesystem the UEFI system stores boot64.efi on that script/application is what defines how the system is booted. as long as that application contains the right information the OS will load. – dudsen – 2016-01-11T14:05:38.630

Yes but no uefi firmware can read exfat. – user2284570 – 2016-01-11T14:17:08.153

It have to read FAT32 it's in the specs. But the firmware doesn't actually read the OS's filesystem it just runs an executable with just enough capabilities to bootstrap a kernel. – dudsen – 2016-01-11T14:23:32.547

ꜰᴀᴛ32 or ꜰᴀᴛ16 isn’t exfat. I compiled my kernel as an uefi application which is loaded as a windows installation by the windows® boot manager. – user2284570 – 2016-01-11T14:57:13.293

Are there any way to get partition block devices for the automatically created /dev/dm-0? – user2284570 – 2016-01-11T16:00:33.543

you probably want to take a look at this http://www.intel.com/content/www/us/en/intelligent-systems/software/rst-linux-paper.html

– dudsen – 2016-01-11T16:08:16.020

which require flash player. – user2284570 – 2016-01-11T18:39:56.413

"UEFI sees the first FAT partition" - You mean FAT32? Please be specific little details like that actually matter. – Ramhound – 2016-01-15T20:42:49.520