0% found this document useful (0 votes)
46 views45 pages

Blog by Raihan Al-Beruni - @WintelGuru

The document discusses configuring virtual Fibre Channel, FC storage, and FC tape libraries from within virtual machines in Hyper-V Server 2012 R2. It provides steps to update firmware, configure zoning and virtual Fibre Channel, attach virtual FC adapters to VMs, present storage, and install MPIO drivers in guest operating systems.

Uploaded by

beomeo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views45 pages

Blog by Raihan Al-Beruni - @WintelGuru

The document discusses configuring virtual Fibre Channel, FC storage, and FC tape libraries from within virtual machines in Hyper-V Server 2012 R2. It provides steps to update firmware, configure zoning and virtual Fibre Channel, attach virtual FC adapters to VMs, present storage, and install MPIO drivers in guest operating systems.

Uploaded by

beomeo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 45

Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.

com/

Blog by Raihan Al-Beruni

How to Connect and Configure Virtual Fibre Channel, FC Storage and FC Tape Library from
within a Virtual Machine in Hyper-v Server 2012 R2
Posted on January 15, 2015

Windows Server 2012 R2 with Hyper-v Role provides Fibre Channel ports within the guest operating system,
which allows you to connect to Fibre Channel directly from within virtual machines. This feature enables you to
virtualize workloads that use direct FC storage and also allows you to cluster guest operating systems leveraging
Fibre Channel, and provides an important new storage option for servers hosted in your virtual infrastructure.

Benefits:

Existing Fibre Channel investments to support virtualized workloads.


Connect Fibre Channel Tape Library from within a guest operating systems.
Support for many related features, such as virtual SANs, live migration, and MPIO.
Create MSCS Cluster of guest operating systems in Hyper-v Cluster

Limitation:

Live Migration will not work if SAN zoning isn’t configured correctly.
Live Migration will not work if LUN mismatch detected by Hyper-v cluster.
Virtual workload is tied with a single Hyper-v Host making it a single point of failure if a single HBA is used.
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

1 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Virtual Fibre Channel logical units cannot be used as boot media.

Prerequisites:

Windows Server 2012 or 2012 R2 with the Hyper-V role.


Hyper-V requires a computer with processor support for hardware virtualization. See details in BIOS setup of
server hardware.
A computer with one or more Fibre Channel host bus adapters (HBAs) that have an updated HBA driver that
supports virtual Fibre Channel.
An NPIV-enabled Fabric, HBA and FC SAN. Almost all new generation brocade fabric and storage support this
feature.NPIV is disabled in HBA by default.
Virtual machines configured to use a virtual Fibre Channel adapter, which must use Windows Server 2008,
Windows Server 2008 R2, or Windows Server 2012 or Windows Server 2012 R2 as the guest operating system.
Maximum 4 vFC ports are supported in guest OS.
Storage accessed through a virtual Fibre Channel supports devices that present logical units.
MPIO Feature installed in Windows Server.
Microsoft Hotfix KB2894032

Before I begin elaborating steps involve in configuring virtual fibre channel. I assume you have physical
connectivity and physical multipath is configured and connected as per vendor best practice. In this example
configuration, I will be presenting storage and FC Tape Library to virtualized Backup Server. I used the following
hardware.

2X Brocade 300 series Fabric


1X FC SAN
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

2 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

1X FC Tape Library
2X Windows Server 2012 R2 with Hyper-v Role installed and configured as a cluster. Each host connected to
two Fabric using dual HBA port.

Step1: Update Firmware of all Fabric.

Use this LINK to update firmware.

Step2: Update Firmware of FC SAN

See OEM or vendor installation guide. See this LINK for IBM guide.

Step3: Enable hardware virtualization in Server BIOS

See OEM or Vendor Guidelines

Step4: Update Firmware of Server

See OEM or Vendor Guidelines. See Example of Dell Firmware Upgrade.

Step5: Install MPIO driver in Hyper-v Host

See OEM or Vendor Guidelines

Step6: Physically Connect FC Tape Library, FC Storage and Servers to correct FC Zone

Step7: Configure
Blog by Raihan Al-BeruniCorrect Zone in Fabric Blog at WordPress.com. The Twenty Ten Theme

