How to Fix Storage Space Direct Virtual Disk Detached after Server Reboot

      Comments Off on How to Fix Storage Space Direct Virtual Disk Detached after Server Reboot

031020 1729 HowtoFixSto1 - How to Fix Storage Space Direct Virtual Disk Detached after Server Reboot

Today, my customer is call me and said their VMs are disappear at Windows Server 2019 Hyper-V host after reboot, I noticed the virtual disk detached, the VMs are up and running after I re-attach the virtual disk, but the issue was not be fixed because when I try to reboot the Windows Server 2019 Hyper-V host and the virtual disk detached again.

031020 1729 HowtoFixSto2 - How to Fix Storage Space Direct Virtual Disk Detached after Server Reboot

I am going to show you how to fix this issue by following steps.

  1. Login to the Windows Server 2019 Hyper-V host server.
  2. Open Server Manager select File and Storage Services.

    031020 1729 HowtoFixSto3 - How to Fix Storage Space Direct Virtual Disk Detached after Server Reboot

  3. On the File and Storage Services page, select Storage Pools.

    031020 1729 HowtoFixSto4 - How to Fix Storage Space Direct Virtual Disk Detached after Server Reboot

  4. on the Storage Pools, select the storage Pool, right-click the virtual disk which detached and click Properties.

    031020 1729 HowtoFixSto5 - How to Fix Storage Space Direct Virtual Disk Detached after Server Reboot

  5. on the Properties page, expend Details, select IsManualAttach from the virtual disk Property.

    031020 1729 HowtoFixSto6 - How to Fix Storage Space Direct Virtual Disk Detached after Server Reboot

  6. You will see the Value is True, this is the root cause of virtual disk detached after server reboot.

    031020 1729 HowtoFixSto7 - How to Fix Storage Space Direct Virtual Disk Detached after Server Reboot

  7. We can use PowerShell cmdlet to change the Value from True to False.
    
    
    Get-VirtualDisk | Where-Object {$_.IsManualAttach –EQ  $True} | Set-VirtualDisk –IsManualAttach $False
    
    
    

    031020 1729 HowtoFixSto8 - How to Fix Storage Space Direct Virtual Disk Detached after Server Reboot

  8. The virtual disk attaches atomically. And the virtual disk detached issue won’t happen after server reboot.

    031020 1729 HowtoFixSto9 - How to Fix Storage Space Direct Virtual Disk Detached after Server Reboot

  9. Open Hyper-V Manager, all VMs are up and running again.

    031020 1729 HowtoFixSto10 - How to Fix Storage Space Direct Virtual Disk Detached after Server Reboot

Hope you enjoy this post.

Cary Sun

Twitter: @SifuSun

ca16fbd3199de5f66b829b87082fb970?s=80&d=retro&r=g - How to Fix Storage Space Direct Virtual Disk Detached after Server Reboot

Author: Cary Sun

Cary Sun is an Principal Consultant, He has a strong background specializing in datacenter and deployment solutions, and has spent over 20 years in the planning, design, and implementation of network technologies and Management and system integration.He hold CISCO CERTIFIED INTERNETWORK EXPERT (CCIE No.4531) from 1997.Cary is also a Microsoft Most Valuable Professional (MVP) and Cisco Champion, He is a published author with serveral titles, include blogs on Checkyourlogs.net, author for many books. Specialties: CCIE /CCNA / MCSE / MCITP / MCTS / MCSA / Solution Expert / CCA
Blog:
http://www.carysun.com http://www.checkyourlogs.net
Twitter:@SifuSun

About Cary Sun

Cary Sun is an Principal Consultant, He has a strong background specializing in datacenter and deployment solutions, and has spent over 20 years in the planning, design, and implementation of network technologies and Management and system integration.He hold CISCO CERTIFIED INTERNETWORK EXPERT (CCIE No.4531) from 1997.Cary is also a Microsoft Most Valuable Professional (MVP) and Cisco Champion, He is a published author with serveral titles, include blogs on Checkyourlogs.net, author for many books. Specialties: CCIE /CCNA / MCSE / MCITP / MCTS / MCSA / Solution Expert / CCA Blog: http://www.carysun.com http://www.checkyourlogs.net Twitter:@SifuSun