Close-up of Vikash's eyes behind his favourite dark-rimmed glasses About Roy

Learning Hyper-V Lesson 9

I have discussed here how VLAN is created on HP virtual connect and then mapped to Hyper-V host. Once VLAN is created on virtual connect we need to use HP Network Configuration Utility to map this VLAN

Learning Hyper-V Lesson 9 — screenshot 1

Every VLAN which is created also create physical interface . Make sure you name it for better identification

Learning Hyper-V Lesson 9 — screenshot 2

Post this now we have to create logical interface on Microsoft VMM machine.  Select Fabric and then create a network site.

Learning Hyper-V Lesson 9 — screenshot 3

Now select each host and then choose virtual networks. Click on Add then choose network binding as "External" . Point this to the interface created on Hyper-V host

Learning Hyper-V Lesson 9 — screenshot 4

Now under hardware choose the interface and map it to logical interface

Learning Hyper-V Lesson 9 — screenshot 5

Learning Hyper-V Lesson 8

Previous lesson 7 we discussed about setting SQL mirroring but then I was not aware what I need to do to start with SQL mirroring.  I decided to blog SQL 2008R2 install steps. Remember I am doing this production for the first time in life :) So pop-in SQL 2008R2 CD/ISO and run the installer.

This will check all the prerequisite 

Learning Hyper-V Lesson 8 — screenshot 1

Next it will ask what feature we are trying to install. We are installing just SQL server .

Learning Hyper-V Lesson 8 — screenshot 2

We need to insure that we have choose "Integration Service" here

Learning Hyper-V Lesson 8 — screenshot 3  

This will check for all the dependencies for feature selected.

Learning Hyper-V Lesson 8 — screenshot 4

Go with default instance.

Learning Hyper-V Lesson 8 — screenshot 5

Now disk space will be calculated for above feature installation.

Learning Hyper-V Lesson 8 — screenshot 6

Configure all the service to run with service account.

Learning Hyper-V Lesson 8 — screenshot 7

Choose the correct authentication method which you want. Recommended is to use mixed mode.

Learning Hyper-V Lesson 8 — screenshot 8

If you wana to place data and log files on separate drives. Everytime when you create new database this will place MDF file and LDF file on respective drive.

Learning Hyper-V Lesson 8 — screenshot 9

One more check before installation begun.

Learning Hyper-V Lesson 8 — screenshot 10

Finally nice summary for what install is going to be done.

Learning Hyper-V Lesson 8 — screenshot 11

If install is successful it will present message with green.

Learning Hyper-V Lesson 8 — screenshot 12

Learning Hyper-V Lesson 7

I am continuing this post from from Lesson 6.  Here we will discuss of setting up DB mirroring. So as per my understanding there are two way HA can be provided to DB 1) Clustering 2)Mirroring. In some situation both can be used as explained here and here .  Discussing SQL server HA is out of scope of this post.

Here we are using three server for mirroring 1) Principal running SQL enterprise edition 2) Mirror server running SQL 2008R2 enterprise edition and 3) Witness server running SQL 2008R2 standard edition. Witness can be any edition of server but Principal/Mirror need to be same edition. It is also recommended to use three different server for this purpose. Installation of SQL will be discussed in some other lesson. 

From Lesson 6 we have allowed SCVMM to create DB. Now we start with mirroring we need to backup the database. Before we backup the database make sure DB is in "Full Recovery " mode. By default SCVMM do not create DB in full recovery mode.

Learning Hyper-V Lesson 7 — screenshot 1

Now start the backup of SQL server database

Learning Hyper-V Lesson 7 — screenshot 2

And then perform choose backup type as full. Make sure you note down where the .BAK file is going to be placed. Because this need to copied to mirror server

Learning Hyper-V Lesson 7 — screenshot 3

Once the database backup is done , copy .bak file to the mirror server and then on Mirror server choose restore.

Learning Hyper-V Lesson 7 — screenshot 4 

Choose from device and provide the path to the copied .bak file. Make sure under "To Database" you should type exact name as that on "Principal"

Learning Hyper-V Lesson 7 — screenshot 5

Now very important select option and choose "Leave the database non-operational" . This will insure that DB does auto fail over. Also you can see it shows both the ldf and mdf file at respective location which is how we have setup SQL (Both Data and log on separate drive).

Learning Hyper-V Lesson 7 — screenshot 6

Once finish database status will appear with same name but status will be as "Restoring" . And FYKI this will not change because this is mirroring database is supposed to be setup (Sorry about my limited SQL knowledge).

Learning Hyper-V Lesson 7 — screenshot 7 

Now we have to start with mirroring on "Principal database"

Learning Hyper-V Lesson 7 — screenshot 8

And then choose configure security

Learning Hyper-V Lesson 7 — screenshot 9

This will run through Mirroring wizard

Learning Hyper-V Lesson 7 — screenshot 10