3 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Open Brocade Fabric, Configure Alias. Red marked are Virtual HBA and FC Tape shown in Fabric. Note that you
must place FC Tape, Hyper-v Host(s), Virtual Machine and FC SAN in the same zone otherwise it will not work.

Configure correct Zone as shown below.

Configure correct Zone Config as shown below.

Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

4 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Once you configured correct Zone in Fabric, you will see FC Tape showing in Windows Server 2012 R2 where
Hyper-v Role is installed. Do not update tape driver in Hyper-v host as we will use guest or virtual machine as
backup server where correct tape driver is needed.

Step8: Configure Virtual Fibre Channel

Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

5 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Open Hyper-v Manager, Click Virtual SAN Manager>Create new Fibre Channel

Type Name of the Fibre Channel> Apply>Ok.

Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

6 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Repeat the process to create multiple VFC for MPIO and Live Migration purpose. Remember Physical HBA must
be connected to 2 Brocade Fabric.

On the vFC configuration, keep naming convention identical on both host. If you have two physical HBA,
configure two vFC in Hyper-v Host. Example: VFC1 and VFC2. Create two VFC in another host with identical
Name VFC1 and VFC2. Assign both VFC to virtual machines.

Step9: Attach Virtual Fibre Channel Adapter on to virtual Machine.

Open Failover Cluster Manager, Select the virtual machine where FC Tape will be visible>Shutdown the Virtual
machine.

Go to Settings of the virtual machine>Add Fibre Channel Adapter>Apply>Ok.

Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

7 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Record WWPN from the Virtual Fibre Channel.

Power on the virtual Machine.

Repeat the process to add multiple VFCs which are VFC1 and VFC2 to virtual machine.

Step10: Present Storage

Log on FC storage>Add Host in the storage. WWPN shown here must match the WWPN in the virtual fibre
channel adapter.

Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

8 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Map the volume or LUN to the virtual server.

Step11: Install MPIO Driver in Guest Operating Systems


Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

9 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Open Server Manager>Add Role & Feature>Add MPIO Feature.

Download manufacturer MPIO driver for the storage. MPIO driver must be correct version and latest to function
correctly.

Now you
Blog by have
Raihan FC SAN in your virtual machine
Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

10 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Step12: Install Correct FC Tape Library Driver in Guest Operating Systems.

Download and install correct FC Tape driver and install the driver into the virtual backup server.

Now you have correct FC Tape library in virtual machine.

Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

11 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Backup software can see Tape Library and inventory tapes.

Further Readings:

Brocade Fabric with Virtual FC in Hyper-v

Hyper-V Virtual Fibre Channel Overview

Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

12 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Clustered virtual machine cannot access LUNs over a Synthetic Fibre Channel after you perform live migration on
Windows Server 2012 or Windows Server 2012 R2-based Hyper-V hosts

Share this:

Be the first to like this.

Posted in Virtualization | Tagged brocade 300, Brocade HBA, Fabric, Failover cluster, FC Tape Library, fibre channel, Firmware Upgrade, HBA, HBA Bios Upgrade, Hyper-v,
Hyper-v Cluster, IBM V3700, step by Step, Virtual Machine, Virtual Switch, VM, Windows Server 2012 R2 | 2 Comments

See the #fireworks I created by blogging on #WordPressDotCom. My 2014 annual report.


Posted on January 12, 2015

See the #fireworks I created by blogging on #WordPressDotCom. My 2014 annual report..

Share this:

Be the first to like this.

Posted in Miscellaneous | Leave a comment

Migrate Network Policy Server (NPS) From Windows Server 2008 R2 to Windows Server
2012 R2
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

13 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Posted on January 7, 2015

Scenario:

1. Migrate to a new server with new NetBIOS Name and New IP Address
2. Migrate to a new server retaining NetBIOS Name and IP Address

Step1: Backup NPS Server, NPS Policy & certificate

1. Open NPS Policy Server from Server Manager>Right Click on NPS(Local)>Export Configuration.
2. Select I am aware that I am exporting all shared secret. Click Ok>Export as a XML File into a UNC path
accessible to new server.
3. right Click on Template Management>Export Template to a File. Export as a XML File into a UNC path
accessible to new server.
4. Open MMC>Add Certificate Snap-in>Computer Account>Select Personal>Certificate>Export Certificate with
Private Key.
5. Use Windows Backup to backup NPS server. If NPS server is virtualized, then simply right click the virtual
machine from Hyper-v manager and rename the machine. Now Power of the VM.

