Hyper-V High Availability One: Create and configure iSCSI

Source: Internet
Author: User
Tags failover node server

Hyper-V High Availability One: Create and configure iSCSI

The previous blog post shows you how to perform a live migration of hyper-V virtual machines without clustering or shared storage, but virtual machines that are not clustered are still at risk, not a best practice for enterprise deployment, Virtual machines are highly available using dedicated storage devices and deploying failover clusters to ensure business continuity. Today's blog We'll show you how to build Hyper-V clusters in a multi-cluster environment using iSCSI and implement virtual machine live migration under a cluster

Failover clustering is a feature in Windows Server that provides high availability for server load since the first introduction of the cluster in Windows NT 4.0 Enterprise Edition, consisting of a set of independent servers and collaborate to improve the availability of services and applications, when a failure occurs on one of the computers in the cluster, the resource is redirected to another computer in the cluster, and the workload is redistributed to another computer in the cluster. You can use failover clustering to ensure that users have almost always access to important server-based resources. Failover clustering is designed for applications that have long-running in-memory states or that have large, frequently-updated data states. These applications are called state applications, and they include database applications and messaging applications. Typical uses of a failover cluster include file servers, print servers, database servers, and messaging servers.

Windows Server failover clustering provides a critical technology for Hyper-V infrastructure that not only provides availability, but also provides portability. An important concept of virtualization and private cloud environments is to break the bundle between load and underlying physical resources, while failover clustering uses live migration technology to move and place virtual machines between different physical hosts without downtime. If a node encounters a failure, the virtual machine is dispersed over the other cluster nodes. In older versions of Windows Server, any resource can be dispersed to the cluster node that hosts the fewest number of virtual machines. In Windows Server 2012, this logic has been improved to determine how virtual machines are dispersed based on the most common constraint resource of the host's amount of memory. Each virtual machine can be placed in the node with the most free memory resources and evaluated for the resource requirements of each virtual machine

Let's start today's experiment: using failover clustering to implement Hyper-V high Availability

The experimental environment table is as follows:

Computer name

Operating system

Ip

Dns

Cluster address

DC

Windows Server R2

192.168.1.1

192.168.1.1


NWEB01

Windows Server R2

public:192.168.1.2

hart:172.16.1.1

192.168.1.1

Vmmcluser

192.168.1.100

NWEB2

Windows Server R2

public:192.168.1.3

hart:172.16.1.2

192.168.1.1

Ok, believe in upgrading a domain controller everyone will, if not everyone can find in my blog about domain control articles, so today's experiment we start from the configuration of shared storage Iscis.

1. Installing shared storage (ISCSI)

Shared storage for failover clusters we can use SAN storage or ISCIS, because I am an experimental environment, so using iSCSI, for iSCSI Microsoft in Windows Server R2 as a role, can be added, Let's show you how to add iSCSI in Windows Server R2:

To open Server Manager on a computer that has been promoted to a domain controller:

650) this.width=650; "height=" 390 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/79/2d/wkiol1alg-szu1z4aafeqaw4toe894.png "border=" 0 "/>

Click "Add Roles and Features":

650) this.width=650; "height=" 455 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/79/2d/wkiol1alg-edwwplaahlem29rwe680.png "border=" 0 "/>

Click Next:

650) this.width=650; "height=" 457 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2d/wkiol1alg-qrsvmqaahdzamkcwg966.png "border=" 0 "/>

In the Add Server role location, expand file Storage Services----file and iSCSI services, and then tick iSCSI target server and click Next:

650) this.width=650; "height=" 459 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/79/2d/wkiol1alg-6zolilaaf3sp1fzoi632.png "border=" 0 "/>

Confirm that there is no problem on the confirmation screen, click Install:

650) this.width=650; "height=" 459 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/79/2e/wkiom1alg8ucefagaaffkbicbes395.png "border=" 0 "/>

Installation is successful, click Close.

2. Create a virtual disk with Iscis:

Open Server Manager:

650) this.width=650; "height=" 391 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/79/2e/wkiom1alg82w5eozaafrurnjq6k170.png "border=" 0 "/>