Here make sure witness server is selected to include this

Learning Hyper-V Lesson 7 — screenshot 11

By default Principal and Mirror will be selected.

Learning Hyper-V Lesson 7 — screenshot 12

Now Principal server will be selected and port by default will be 5022. IF all the three instance (Mirror/Principal/Witness) are on same server then we need to choose different port. End point name should not be changed because mirroring works using this endpoint.

Learning Hyper-V Lesson 7 — screenshot 13

Here it will ask for Mirror instance. Type the mirror SQL server name and then connect. Type port number and endpoint name should be same as principal.

Learning Hyper-V Lesson 7 — screenshot 14

Next screen will ask for Witness server type SQL server name connect it via SQL authentication. Maintain same port number and endpoint name

Learning Hyper-V Lesson 7 — screenshot 15

Type service account for all the 3 SQL instances

Learning Hyper-V Lesson 7 — screenshot 16

This provide nice summary

Learning Hyper-V Lesson 7 — screenshot 17

Here it will configure the end points

Learning Hyper-V Lesson 7 — screenshot 18

And then it will ask to start mirroring

Learning Hyper-V Lesson 7 — screenshot 19

If everything is OK then mirroring will be established for High Safety with Automatic Failover. Status on principal will show as "Principal,Synchronized" where as on Mirror it will show as "Mirror,Synchronized/Restoring"

 Learning Hyper-V Lesson 7 — screenshot 20      Learning Hyper-V Lesson 7 — screenshot 21

Next Blog I will discuss about SQL installation   

Learning Hyper-V Lesson 6

Installing System Center Virtual Machine Manager (SCVMM) has been a challenge for me as you know I have background of VMWare and Citrix. So as a Citrix person if you have to install SCVMM and make its database highly available, it may poses challenge. This post will help you to deal with those challenge. Here I am trying to install SCVMM 2012 and mirrored it database on SQL server 2008R2.

Here I am using single service account for both SCVMM and SQL.

To install SCVMM we must know some of the prerequisite or else like me you may have to do during the course of install. Here I am installing as it is asked for :)

To start the installation pop-in System center CD and start installation. It will prompt for pre-requisite to be installed which is .NET. This is something I like when it does install of prerequisite without asking you to do so. 

Learning Hyper-V Lesson 6 — screenshot 1

At this point it will make you wait for little longer time. Now sure what is trying to do with License.rtf file.

Learning Hyper-V Lesson 6 — screenshot 2

Choose component which is required

Learning Hyper-V Lesson 6 — screenshot 3

Supply all require info like product key

Learning Hyper-V Lesson 6 — screenshot 4

Choose location

Learning Hyper-V Lesson 6 — screenshot 5

Now here is one more pre-requisite which it will check and will not allow you to pass till you install this. But this time it will not install it for you. You need to install AKI by downloading (incase you don't have ISO) it.

Learning Hyper-V Lesson 6 — screenshot 6

Next warning is amount of memory SCVMM server require. But this is just warning and it will allow to move on with installation

Learning Hyper-V Lesson 6 — screenshot 7

Next it will ask for DB option. When using DB mirroring make sure you use C-NAME /Alias (Create one ). Now this will provide HA when DB fail. Changing C-NAME will ensure that you do not need to make changes at application level. I have tried pointing to existing DB but installation failed. So option I choose is to allow SCVMM to create DB. But this may not liked by many SQL-DBA so I strongly recommend MS to look at this option and allow installer to generate script (Like we have with XD 5.x installation ). So if you want to use pre- created DB then make sure it has following option set  "SQL_Latin1_General_CP1_CI_AS"  for collation.Learning Hyper-V Lesson 6 — screenshot 8

Now this is very important step where you need to provide service account. Please note that this service account cannot be used to add Hyper-V host into SCVMM. Hence this need to be dedicate for service account. Secondly choose the link "What type of account should I use?" .  Choose option Distributed Key Management if required or it is not necessary. Looks like something equivalent to link mode which is available with Virtual Center?

Learning Hyper-V Lesson 6 — screenshot 9

Following ports will be required by SCVMM.

Learning Hyper-V Lesson 6 — screenshot 10

The Virtual Machine Manager library is a catalog that gives access to file-based resources stored on your library servers (such as Sysprep scripts, ISO images, and virtual hard disks) and to virtual machine templates, guest operating system profiles, and hardware profiles—database objects that you configure in Virtual Machine Manager. You can also store virtual machines in the library when they are not in use. This can be reconfigured at latter stage as well.

Learning Hyper-V Lesson 6 — screenshot 11

This will start installation of SCVMM

Learning Hyper-V Lesson 6 — screenshot 12

Once installed it will be give installation summery with error/warning if any.

Learning Hyper-V Lesson 6 — screenshot 13

Since this has became long post we will continue mirroring with Lesson7.