16

Well, the title of my question pretty much sums it up, but let me elaborate. The main idea of what I want to do is as follows:

1) I have two separate hard disks, with nearly equal performance. I use them as "basic" discs (contrast to "windows dynamic disks"), and intend to keep them that way for numerous reasons.

2) However, sometimes I want to use some advantages of Software RAID, that dynamic disks offer.

3) Windows 7, after just some 15 years now, finally caught up with Linux (and its "loop devices") and introduced a notion of "virtual hard disk", which is really a file on a real hard disk.

4) So, I wanted to create two virtual hard disk files on my two different hard disks, make them dynamic, format them, and finally join into one, for example, striped volume (aka RAID 0). This way my real hard drives stay "basic", and I get all advantages of "dynamic".

It looked like a nice idea to me, with no indication, that it might not work, yet it failed. Turns out, even though you can make dynamic virtual hard drives, you can't join them into RAID for no apparent reason (relevant menu items in Disk Management are grayed out).

Microsoft says

You cannot configure two attached VHDs to be a dynamically expanding VHD. A dynamically expanding VHD is a physical disk that you have initialized for dynamic storage. It contains dynamic volumes such as simple, spanned, striped, or mirrored volumes or RAID-5 volumes.

i.e "It can't be done, because it can't be done, so get lost now."

I guess, I can find another ways to achieve what I want (i.e software raid without making my discs dynamic). But I want to make it without using third-party tools and drivers, in a fully "system-supported" way.

Therefore, the question is: Does anyone know some kind of not-very-dirty hack to make it work?

6
  • 1
    +1, good question. I can see myself possibly using this as well, but you might want to extend the question to allow for alternative disk formats (i.e. not only the VHD format). Commented Aug 31, 2011 at 14:06
  • 1
    What I want to know is how Disk Management knows that it is a virtual disk to treat it differently. Getting it to appear as a regular disk would be one way to fix it. +1 I hate stupid limitations like this. Commented Aug 31, 2011 at 14:45
  • 1
    That MS quote is kind of whacked. There seems to be confusion between Dynamically Expanding VHDs, and a drive prepared as a Dynamic Volume. Commented Sep 2, 2011 at 13:38
  • 1
    "dynamically expanding" : how about trying fixed-size VHDs ?
    – harrymc
    Commented Sep 2, 2011 at 16:22
  • 1
    @harrymc - That was one of my questions as well (But I guess I never asked. ;) : Were you using fixed-size VHDs when trying this? Commented Sep 2, 2011 at 19:50

2 Answers 2

5
+50

I convert my comment to an answer, as the comment by @C0D3M0NK3Y confirms it.

Windows will not accept dynamic virtual disks in a RAID, but the comment by @C0D3M0NK3Y confirms that fixed-size disks used to work in XP Professional. There is therefore an excellent chance that fixed-size virtual disks will still work with RAID in Windows 7.

It is actually quite logical that Windows cannot create a RAID over dynamic disks whose size is unknown and can change at any moment.


EDIT/ADD:

Had to try it to see either way for sure, and it works (when using fixed-sized VHDs):

Host OS: Windows 7 Ultimate, with two "Basic" disks.

VM OS: Vista Ultimate.

Created two "fixed sized" VHD's of 500MB each, one on each of the host's physical disks, and attached them to the VM (as the 2nd and 3rd drives).

Initialized the new disks in the VM and then converted them to "Dynamic" disks (in Vista's Disk Management).

Then joined them together into a RAID0 (stripe):

Span in a VM

Volume Size

Worked like a charm, without any need to do anything 'weird'.

14
  • 2
    I'm not sure how CodeMonkey's comments really confirm or deny anything to do with VHD's, as XP doesn't have anything inherent for creating or dealing with VHDs? Did you actually try it (yet)? :) Commented Sep 5, 2011 at 6:13
  • 1
    @techie007: I didn't and won't try it, and he probably used a 3rd-party product. But it sounds very logical and so worth trying by the poster. And didn't you yourself just validated my answer? But why did you post it as a separate answer from mine ?
    – harrymc
    Commented Sep 5, 2011 at 7:27
  • I posted it as a separate answer because it was a tested answer of "Yes it works", vs. "It should logically work, and someone else says it worked for them once in XP" with no info on how they did it. If others agree, I'll happily axe my answer and move the contents into yours (or something). It's not like either of us need the bounty. ;) Commented Sep 5, 2011 at 7:34
  • @techie007: I am happy that my answer has inspired you to verify it for the benefit of the poster and the SU site. I leave any decision in your hands (if you decide to edit mine, you have my blessings).
    – harrymc
    Commented Sep 5, 2011 at 8:43
  • 2
    Fixed size virtual hard disks don't work in Windows 7, unfortunately. It only works inside a VM, not outside. Commented Jan 22, 2012 at 0:12
0

There is a way to fool Windows into striping VHDs by using Storage Spaces. 1- Create a VHD in each hard (physical) drive, in my case 4 drives, 4 VHDs. 2- From Storage Spaces create 4 pools, with one VHD in each of them. (Windows 7,8, Windows Server 2008+) 3- Create 1 volume with simple (no resilience) in each pool 4- Now you will have 4 logical disks controlled by Microsoft Storage Spaces Controller. You can stripe all of them together.

I have screenshots but I'm unable to upload them as my reputation is not enough yet.

Tested and works for Windows 8.1 , I have seen increase in performance. Just did it for experiment though, maybe I can use like a scratch disk for photoshop, too risky to store data you might need later.

2
  • To improve the storage spaces answer... You don't have to do anything special as far as creating the vhds on separate drives. Simply create all your vhds, then launch storage spaces and bind them together. Then on boot do an automount of all the vhds used by the storage space - then storage space will happily come in to existence again. Works like a charm
    – Steve
    Commented Nov 17, 2014 at 21:00
  • I am trying this with Windows 10 storage space and it does not allow me to mirror disks, Has anyone tested this with windows 10 storage space?
    – Allan Xu
    Commented Dec 15, 2016 at 15:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .