Presenting Nutanix backed iSCSI storage with MPIO to Windows OS – Part2

This blog post is in continuation to my first blog in this series which you can read here. In the second and last part of this series I am going to describe the rest of the configuration at Nutanix layer and tie this all back together on the Windows VM again.

Configuration at the CVM/ACLI

Login to any CVM through SSH

Picture13

Open the ACLI interface by typing acli at the command prompt

Picture14

List the current Volume Groups , run vg.list command

Picture15

Create a new Volume Group , run vg.create <vg_name> command

Picture16

Create a new disk inside the Volume Group residing on a container , run vg.disk_create <vg_name> container=<container_name> create_size=<size_in_gb>

Picture17

Attach/Map the iSCSI initiator noted in the previous step on the VM configuration to the Volume Group, run vg.attach_external <vg_name> <iscsi_initiator_name>

Picture18Confirm and validate all the settings, run vg.get <vg_name>

Picture19

Back to Configuration at the Virtual Machine

Now lets go back to the Windows OS and perform the remaining steps of the mapping

Open the iSCSI initiator settings

  • Go to discovery
  • Select Discover Portal

Picture20

On the Discover Target Portal

  • Give the IP address of all the CVMs one by one , or you can just use the “Virtual IP” of the cluster and it will be taken care at the backend
  • Specify port 3260 for iSCSI
  • Click “OK”

Picture21

On the iSCSI Initiator Properties

  • Click on Discovery
  • Verify all the CVM IP addresses

Picture22On the iSCSI Initiator Properties

  • Click on Targets
  • Verify that you are able to see the target
  • Click “Connect”

Picture23

On the Connect to target screen

  • Specify the target name
  • Select “Add this connection to the list of Favorite Targets”
  • Select “Enable multi-path”
  • Click on “Advanced” (Detail in next pages)
  • Once the advance section gets completed click “OK”

Picture24

On the Advanced Settings Screen

  • Select the Local Adapter
  • Select “Initiator IP” , Select the first network card IP on your VM
  • Select “Target portal IP”
  • Click “OK”

Picture25

Picture26

Go back to the iSCSI initiator properties screen

  • Select Targets
  • Verify that the session is now connected

Picture27

Add one more session to be used for Multipathing

  • Select sessions
  • Click on “Add Session”

Picture28

On the connect to target screen repeat the same process

  • Specify the Target name
  • Enable Multi-path
  • Click on “Advanced”
  • Click “OK”

Picture29

On the Advanced Settings Screen

  • Select the Local Adapter
  • Select “Initiator IP” , Select the second network card IP on your VM
  • Select “Target portal IP” , select a different CVM IP this time
  • Click “OK”

Picture30

On the properties section

  • Click on Sessions
  • Verify that you can see both the sessions and they are connected
  • Click on Devices

Picture31

On the devices section

  • Click on the disk
  • Configure the MPIO
  • Click “OK” once the MPIO configuration is done

Picture32

On the MPIO section of Device Details Menu

  • Click on “MPIO”
  • Select Load balance policy as “Round Robin”
  • Repeat the same step for the other disk as well
  • Verify the configuration
  • Click “OK”

Picture33

Open Computer Management

  • Go to Disk Management
  • Verify that you can see the new disk
  • The disk will be offline initially and that needs to be changed

Picture34

Picture35

Open command prompt and run “diskpart”

Picture36

Run “san” in the diskpart utility and observe the SAN policy as Offline Shared

Picture37  
Run “san policy=onlineAll” in the diskpart utility , to change the disk status to online

Picture38

Run “list disk ” in the diskpart utility , to verify the status , at this moment it is still offline

Picture39

Run “select disk 1” in the diskpart utility , to select the newly added disk

Picture40

Run “attributes disk” in the diskpart utility , to see the disk attributesPicture41Run “attributes disk clear readonly” in the diskpart utility , to clear the readonly attribute

Picture42

Run “attributes disk” in the diskpart utility , to see the disk attributes now it has changed to “NO”

Picture43

Run “online disk ” in the diskpart utility , to make the disk online

Picture44

Open Computer Management

  • Go to Disk Management
  • Verify that you can see the new disk is showing as online now

Picture45

Create a new Simple Volume on that disk

Picture46

On the Simple Volume wizard Click Next

Picture47

Specify the volume size and click “Next”

Picture48

Assign Drive letter and Click “Next”

Picture49

Choose the file system , Volume Label and perform a quick format , Click “Next” and Click “Finish”

Picture50

Picture51

Verify that you can see your newly create volume under “My Computer

Picture52

This is it you have successfully configured iSCSI Volumes from AHV with MPIO on Windows. This concludes the two parts series , thank you for reading.

2 thoughts on “Presenting Nutanix backed iSCSI storage with MPIO to Windows OS – Part2

  1. Great post ! …
    Question :
    You added 2 of your 4 available CVMs as session holders.
    What is the best practice ?
    Just add 2 ? Or… you need to add all 4 ?

    Thanks !

Leave a Reply

Your email address will not be published. Required fields are marked *

*


9 − = zero