Storage Space Virtual Disk Disconnected on Restart

So I recently had to rebuild my Server 2012 virtual server. I had storage spaces setup and after I finished the install the Virtual Disk was not mounted. I realized that I was able to bring it all back online, but every restart it had to remount the VHD.

I had decided there must be a way to fix it and decided to see what the properties were within PowerShell. I ran a Get-VirtualDisk which showed me my single VHD (pictured below)

I was thrilled when I saw the IsManualAttach property, with a simple execution of Set-VirtualDisk Data -IsManualAttach 0, I executed a Get-VirtualDisk and verified it took the settings change. After a restart the VirtualDisk was already mounted and resolved my problem with only two PowerShell commands.

Love it? Share it!

5 thoughts on “Storage Space Virtual Disk Disconnected on Restart”

  1. so you are saying that IsManualAttach was originally set to true and that you set this to false.

    Set-VirtualDisk -FriendlyName "name" -IsmanualAttach 0

  2. Brilliant! I couldn’t figure out why the VHDs kept unmounting on reboot – thanks Matt! P.S. For others, make sure you are running PowerShell as an admin.

Leave a Reply to Michael Cancel Reply

Your email address will not be published. Required fields are marked *