How to Use iSCSI Targets on VMware ESXi 5 With MPIO

30
1/30 1/2/2012 How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O Overview This article will guide the administrator into mounting an iSCS Target from Thecus NAS onto a VMware ESXi. This article was created with a VMware ESXi 5.0.0, and a Thecus NAS N4200 with firmware v5.02.01. Note: 1. Please make sure that an iSCSI Target has been created on the Thecus NAS and is ready for use. There is an article How to Create iSCSI Target on Thecus NAS (http://esupport.thecus.com/support/index.php?_m=downloads&_a=viewdownload&downloaditemid= 310) for reference. 2. It's recommended to use MPIO with separate networks (or different subnets) with multiple network cards to be installed on the iSCSI Initiator and Target. Usage of MPIO is recommended for experienced network administrators only. 3. On the iSCSI Initiator, its best to reserve network cards for storage duties only, and they can not be used for any other purpose. Preparing The ESXi Hypervisor for multiple NIC Usage This section is setting up the ESXi Hypervisor to use two NICs for MPIO. 1. Open the vSphere Client and proceed to Configuration, Networking and click Add Networking.

description

Iscsi vmware

Transcript of How to Use iSCSI Targets on VMware ESXi 5 With MPIO

Page 1: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

1/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

Overview

This article will guide the administrator into mounting an iSCS Target from Thecus NAS onto a VMware ESXi.

This article was created with a VMware ESXi 5.0.0, and a Thecus NAS N4200 with firmware v5.02.01.

Note:

1. Please make sure that an iSCSI Target has been created on the Thecus NAS and is ready for use.

There is an article How to Create iSCSI Target on Thecus NAS

(http://esupport.thecus.com/support/index.php?_m=downloads&_a=viewdownload&downloaditemid=

310) for reference.

2. It's recommended to use MPIO with separate networks (or different subnets) with multiple network

cards to be installed on the iSCSI Initiator and Target. Usage of MPIO is recommended for

experienced network administrators only.

3. On the iSCSI Initiator, its best to reserve network cards for storage duties only, and they can not be

used for any other purpose.

Preparing The ESXi Hypervisor for multiple NIC Usage

This section is setting up the ESXi Hypervisor to use two NICs for MPIO.

1. Open the vSphere Client and proceed to Configuration, Networking and click Add Networking.

Page 2: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

2/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

2. Select VMKernel and click Next.

3. Create a new virtual network switch and select a NIC located on another subnet.

Page 3: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

3/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

4. Enter a new name for this new network and click Next.

5. Enter IP Address and Subnet address for this secondary NIC and click Next.

Page 4: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

4/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

6. Finally confirmation setting and click Finish.

7. The second network has been add to this Hypervisor.

Page 5: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

5/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

8. If have additional NIC, please repeat this process for each additional network to be added to the

Hypervisor.

Page 6: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

6/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

Mounting the iSCSI Target on the ESXi Hypervisor

This section is mounting iSCSI Targets on the Thecus NAS to the ESXi Hypervisor.

1. On the Configuration tab, click Storage Adapters, select Add..

Page 7: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

7/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

2. Select the Software iSCSI Adapter, click Properties to configure the settings of the iSCSI Initiator.

Page 8: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

8/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

3. Check the status if Enable.

Page 9: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

9/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

If not, please click Configure, checkbox checked to enable.

Page 10: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

10/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

4. Once the iSCSI Initiator is enabled, click on Dynamic Discovery. Enter the primary IP Address of the

Thecus NAS.

Page 11: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

11/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

5. If mounting for MPIO, enter the secondary IP address of the Thecus NAS, located within the secondary

subnet of the ESXi Hypervisor.

6. After setting done, click Close to rescan the Host Bus Adapter, select Yes.

Page 12: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

12/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

7. The iSCSI Initiator has detected the target on the Thecus NAS. Right click on the target and select

Manage Paths.

Page 13: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

13/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

8. Select Round Robin (VMWare) and click Close.

Within the Path Management, the ESXi Hypervisor is using two paths (via two subnet) to mount the

same iSCSI Target.

Page 14: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

14/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

Formatting the iSCSI Target for usage within the ESXi Hypervisor

This section is formatting the iSCSI Target for usage within ESXi Hypervisor.

1. On the Configuration tab, click Storage and select Add Storage.

Page 15: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

15/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

2. Select Disk/LUN and click Next.

3. Find the iSCSI Target and click Next.

Page 16: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

16/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

4. Select the Mount Options and File System Version.

Page 17: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

17/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

5. Review the Current Disk Layout and click Next.

6. Enter a new datastore name for this new storage and click Next.

Page 18: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

18/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

7. Select Capacity space to use for this new storage and click Next.

8. Finally confirmation setting and click Finish.

Page 19: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

19/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

9. The new datastore has been added.

10. Right click the datastore and select the Browse Datastore. It is ready for use.

Page 20: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

20/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

Page 21: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

21/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

Page 22: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

22/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

Start the virtual machine creation process

1. Select the server and click the icon to add new virtual machine.

2. Configure settings for your new virtual machine, for this purpose we use Custom

Page 23: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

23/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

Provide name for your new virtual machine.

Page 24: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

24/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

3. For this purposes of this article, we're using the iSCSI target space on Thecus NAS N4200.

4. Choose the virtual hardware version you wan to use.

Page 25: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

25/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

5. Identify the operation system that will run inside the virtual machine. For this purposes of this article,

we're using Microsoft Windows Server 2008R2 (64bit).

6. Specify CPU /Memory /Network

Page 26: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

26/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

Page 27: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

27/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

7. Choose a SCSI Controller. LSI Logic SAS is the default for Windows-based guest operation system.

8. Choose your virtual disk.

Page 28: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

28/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

9. Specify Size of the new virtual disk / disk type /disk location

10. If you like, you can make advanced changes to the disk configuration on Advanced Option.

Page 29: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

29/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O

11. And with that, now created your first fully functioning virtual machine under VMware ESXi 5.

Page 30: How to Use iSCSI Targets on VMware ESXi 5 With MPIO

30/30 1/2/2012

How to use iSCSI Target on VMware ESXi 5.0.0 with Multipath I/O