Step2: Build a new Server.

1. Build a new server. Activate Windows. Assign TCP/IP and join to the domain.
2. Open MMC>Add Certificate Snap-in>Computer Account>Select Personal>Certificate>Import Certificate with
Private Key.
3. From Roles and Feature Wizard>add network Policy and Services>Select NPS, NAP and Health registration
services, Click Next>Select Certificate Authority>Select Certificate>Select Finish Installation.
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

14 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Step3: Register NPS.

1. If you have retained NetBIOS Name and IP Address mentioned in scenario 2 then you don’t need to
re-register. It’s already registered.
2. If you have a different NetBIOS Name and IP address then Right Click NPS(Local)>Register NPS Server to
Active Directory.

Step4: Import NPS Policies

1. Open NPS Policy Server>right Click on NPS(Local)>Import Configuration. Point to the XML file you have
exported in step1 and import the file.
2. Right Click on Template Management>Import template from a File. Point to the XML file you have exported
in step1 and import the file.

Step5: Test Client

1. Connect a client using WIFI or VPN whichever purpose you have configured NPS.
2. Open Event Viewer in NPS Server and Check Security log. You will see clients are connected successfully.

Relevant Articles:

Windows Server 2008: how to configure Network Policy Server or Radius Server –Step by Step Guide

How to configure L2TP IPSec VPN using Network Policy Server in Windows Server 2008 R2

Step by Step guide to build a Cisco wireless infrastructure using Cisco WLC 5500, Cisco 1142 AP and Microsoft
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

15 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Share this:

Be the first to like this.

Posted in Windows Server | Tagged Migrate, migration, Network Access Protection, Network Policy Server, NPS, Windows Server 2012 R2 | Leave a comment

Understanding VLAN, Trunk, NIC Teaming, Virtual Switch Configuration in Hyper-v Server
2012 R2
Posted on January 5, 2015

With Server virtualization you can run multiple server instances concurrently on a single physical host; yet servers
are isolated from each other and operate independently. Similarly Network virtualization provides multiple virtual
network infrastructures run on the same physical network with or without overlapping IP addresses. Each virtual
network infrastructure operates as if they are the only virtual network running on the shared network
infrastructure. Hyper-v Network Virtualization also decouples physical network from virtual network. Network
virtualization can be achieved via System Center Virtual Machine Manager (SCVMM) managing multiple Hyper-v
Servers, a single Hyper-v Server or clustered Hyper-v Servers. Microsoft Hyper-v Network Virtualization provides
multi-tenant aware, multi-VLAN aware and non-hierarchical IP address assignment to virtual machines in
conventional on-premises and cloud based data center.

Hyper-v Virtual Network Type

Private Virtual Network Switch allows communication between virtual machines connected to the same
virtual switch. Virtual Machines connected to this type of virtual switch cannot communicate with Hyper-V
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

16 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Parent Partition. You can create any number of Private virtual switches.
Internal Virtual Network Switch can be used to allow communication between virtual machines
connected to the same switch and also allow communication to the Hyper-V Parent Partition. You can create
any number of internal virtual switches
External Virtual Network Switch allows communication between virtual machines running on the same
Hyper-V Server, Hyper-V Parent Partition and Virtual Machines running on the remote Hyper-V Server. It
requires a physical network adapter on the Hyper-V Host that is not mapped to any other External Virtual
Network Switch. As a result, you can create External virtual switches as long as you have physical network
adapters that are not mapped to any other external virtual switches.

Follow the guide lines to configure Virtual Networking in Windows Server 2012 R2 Hyper-v role installed. A
highly available clustered Hyper-v server should have the following configuration parameters.

Example VLAN

Network Type VLAN ID IP Addresses

Default 1 10.10.10.1/24

Management 2 10.10.20.1/24

Live Migration 3 10.10.30.1/24

Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

17 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Prod Server 4 10.10.40.1/24

Dev Server 5 10.10.50.1/24

Test Server 6 10.10.60.1/24

