|
Objective 3.2 – Configure iSCSI SAN Storage |
|
|
|
Written by Matthijs van den Berg
|
|
Wednesday, 14 October 2009 22:28 |
Knowledge
- Identify iSCSI SAN hardware components
Like a Fibre channel SAN a iSCSI SAN is build up out of three components (normal setup). We find:
- iSCSI Target
This is the controller of the disk and the device that converts the undelaying disk technology (for example SCSI) to iSCSI traffic on a network.
- Switch
The iSCSI target is connected to the network. The iSCSI initiators talk to the iSCSI target over this network layer. A regular ethenet switch can be used, but a dedicated VLAN, or even better, a dedicated switch with jumbo frame support is recommended. Minimum speed must be gigabit.
- iSCSI initiator
The iSCSI initiator is the ESX host. On this host a software of hardware iSCSI initiator can be installed. Read further down for a comparison between the soft- and hardware initiators.
- Determine use cases for hardware vs. software iSCSI initiators
You can use both a hardware as well as a software iSCSI initiator within VMware. Both will do the job, but there are some differences:
- Software iSCSI initiator
The software iSCSI initiator uses code from the vmkernel and requires only regular NIC’s in you ESX host. Best is to use a dedicated NIC, but using a VLAN is possible as well. The main benefits of an iSCSI software initiator is the low cost (regular NIC of VLAN) that provides most of the functionality needed for most of the environments.
- Hardware iSCSI initiator
The hardware initiator allows for some extra functionality and less of a performance penalty on the system processor than the software initiator. Because the handling of IP packets is not done on the system processor, but on the iSCSI hardware initiator. Also hardware initiators allow a boot from iSCSI SAN setup. Generally only the most demanding setups require a hardware initiator but in those environments a fibre channel SAN is another way to go.
- Configure the iSCSI Software Initiator
When you need a iSCSI software initiator you need to:
- Create a VMkernel port for physical network adapters
- Select a ESX host
- Select the tab “Configuration”
- Select “Networking”
- Select “Add Networking”
- Select “VMkernel”
- Select “Create a virtual switch”
- Select “Select the NICs
- Go to “Port Group Properties” and enter a friendly name under Network label
- Enter the IP settings
- Finish
- Enable the software iSCSI initiator
- Select a ESX host
- Select the tab “Configuration”
- Select “Storage Adaptors”
- Select the iSCSI Initiator
- Select properties
- Click “Enabled”
- If you use multiple network adapters, activate multipathing on your host using the port binding technique. You can find all about multipathing here op page 33.
- If needed, enable Jumbo Frames
Jumbo Frames must be enabled for each vSwitch through the vSphere CLI. Also, if you use an ESX host, you must create a VMkernel network interface enabled with Jumbo Frames. This can only be done from the Command Line.
esxcfg-vmknic -l
Configure Dynamic/Static Discovery
- Dynamic Discovery
With Dynamic Discovery, each time the initiator contacts a specified iSCSI server, it sends the Send Targets request to the server. The server responds by supplying a list of available targets to the initiator.
- Static Discevery
With iSCSI initiators, in addition to the dynamic discovery method, you can use static discovery and manually enter information for the targets.
- To set-up the discovery:
- Select a ESX host
- Select the tab “Configuration”
- Select “Storage Adaptors”
- Select the iSCSI Initiator, properties
- Click the tab “Dynamic Discovery” or “Static Discovery” and add a server or target.
Configure CHAP Authentication CHAP uses a three-way handshake algorithm to verify the identity of your host and, if applicable, of the iSCSI target when the host and target establish a connection. The verification is based on a predefined private value, or CHAP secret, that the initiator and target share. ESX/ESXi supports CHAP authentication at the adapter level. In this case, all targets receive the same CHAP name and secret from the iSCSI initiator. For software iSCSI, ESX/ESXi also supports per-target CHAP authentication, which allows you to configure different credentials for each target to achieve greater level of security.
Before setting up CHAP parameters for software iSCSI, determine whether to configure one-way or mutual CHAP. Hardware iSCSI does not support mutual CHAP.
- In one-way CHAP, the target authenticates the initiator.
- In mutual CHAP, both the target and initiator authenticate each other. Make sure to use different secrets
for CHAP and mutual CHAP.
Tools
|