Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Hyper-v 2016 VHD Set

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Hyper-v 2016 VHD Set

Microsoft has added a new disk type to Windows Server 2016 Hyper-v, the "VHD set", similar to previous versions of shared VHD, which can be shared among multiple servers to achieve guest clustering.

Seeing here, I believe many friends who are familiar with Hyper-v will ask: what is the difference between this and the previous Share VHDX? Let's take a look at this:

Share VHDX enables multiple virtual machines to share a virtual hard disk, which is useful for implementing guest operating system clusters that require disk sharing, such as our common SQL Server AlwaysON, and so on. However, there are the following restrictions on using Share VHDX:

1. Share VHDX does not support making backups or copies.

2. Share VHDX does not support resizing or migration

The VHD set does not have the above limitations, but the VHD set applies only to the Windows Server 2016 guest operating system.

Less gossip, let's take a look at how to configure the VHD set

Create a VHD set:

Open failover Cluster Administrator-Virtual Machine-New hard disk:

Click next on the wizard page:

Select "VHD set" in disk format:

Select the disk type according to the actual situation:

Specify the virtual disk name and storage location:

Specify the disk size:

The summary page confirms that click "finish":

After the creation is completed, you can see the following files in its storage directory

Add VHD sets for virtual machines

Next, I will mount the two VHD sets I just created to the virtual machine Node1,Node2. There are two ways to mount the VHD set to the virtual machine, which are the graphical interface and Powershell:

Use the graphical interface to mount:

Right-click "Node1"-"Settings"-"SCSI Controller"-"shared Drive" and find the VHD set we just created, as shown in the following figure:

Powershell mount method:

Run the following PS command to mount the VHD set to Node2:

Add-VMHardDiskDrive-VMName Node2-Path "C:\ ClusterStorage\ Volume1\ ShareVHD\ Data.vhds"-SupportPersistentReservations

Add-VMHardDiskDrive-VMName Node2-Path "C:\ ClusterStorage\ Volume1\ ShareVHD\ FS.vhds"-SupportPersistentReservations

After the mount is completed, log in to Node1 or Node2, and run the following PS command to online-initialize-partition the disk:

New-Volume-DiskNumber 1-FileSystem NTFS-FriendlyName Data

New-Volume-DiskNumber 2-FileSystem NTFS-FriendlyName FS

Create a guest cluster:

Run the following PS command to install the failover cluster and multipath iCandle O:

Invoke-Command-ComputerName HV01,HV02-Command {Install-WindowsFeature-Name Failover-Clustering,Multipath-IO-IncludeManagementTools}

Use the following command to create a failover cluster:

New-Cluster-Name FSCluster1-Node HV01,HV02-StaticAddress 192.168.1.39

The creation is completed as shown in the following figure:

Find the cluster shared volume for data replication:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report