Storage 7 10.10.70.1/24

DMZ 99 192.168.1.1/24

Example NIC Configuration with 8 network card (e.g. 2x quad NIC card)

Virtual Network Name Purpose Connected Physical Virtual Switch


Switch Port Configuration

MGMT Management Network Port configured Allow Management


with VLAN 2 Network ticked

Enable VLAN
identification for
management
operating system
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

18 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

ticked

LiveMigration Live Migration Port configured Allow Management


with VLAN 3 Network un-ticked

Enable VLAN
identification for
management
operating system
ticked

iSCSI Storage Port configured Allow Management


with VLAN 7 Network un-ticked

Enable VLAN
identification for
management
operating system
ticked

VirtualMachines Prod, Dev, Test, DMZ Port configured Allow Management


with Trunk Mode Network un-ticked

Enable VLAN
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

19 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

identification for
management
operating system
un-ticked

Recommendation:

Do not assign VLAN ID in NIC Teaming Wizard instead assign VLAN ID in Virtual Switch Manager.
Configure virtual switch network as External Virtual Network.
Configure Physical Switch Port Aggregation using EtherChannel.
Configure Logical Network Aggregation using NIC Teaming Wizard.

Example Virtual Machine Network Configuration

Virtual Machine Type VLAN ID Tagged in Enable VLAN Connected Virtual


VM>Settings>Network identifier Network
Adapter

Prod VM 4 Ticked VirtualMachines

Dev VM 5 Ticked VirtualMachines

Test VM 6 Ticked VirtualMachines


Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

20 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

NIC Teaming with Virtual Switch

Multiple network adapters on a computer to be placed into a team for the following purposes:

Bandwidth aggregation
Traffic failover to prevent connectivity loss in the event of a network component failure

There are two basic configurations for NIC Teaming.

Switch-independent teaming. This configuration does not require the switch to participate in the teaming.
Since in switch-independent mode the switch does not know that the network adapter is part of a team in the
host, the adapters may be connected to different switches. Switch independent modes of operation do not
require that the team members connect to different switches; they merely make it possible.
Switch-dependent teaming. This configuration that requires the switch to participate in the teaming.
Switch dependent teaming require participating NIC to be connected in same physical switch. There are two
modes of operation for switch-dependent teaming: Generic or static teaming (IEEE 802.3ad draft v1). Link
Aggregation Control Protocol teaming (IEEE 802.1ax, LACP).

Load Balancing Algorithm

NIC teaming in Windows Server 2012 R2 supports the following traffic load distribution algorithms:

Hyper-V switch port. Since VMs have independent MAC addresses, the VM’s MAC address or the port it’s
connected to on the Hyper-V switch can be the basis for dividing traffic.
Address Hashing. This algorithm creates a hash based on address components of the packet and then
Blogassigns packets
by Raihan that
Al-Beruni have that hash value to one of the available adapters. Usually
Blogthis mechanism
at WordPress.com. aloneTen
The Twenty is Theme

21 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

sufficient to create a reasonable balance across the available adapters.


Dynamic. This algorithm takes the best aspects of each of the other two modes and combines them into a
single mode. Outbound loads are distributed based on a hash of the TCP Ports and IP addresses. Dynamic
mode also rebalances loads in real time so that a given outbound flow may move back and forth between team
members. Inbound loads are distributed as though the Hyper-V port mode was in use.

NIC Teaming within Virtual Machine

NIC teaming in Windows Server 2012 R2 may also be deployed in a VM. This allows a VM to have virtual NICs
connected to more than one Hyper-V switch and still maintain connectivity even if the physical NIC under one
switch gets disconnected.

To enable NIC Teaming with virtual machine. In the Hyper-V Manager, in the settings for the VM, select the VM’s
NIC and the Advanced Settings item, then enable the checkbox for NIC Teaming in the VM.

Physical Switch Configuration

In Trunk Mode, a virtual switch will listen to all the network traffic and forward the traffic to all the ports. In
other words, network packets are sent to all the virtual machines connected to it. By default, a virtual switch in
Hyper-V is configured in Trunk Mode, which means the virtual switch receives all network packets and
forwards them to all the virtual machines connected to it. There is not much configuration needed to configure
the virtual switch in Trunk Mode.
In Access Mode, the virtual switch receives network packets in which it first checks the VLAN ID tagged in
the network packet. If the VLAN ID tagged in the network packet matches the one configured on the virtual
switch, then the network packet is accepted by the virtual switch. Any incoming network packet that is not
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