On the left, click "File and Storage Services":

650) this.width=650; "height=" 392 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2d/wkiol1alg_xjiaveaafsouymuew520.png "border=" 0 "/>

Click on "ISCSI":

650) this.width=650; "height=" 391 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/79/2d/wkiol1alg_eymcg5aadz3ksqbim684.png "border=" 0 "/>

As you can see, there is currently no shared storage, click "To create an iSCSI virtual disk, start the new iSCSI Virtual Disk Wizard":

650) this.width=650; "height=" 473 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2e/wkiom1alg9wyplsjaahif3tbppm486.png "border=" 0 "/>

The system pops up the dialog box for the new iSCSI Virtual Disk Wizard, and in the Select iSCSI Virtual Disk location option, you can specify the location where the virtual disks created by iSCSI are stored, and here I select the e-drive and click Next:

650) this.width=650; "height=" 471 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/79/2d/wkiol1alg_yinqreaaetjbzcxi4182.png "border=" 0 "/>

Enter the name of the virtual disk and its description in the "Iscis Virtual disk Name" location, and click Next:

650) this.width=650; "height=" 472 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/79/2d/wkiol1alhadtboogaakrdupliyw951.png "border=" 0 "/>

Specify the virtual disk size here, because the system will default to a smaller disk as the quorum disk, so Q disk I gave 1G, click Next:

650) this.width=650; "height=" 471 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2e/wkiom1alg9-htz5vaaeuyu94wpu453.png "border=" 0 "/>

In the iSCSI target location, select new iSCSI Target and click Next:

650) this.width=650; "height=" 468 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/79/2e/wkiom1alg-hyjfofaadzf0oxrrg663.png "border=" 0 "/>

Enter the target name and click Next:

650) this.width=650; "height=" 472 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/79/2e/wkiom1alg-shm3f5aaeetf91mwa587.png "border=" 0 "/>

In the Access server location, click Add:

650) this.width=650; "height=" 484 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2d/wkiol1alha2twxm6aadeiuydd9q413.png "border=" 0 "/>

Select "Enter values of selected type" Here, select "IP" at the type location, enter the IP address of the two cluster nodes separately at the value location, click OK:

650) this.width=650; "height=" 474 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2e/wkiom1alg-vdv4kdaafcv7lnrja671.png "border=" 0 "/>

After adding, click Next:

650) this.width=650; "height=" 472 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2d/wkiol1alhbtbzza2aafrgdwspym827.png "border=" 0 "/>

Leave the default here and click Next:

650) this.width=650; "height=" 472 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/79/2e/wkiom1alg_wtqh-taagg0uno6nc468.png "border=" 0 "/>

Make sure you have no problem, click Create:

650) this.width=650; "height=" 471 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/79/2e/wkiom1alg_rdkvazaaffasjcjua780.png "border=" 0 "/>

Create success, click Close:

650) this.width=650; "height=" 391 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/79/2e/wkiom1alg_6jvnbaaaeb-crbjlk855.png "border=" 0 "/>

As you can see, the virtual disk has been created successfully! But at the moment we have only one quorum disk, and we need a data disk, so we need to right-click in the blanks:

650) this.width=650; "height=" 389 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/79/2e/wkiom1alhahtls4uaaexxv5rp3e210.png "border=" 0 "/>

Click "New iSCSI Virtual Disk":

650) this.width=650; "height=" 484 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2e/wkiom1alhaxjd0ddaagubev5lzs908.png "border=" 0 "/>

Just like before. Here is the option to choose the location of the Vdisk, select the E-Disk here, and click Next:

650) this.width=650; "height=" 484 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2e/wkiom1alharhhtnkaaehqjxcda0275.png "border=" 0 "/>

Enter the disk name and description and click Next:

650) this.width=650; "height=" 484 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/79/2d/wkiol1alhdxqremmaaks8mpmnck484.png "border=" 0 "/>

Enter the disk size and click Next:

650) this.width=650; "height=" 484 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/79/2e/wkiom1alhbktaovfaaesua-khgm709.png "border=" 0 "/>

Leave the default here and click Next:

