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.
I am going to show you how to fix this issue by following steps.
Login to the Windows Server 2019 Hyper-V host server.
Open Server Manager select File and Storage Services.
On the File and Storage Services page, select Storage Pools.
on the Storage Pools, select the storage Pool, right-click the virtual disk which detached and click Properties.
on the Properties page, expend Details, select IsManualAttach from the virtual disk Property.
You will see the Value is True, this is the root cause of virtual disk detached after server reboot.
We can use PowerShell cmdlet to change the Value from True to False.
Cary Sun has a wealth of knowledge and expertise in data center and deployment solutions. As a Principal Consultant, he likely works closely with clients to help them design, implement, and manage their data center infrastructure and deployment strategies.
With his background in data center solutions, Cary Sun may have experience in server and storage virtualization, network design and optimization, backup and disaster recovery planning, and security and compliance management. He holds CISCO CERTIFIED INTERNETWORK EXPERT (CCIE No.4531) from 1999. Cary is also a Microsoft Most Valuable Professional (MVP), Microsoft Azure MVP, Veeam Vanguard and Cisco Champion. He is a published author with several titles, including blogs on Checkyourlogs.net, and the author of many books.
Cary is a very active blogger at checkyourlogs.net and is permanently available online for questions from the community. His passion for technology is contagious, improving everyone around him at what they do.
Blog site: https://www.checkyourlogs.net
Web site: https://carysun.com
Blog site: https://gooddealmart.com
Amazon Author: https://Amazon.com/author/carysun