22 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

tagged with the same VLAN ID will be discarded by the virtual switch.

Cisco EtherChannel

EtherChannel provides automatic recovery for the loss of a link by redistributing the load across the remaining
links. If a link fails, EtherChannel redirects traffic from the failed link to the remaining links in the channel
without intervention. EtherChannel Negotiation Protocols are:

PAgP (Cisco Proprietary)


LACP (IEEE 802.3ad)

EtherChannel with Switch Independent NIC Teaming

This example shows how to configure an EtherChannel on a switch. It assigns two ports as static-access ports in
VLAN 10 to channel 5 with the PAgP mode desirable:

1. To configure specific VLAN for teamed NIC

Switch# configure terminal


Switch(config)# interface range gigabitethernet0/1 -2
Switch(config-if-range)# switchport mode access
Switch(config-if-range)# switchport access vlan 10
Switch(config-if-range)# channel-group 5 mode desirable non-silent
Switch(config-if-range)# end

2. To configure Trunk for teamed NIC


Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

23 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Switch# configure terminal


Switch(config)# interface range gigabitethernet0/1 -2
Switch(config-if-range)# switchport mode Trunk
Switch(config-if-range)# channel-group 5 mode desirable non-silent
Switch(config-if-range)# end

EtherChannel with Switch dependent NIC Teaming

This example shows how to configure an EtherChannel on a switch. It assigns two ports as static-access ports in
VLAN 10 to channel 5 with the LACP mode active:

Switch# configure terminal


Switch(config)# interface range gigabitethernet0/1 -2
Switch(config)#switchport
Switch(config-if-range)# switchport mode access
Switch(config-if-range)# switchport access vlan 10
Switch(config-if-range)# channel-group 5 mode active
Switch(config-if-range)# end
Switch# show port lacp-channel

This example shows how to configure a cross-stack EtherChannel. It uses LACP passive mode and assigns two
ports on stack member 2 and one port on stack member 3 as static-access ports in VLAN 10 to channel 5:

Switch# configure terminal


Switch(config)# interface range gigabitethernet2/0/4 -5
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

24 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Switch(config-if-range)# switchport mode access


Switch(config-if-range)# switchport access vlan 10
Switch(config-if-range)# channel-group 5 mode active
Switch(config-if-range)# exit
Switch(config)# interface gigabitethernet3/0/3
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
Switch(config-if)# channel-group 5 mode active
Switch(config-if)# exit

Setup Dynamic Load Balance with 802.3ad NIC Teaming and load balance method: Automatic.

Switch#conf t
Switch(config)#int Gi2/0/23
Switch(config-if)#switchport
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 100
Switch(config-if)#spanning-tree portfast
Switch(config-if)#channel-group 1 mode active
Switch(config)#port-channel load-balance src-mac
Switch(config)#end
Switch#show etherchannel 1 summary
Switch#show spanning-tree interface port-channel 1
Switch#show etherchannel load-balance
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

25 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

HP Switch Configuration

LACP Config:

PROCURVE-Core1#conf ter
PROCURVE-Core1# trunk PORT1-PORT2 (e.g. C1/C2) Trk<ID> (a.e. Trk99) LACP
PROCURVE-Core1# vlan <VLANID>
PROCURVE-Core1# untagged Trk<ID> (e.g. Trk99)
PROCURVE-Core1# show lacp
PROCURVE-Core1# show log lacp

Trunk Config:

PROCURVE-Core1#conf ter
PROCURVE-Core1# trunk PORT1-PORT2 (e.g. C1/C2) Trk<ID> (a.e. Trk99) TRUNK
PROCURVE-Core1# vlan <VLANID>
PROCURVE-Core1# untagged Trk<ID> (e.g. Trk99)
PROCURVE-Core1# show Trunk
PROCURVE-Core1# show log trunk

Share this:

Be the first to like this.


Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

