Score:0

different mdadm RAID on same disk?

sd flag
gcb

I am looking for factual knowledge or actual measurements to validate or not my idea. Please, hold answers without data just saying it is a weird idea because not the most common setup.

short question: Are the concrete problems on running two raids such as

sda    sdb  
sda1 + sdb1 => raid0 md1
sda2 + sdb2 => raid1 md2

both disks are GPT partitions with same model and layout. there's also spare disks with a single partition acting as spares for md1.

long version: I have a small server that had 2 HDD software raid1 (mdadm) for backup data. Data usage is very low (<10%). and 2 HDD for raid0 (disposable vm images).

I am now replacing the (still good) old drivers with new ones and the capacity is much bigger. My plan was to just increase the raid capacities, but now i am thinking about keeping the same and using partition raid instead of whole disk (that alone seems to offer many benefits)

My idea now is to partition the new driver (double capacity) in two partitions. One for raid0 another for raid1. both doesn't see much use other than occasional spikes (that are almost guaranteed to not happen at the same time as backups happen when the vm pool is offline)

stark avatar
mu flag
It's always better to use partitions than whole disk because with whole disk there is no label. There's nothing wrong with the raid layout you described. I've had raid 0, 1 and 5 on different partitions of the same disk.
Score:1
ca flag

Yes, you can do what you described without issues.

Partitions are true block devices and so you can arrange them in any RAID level do you want. For example on a test machine I have a 4-way RAID1 boot array, while using a RAID10 array for the main data filesystem.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.