650) this.width=650; "height=" 484 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/79/2d/wkiol1alhdrq5yrxaafp9udh-mc485.png "border=" 0 "/>

Confirm the error, click Create:

650) this.width=650; "height=" 484 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2e/wkiom1alhbfraazaaad_9tzzela160.png "border=" 0 "/>

Create complete, click Close:

650) this.width=650; "height=" 390 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2d/wkiol1alhecghjc1aae4buinlu8740.png "border=" 0 "/>

You can see the newly created two disk Q disk and s disk!

3. The cluster node connects to the virtual disk:

To open the cluster node Server Manager:

650) this.width=650; "height=" "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/79/2d/wkiol1alheoa1epiaafxqwrlgsi741.png "border=" 0 "/>

Click "Tools"----"iSCSI Initiator":

650) this.width=650; "height=" 327 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2e/wkiom1alhclcgpp5aahdqc4ztaa962.png "border=" 0 "/>

Pop up the dialog box and click Yes:

650) this.width=650; "height=" 244 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/79/2d/wkiol1alheixcn-2aadgsv0vw4a122.png "border=" 0 "/>

You can see the "iSCSI Initiator" pop-up:

650) this.width=650; "height=" 484 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2e/wkiom1alhcxgkc68aadkx2uloly640.png "border=" 0 "/>

Enter the IP address of the iSCSI target server at the target location and click on "Quick Links":

650) this.width=650; "height=" 408 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/79/2e/wkiom1alhcigurufaafy-bcq2ss378.png "border=" 0 "/>

You can see that you have successfully linked to the iSCSI initiator, click Finish:

650) this.width=650; "height=" 484 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/79/2e/wkiom1alhcrdw81taadrgmj3lzg097.png "border=" 0 "/>

Make sure the target is connected and click OK.

Open Server Manager and click on "Tools"----"Computer Management":

650) this.width=650; "height=" "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2e/wkiom1alhc7shvataah_st7usow602.png "border=" 0 "/>

On the Computer Management dialog box, click Disk Management:

650) this.width=650; "height=" 414 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/79/2e/wkiom1alhddg15deaaeqblaagqq405.png "border=" 0 "/>

As you can see, the two virtual disks that you just added:

650) this.width=650; "height=" 413 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/79/2d/wkiol1alhfndn-ybaaf_c15qg90810.png "border=" 0 "/>

In this sub-table, right-click the virtual disk and tap "online":

650) this.width=650; "height=" 414 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2e/wkiom1alhdebgnxeaagog13npp4690.png "border=" 0 "/>

After the two disks are online and then right-click the disk, tap Initialize disk:

650) this.width=650; "height=" 414 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/79/2e/wkiom1alhdqt5sdoaagctdmqgoe820.png "border=" 0 "/>

Click OK:

650) this.width=650; "height=" 484 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/79/2d/wkiol1alhggbiczcaafr1gzivqu061.png "border=" 0 "/>

Right-click the two virtual disks, and tap new simple volume:

650) this.width=650; "height=" 413 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2d/wkiol1alhgxzbuc6aahmqzkr-rs851.png "border=" 0 "/>

Click Next:

650) this.width=650; "height=" 484 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/79/2d/wkiol1alhgnsdjemaajg1chmkjw074.png "border=" 0 "/>

Note that assigning a drive letter here suggests that two nodes use the same drive letter:

650) this.width=650; "height=" 484 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/79/2d/wkiol1alhgyy5ywraadp0hfnxns073.png "border=" 0 "/>

Confirm the error, click Finish:

650) this.width=650; "height=" 484 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2d/wkiol1alhhhbxao_aalpk08embo951.png "border=" 0 "/>

Repeat the above on another cluster node, and do not demonstrate here!

4. Testing

Open My computer on the cluster node to see if the cluster disk is mounted:

650) this.width=650; "height=" 456 "title=" image "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; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/79/2d/wkiol1alhhscmy_3aaffngbwdco131.png "border=" 0 "/>

As you can see, we have successfully linked the new two-block cluster disk Q and s disks!

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

Hyper-V High Availability One: Create and configure iSCSI

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.