26 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Posted in Virtualization | Tagged Etherchannel, Hyper-v, load balancing, nic teaming, Trunk, Virtual Switch, VLAN, Windows Server 2012 R2 | Leave a comment

How to upgrade firmware of brocade fabric switch


Posted on December 16, 2014

Requirements:

Filezilla FTP Server


Filezilla FTP Client
Putty
Java JRE installed on admin PC
Log on credential for Brocade website or respective vendor website e.g. IBM/Dell
Downloaded upgrade firmware

Upgrade Path.

Fabric OS 5.0.x to 5.2.3 is supported


Fabric OS 5.1.x to 5.3.1a is supported, but upgrading from Fabric OS 5.0.x or a previous release directly to
5.3.1a is not.
Fabric OS 6.0.0b is only allowed from Fabric OS 5.3.x.
Fabric OS 6.1.2c is allowed only from Fabric OS 6.0.0b
Fabric OS 6.2.2f is allowed only from Fabric OS 6.1.0a or later.
Fabric OS 6.3.2e is allowed only from Fabric OS 6.2.0a or later.
Fabric OS 6.4.3f is allowed only from Fabric OS 6.3.x. You can upgrade non-disruptively from 6.2
Fabric OS 7.0.2 can be done non-disruptively from Fabric OS 6.4.1a or later.
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

27 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Fabric OS 7.1.2 can be non-disruptively upgraded from 7.0.x and 7.1.x.


Fabric OS 7.2.1 can be done non-disruptively from 7.1.x. Disruptively from 7.0.x is supported.
Fabric OS 7.3.0 can be done non-disruptively from 7.2.x. Disruptively from 7.1.x is supported

Note: Disruptively means ports will go offline during the upgrade.

Step1: Turn off firewall.

Turn off firewall on Windows machine where you will install FTP server.

Step2: Configure FTP server

Download Filezilla FTP server for windows.

Install Filezilla FTP server. Installation is pretty simple. just run the installer GUI and accept the default. You may
find there are third party software embedded with Filezilla, decline first two and then click next to install FTP
server. Once installed. Click Edit, Click Settings. Select following. Setup timed out value to 9999.

Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

28 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Enable logging. so that you can see brocade is connecting to FTP server.

Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

29 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Create an anonymous user account and set password to none.

Set shared folder location and click Set as home dir

Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

30 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Actual location of firmware in my PC.

Step3: Test FTP connectivity

Now install Filezilla client and test connectivity

Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

31 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Step4: Upgrade Firmware in Brocade

Now open Putty, Type IP address of brocade switch. leave the default port 22.

Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

32 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Log on to brocade fabric or rebranded brocade fabric using root and fibranne as password

Type firmwaredownload

IP address: 10.6.0.201 or IP address of your PC where you configured Filezilla FTP server

Username: blank or Hit enter I am using anonymous FTP. No need to type username

Path: /v7.1.2b or the path where you saved firmware. See the screen shoot on FTP client
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

33 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Password: blank Hit enter I am using anonymous FTP. No need to type password

Do you want to continue? [y/n]:y

Close putty session now. This procedure will reboot the Brocade switch. You are done.

Brocade Reference

Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

34 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Once Brocade Fabric is rebooted, reconnect using putty, log on and type firmwareshow to see the current version
of firmware.

If you would like to upgrade from v7.1.2b to v7.3.0c directly. use the following command. This is a disruptive
upgrade procedure.

firmwareDownload –s

IP address: 10.6.0.201 or IP address of your PC where you configured Filezilla FTP server

Username: blank or Hit enter I am using anonymous FTP. No need to type username

Path: /v7.3.0c or the path where you saved firmware. See the screen shoot on FTP client

Password: blank Hit enter I am using anonymous FTP. No need to type password

Do you want to continue? [y/n]:y

Do Auto-Commit after Reboot [Y]: y

Reboot system after download [N]: y

Firmware is being downloaded to the switch. This step may take up to 30 minutes.

In fact this will take approximately 45 minutes to complete. have cup of coffee and relax.

Brocade reference
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

35 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Share this:

Be the first to like this.

Posted in Miscellaneous | Tagged brocade 300, brocade fabric, Brocade HBA, filezilla ftp, FTP7.5, step by Step, upgrade firmware | Leave a comment

