Hyper-V The VHD Set

Source: Internet
Author: User
Tags failover

Hyper-V The VHD Set

Microsoft has added a new type of disk-"VHD set"-similar to previous versions of shared VHDs in Windows Server-Hyper-V, which can be shared across multiple servers to implement a guest cluster.

See here that many friends who are familiar with Hyper-V will ask: what is the difference between this and the previous Share VHDX? Let's look at the following:

Share VHDX allows you to share a single virtual hard disk between multiple virtual machines, which is useful for implementing a guest operating system cluster that requires disk sharing, such as our common SQL Server AlwaysOn, and so on. However, using the share VHDX will have the following limitations:

1. Share VHDX does not support backup or copy

2. Share VHDX does not support resizing or migrating

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

Gossip, let's see how to configure a VHD set

To create a VHD set:

Open Failover Cluster Manager-virtual machines-New hard disk:

650) this.width=650; "title=" clip_image002 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image002 "src=" http://s3.51cto.com/wyfs02/M01/8B/7C/wKioL1hPo3_QoLxbAABfPi-aPnI113.jpg "height=" 211 "/>

On the wizard page, click Next:

650) this.width=650; "title=" clip_image004 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image004 "src=" http://s3.51cto.com/wyfs02/M02/8B/7C/wKioL1hPo4mCf9JuAABx2mtkM5E266.jpg "height=" 425 "/>

Disk Format Select the VHD set:

650) this.width=650; "title=" clip_image006 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image006 "src=" http://s3.51cto.com/wyfs02/M00/8B/7C/wKioL1hPpafSOj1IAACnRQNyaVY985.jpg "height=" 423 "/>

Select the disk type according to the actual situation:

650) this.width=650; "title=" clip_image008 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image008 "src=" http://s3.51cto.com/wyfs02/M01/8B/7F/wKiom1hPpajCyvqhAACpRMdNsQg473.jpg "height=" 423 "/>

Specify the virtual disk name and storage location:

650) this.width=650; "title=" clip_image010 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image010 "src=" http://s3.51cto.com/wyfs02/M01/8B/7F/wKiom1hPpamQTsisAAB9ZkhFxr4715.jpg "height=" 422 "/>

Specify the disk size:

650) this.width=650; "title=" clip_image012 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image012 "src=" http://s3.51cto.com/wyfs02/M02/8B/7F/wKiom1hPparjgVQxAACWwzXfhSs127.jpg "height=" 422 "/>

Summary page confirm without error click "Done":

650) this.width=650; "title=" clip_image014 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image014 "src=" http://s3.51cto.com/wyfs02/M01/8B/7C/wKioL1hPpbWRQ0mBAACIRVf4vQ8958.jpg "height=" 424 "/>

Once created, you can see the following files in its storage directory

650) this.width=650; "title=" clip_image016 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image016 "src=" http://s3.51cto.com/wyfs02/M02/8B/80/wKiom1hPpbaTcZiyAABJiyrhN08180.jpg "height=" 136 "/>

To add a VHD set for a virtual machine

Next I'll mount the two VHD sets I just created to the virtual machine node1,node2, and there are two ways to mount the VHD set to the virtual machine, namely the graphical interface and PowerShell:

650) this.width=650; "title=" clip_image018 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image018 "src=" http://s3.51cto.com/wyfs02/M02/8B/7C/wKioL1hPpbih6972AABeqwJBkU0597.jpg "height=" 226 "/>

To mount using the graphical interface:

right mouse button "Node1"-"Settings"-"SCSI controller"-"shared drive" then locate the VHD set we just created, as shown in:

650) this.width=650; "title=" clip_image020 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image020 "src=" http://s3.51cto.com/wyfs02/M00/8B/7C/wKioL1hPpb3yAFxfAADIB91GcaM454.jpg "height="/>

PowerShell Mount Method:

Mount the VHD set to Node2 by running the following PS command:

Add-vmharddiskdrive-vmname Node2-path "C:\ClusterStorage\Volume1\ShareVHD\Data.vhds"- Supportpersistentreservations

Add-vmharddiskdrive-vmname Node2-path "C:\ClusterStorage\Volume1\ShareVHD\FS.vhds"-supportpersistentreservations

650) this.width=650; "title=" clip_image022 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image022 "src=" http://s3.51cto.com/wyfs02/M01/8B/80/wKiom1hPpb7QL9s9AABOwfUXCLQ609.jpg "height="/>

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

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

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

650) this.width=650; "title=" clip_image024 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image024 "src=" http://s3.51cto.com/wyfs02/M01/8B/7C/wKioL1hPpb_TjKR5AACH9Ufv2S8712.jpg "height="/>

To create a guest cluster:

Run the following PS command to install the failover cluster and multipath I/o:

Invoke-command-computername Hv01,hv02-command {install-windowsfeature-name Failover-clustering,multipath-io- Includemanagementtools}

650) this.width=650; "title=" clip_image026 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image026 "src=" http://s3.51cto.com/wyfs02/M02/8B/7C/wKioL1hPpcCxtD8wAABMD_4r-_k770.jpg "height=" 141 "/>

650) this.width=650; "title=" clip_image028 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image028 "src=" http://s3.51cto.com/wyfs02/M00/8B/80/wKiom1hPpdbjEARAAAB4fqjuoug928.jpg "height=" 194 "/>

Use the following command to create a failover cluster:

New-cluster-name Fscluster1-node hv01,hv02-staticaddress 192.168.1.39

650) this.width=650; "title=" clip_image030 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image030 "src=" http://s3.51cto.com/wyfs02/M01/8B/80/wKiom1hPpdfj8bStAAAmGbXoAfg738.jpg "height="/>

Create the completion as shown in:

650) this.width=650; "title=" clip_image032 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image032 "src=" http://s3.51cto.com/wyfs02/M01/8B/80/wKiom1hPpdiDHdp8AACIgKzCh80491.jpg "height=" 334 "/>

Cluster shared volumes are found to replicate data:

650) this.width=650; "title=" clip_image034 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image034 "src=" http://s3.51cto.com/wyfs02/M02/8B/80/wKiom1hPpdiyWzmcAACZzjDJn-g442.jpg "height=" 386 "/>

This article is from the "Wu Yuzhang Microsoft blog" blog, make sure to keep this source http://wuyvzhang.blog.51cto.com/9992636/1882302

Hyper-V The VHD Set

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.