virtual hardware raid

tincboy

Renowned Member
Apr 13, 2010
466
6
83
I wonder if it's possible to connect two hdd files to a KVM VM and configure QEMU to use them as hardware raid? ( not doing it by software raid in the VM )
It's use full when a physical server has two real HDD drives but no hardware raid controller,
 
hardware raid is hardware raid, you cannot create hardware with software. but if you can figure this out, you will be a rich man ...

but maybe I did not understand your question.
 
hardware raid is hardware raid, you cannot create hardware with software. but if you can figure this out, you will be a rich man ...

but maybe I did not understand your question.
Thanks Tom,

I mean we simulate hardware raid for VM with software configuration on host server,
 
Hi,
not tested, but if you create an softwareraid on pve (eg. /dev/md0) and use something like "ide1: /dev/md0" in the vm-config should that work (why not).

But what is the benefit?

Udo

I want to simulate hardware raid for VM on a dedicated server which has two HDD but no hardware raid.
 
I want to simulate hardware raid
lol ! but seriously, that's just dumb imho. a disk dies, and you have to take down the whole system to replace it. kinda defies the purpose of a raid. dont be cheap, get a hw raid card (as example a 3ware card is not expensive at all nowadays), and spare yourself the trouble you'll run into once something goes wrong.