Migrating VMs from Standalone Hyper-v Host to clustered Hyper-v Host


Posted on December 5, 2014

Scenario 1: Configuring two standalone Windows servers (Hyper-v role installed) into clustered Windows
servers (Hyper-v role installed)

Steps involved in this scenario. There will be downtime in this scenario.

1. Delete all snapshots from VMs


2. Update Windows Server to latest patches and hotfixes
3. Reboot hosts
4. Install Failover Clustering Windows Feature in both hosts
5. Connect hosts with shared storage infrastructure either iSCSI or fibre channel
6. Present shared storage (5GB for Quorum disk and additional disk for VMs store) to Hyper-v Hosts.
7. Run Failover cluster Wizard, create cluster.
8. From the failover cluster manager, Click Disk, select virtual machine storage and convert the disk to clustered
share volume
9. Open Hyper-v Manager from Server Manager, run storage migration and migrate all VM data to single
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

36 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

location which is shared storage.


10. Now use Configure Role Wizard from Failover Cluster Manager, Select Virtual Machine from drop down list,
Select one or More VMs and migrate those VMs to Failover cluster node.
11. Test Live migration.

Scenario 2: migrating standalone windows server (Hyper-v role installed) using local storage to different
windows server (Hyper-v role installed) cluster using shared storage.

In this scenario, clustered Windows servers doesn’t see local storage available in old Hyper-v host and old
Hyper-v host doesn’t see shared storage in new Hyper-v clustered environment. There will be downtime when you
migrate VMs. Delete any snapshot, backup all VMs before you proceed.

Option A: Download Veeam Backup & Replication 8 trial version, configure a VM as Veeam management server.
Add Source host as standalone hyper-v host and target host as Hyper-v cluster. Replicate all the VMs. Shutdown
old VMs in standalone Hyper-v Hosts, then Power on VMs in Hyper-v cluster. Delete old VMs.

Option B: Copy VHD and configuration file and save into clustered shared storage. Log on to one of the clustered
hyper-v host, Open Hyper-v Manager, Import VM option to import VM. Then use Configure Role option in
failover Cluster Manager in same host to migrate the VM into cluster, then Power on VM in cluster.

My recommendation: use Veeam B&R.

Scenario 3: migrating standalone windows server (Hyper-v role installed) using iSCSI storage to different
windows server (Hyper-v role installed) cluster using fibre channel or iSCSI storage.

Option
Blog A: shutdown
by Raihan Al-Beruni VMs. Present same iSCSI storage connected standalone hosts to
Blogclustered hosts.
at WordPress.com. The Use
Twentystorage
Ten Theme

37 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

migration to migrate VMs to clustered Hosts. Then use configure role option, Failover cluster manager to migrate
VMs to Hyper-v cluster.

Option B: Again use Veeam to do the job.

There are many factors/challenges when migrating VMs from standalone environment to clustered environment.

1. iSCSI storage to Fibre Channel storage. When new cluster has host bus adapter (HBA) and old standalone host
doesn’t have HBA. You can use Microsoft iSCSI initiation to fulfil the initiator requirement in new host.
2. Fibre channel storage to iSCSI storage. There will heaps of downtime to fulfil this requirement because of new
architecture. Veeam can be part of a solution.
3. Multi-site and geographically diverse cluster will depend on MPLS or IPVPN network latency and bandwidth.

In conclusion, there is no silver bullet for individual situation. You have to consult with Microsoft partner to get a
correct migration path that best fit your requirements.

Share this:

Be the first to like this.

Posted in Virtualization | Tagged Failover cluster, Hyper-v Server 2012, Migrate, standalone, step by Step, Windows Server 2012 R2 | Leave a comment

How to install and run Hyper-v Server 2012 R2 on USB


Posted on December 5, 2014
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

38 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Requirements:

Hyper-v Server 2012 R2


USB stick 80GB
Windows 8.1 WAIK
Net Framework 4.5

Note: The following steps work for Hyper-v 2012 R2. You have to use SConfig tool to configure basic Hyper-v
settings such as remote administration and networking. When you boot server using this USB stick containing
.vhdx file, Setup begins. You can then select preferred option.

How to install Hyper-v Server 2012 R2 on USB

Step1: Install Windows WAIK on a Windows 8 PC

You will see DISM.exe in C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment
Kit\Deployment Tools\amd64\DISM

Step2: Extract Windows Server 2012 R2 and copy install.wim file in C:\Win2012R2ISO location

Step3: Create VHDX file

Open elevated command prompt, issue the following command step by step

mkdir c:\Win2012R2
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

39 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

diskpart

create vdisk file=c:\Win2012R2\HYPV2012R2.vhdx maximum=81920 type=fixed

where 81920 is 80GB.

select vdisk file=c:\Win2012R2\ HYPV2012R2.vhdx

attach vdisk

create partition primary

assign letter=r

format quick fs=ntfs label=HYPV2012R2

exit

Step4: Apply install.wim file

Open elevated command prompt, issue the following command step by step

cd /d “c:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Deployment Tools\


<architecture>\DISM” where architecture is amd64 or x86

dism.exe /apply-image /Imagefile: C:\Win2012R2ISO\install.wim /Index:1 /ApplyDir:R:\


Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

40 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Step5: Insert USB stick and create partition

Open elevated command prompt, issue the following command step by step

diskpart

list disk

select disk <USB stick number>

clean

create partition primary

select partition 1

active

format quick fs=ntfs

assign letter=v

exit

Step6: Remove PageFile from Bootable disk

Open elevated command prompt, issue the following command step by step
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

41 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

reg load HKLM\HyperVTemp r:\windows\system32\config\system

reg add “HKLM\HyperVTemp\ControlSet001\Control\Session Manager\Memory Management” /v PagingFiles


/t REG_MULTI_SZ /d “” /f

reg delete “HKLM\HyperVTemp\ControlSet001\Control\Session Manager\Memory Management” /v


ExistingPageFiles /f

If you receive invalid key error. Simply type regedit and go this location and delete PagingFiles key.

reg unload HKLM\HyperVTemp

Step7: Copy VHDX to USB stick

Say USB stick is presented as V: drive of your PC. Copy the VHDX file from c:\Win2012R2\HYPV2012R2.vhdx to
V: drive where the USB stick is attached. Open elevated command prompt, issue the following command step by
step

diskpart

list disk

select vdisk file=V:\HYPV2012R2.vhdx

attach vdisk

Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

42 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

exit

Step8: Make it bootable

Open elevated command prompt, issue the following command step by step

cd /d ” c:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Deployment Tools\


<architecture>\BCDBoot”

bootsect /nt60 v: /force /mbr

Use the BCDBoot tool to copy the necessary boot files so that you can boot your USB stick.

bcdboot r:\windows /s v:

Step9: Dettach r:\HYPV2012R2.vhdx

Open elevated command prompt, issue the following command step by step

diskpart

select vdisk file=r:\HYPV2012R2.vhdx

detach vdisk

exit
Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

43 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Step10: Test

Detach USB stick from PC and insert into server. Power on Server. Go to BIOS of the server. Change boot order to
USB/ Build in Hypervisor. Save and Exit BIOS. Reboot the server.

Step11: Troubleshooting if required

Put the USB in to your server


Boot the server using a Hyper-v 2012 R2 DVD
Select your language, click Next, then select ‘Repair your computer’
Select ‘Command prompt’
Run ‘bcdedit /enum’, it’s probably still pointing to your .vhdx file (check ‘device’ and ‘osdevice’)
Fix this by using bcdedit, I used;
exe /set {default} device vhd=[C:]\HYPRV2012R2.vhd
and
bcdedit.exe /set {default} osdevice vhd=[C:]\HYPRV2012R2.vhd
Now remove the Windows dvd and boot from USB.

References http://technet.microsoft.com/en-us/library/ee731893%28WS.10%29.aspx

Share this:

Be the first to like this.


Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

44 of 45 1/29/2015 2:56 PM
Blog by Raihan Al-Beruni | @WintelGuru https://araihan.wordpress.com/

Posted in Virtualization | Tagged Bootable, Hyper-v server 2012 R2, Microsoft Hyper-V, USB, Windows Server 2012 R2 | Leave a comment

Blog by Raihan Al-Beruni Blog at WordPress.com. The Twenty Ten Theme

45 of 45 1/29/2015 2:56 PM

You might also like