Details
- http://www.coraid.com/products
- http://www.coraid.com/support/customer_support
- http://www.coraid.com/support/coraid_support_plans
To contact Coraid support directly, email [email protected].
Solution
Introduction to Coraid technology
The Coraid EtherDrive Host Bus Adapter and driver for VMware ESXi enable your server with AoE technology to deliver affordable, fast EtherDrive SAN solutions for your virtualization environment. Enabling ESXi hosts to work natively with EtherDrive storage is a highly effective way to take full advantage of VMware vSphere features including vMotion and VMFS. Coraid EtherDrive SAN products deliver Fibre Channel speeds at Ethernet prices in an easily scalable, reliable, and simply elegant solution.
Terminology
- LUN (Logical Unit Number) – A LUN is a grouping of uniquely numbered blocks of storage with each block containing 512 bytes of data. LUNs can be disk drives, disk partitions, groups of disks operating as one (a RAID array), or abstracted “virtual” LUNs made from other LUNs. EtherDrive storage appears as one or more LUNs to an ESXi host. VMware refers to LUNs as Volumes and/or Datastores.
- AoE – ATA over Ethernet (AoE) is the storage protocol that Coraid EtherDrive devices use to send block data between target and host.
- HBA (Host Bus Adapter) – A HBA is used to connect an ESXi host to network storage. These EtherDrive HBAs are available from Coraid:
PCIe HBA with (2) RJ-45 GbE ports
PCIe HBA with (2) RJ-45 10G Base-T ports
PCIe HBA with (2) CX-4 10 GbE ports
PCIe HBA with (2) SFP+ 10 GbE ports
Mezzanine HBAs for HP, IBM and Dell Blade Servers
Basic Configuration of RAID LUNs on the EtherDrive SAN
Before Coraid EtherDrive SAN storage can be used with an ESXi host, one or more LUNs must be configured on the EtherDrive SAN storage appliance or through the EtherDrive VSX storage virtualization appliance. The SRX Admin Guide and VSX Admin Guide should both be used as the complete reference for EtherDrive SAN appliance configuration.
To setup a LUN on an EtherDrive Storage Appliance, follow these sample steps:
- Boot unit and set self address:
SR shelf unset> shelf 1 - Create a 8-disk RAID5 LUN:
SR shelf 1> make 0 raid5 1.0-9 - Enable the LUN:
SR shelf 1> online 1
At this point, LUN 1.0 is online and visible to any EtherDrive HBA on the same Layer 2 network.
Installing the Coraid HBA and Driver in ESXi
The Coraid EtherDrive HBA utilizes a PCIe interface within the ESXi Host. A full set of documentation on the ESXi HBA options and drivers is located at http://support.coraid.com/esx.
When the HBA has been physically installed in the ESXi host, the software driver must be installed for ESXi to recognize and utilize the card. You can download the software driver from http://support.coraid.com/support/esx. You can also access the software driver directly from the ESXi console using the wget command.
- To SCP the driver to the ESXi host, the ESXi host must be configured to support SSH. For more information, seeUsing Tech Support Mode in ESXi 4.1 and ESXi 5.x (1017910).
- The proceeding steps provide an example with a generic driver version. Change the file name as referenced in steps as appropriate for the desired release version. For more information, see the Installation and Configuration Guide for the correct recommended product version.
- Access the ESXi console as the root user.
- Copy the EtherDrive HBA driver to the ESX/ESXi host with the command:
wget http://support.coraid.com/support/esx/etherdrive-hba-esxi5-x.x.x-Rx.zip
From the console on the ESXi host, install the EtherDrive HBA driver.
If the user is logged in to the ESXi host directly, enter:
esxcli software vib install –d file:///etherdrive-hba-esxi5-x.x.x-Rx.zipIf using the vSphere CLI, enter:
esxcli -u root -s hostname software vib install -d file:///etherdrive-hba-esxi5-x.x.x-Rx.zip
Reboot the ESXi hostby typing reboot at the Console OS command prompt.
Accessing and using EtherDrive LUNs in vSphere Client
Claiming a LUN
The EtherDrive HBA sees all EtherDrive LUNs that are available on the SAN. To allow the ESXi host visibility of the LUN, it must be "claimed". Only LUNs that have been claimed by an ESXi host are presented to ESXi and assigned a SCSI ID. When a LUN is claimed by an ESXi host, all other hosts in the ESXi cluster view it as claimed and also obtain a SCSI ID for access to this shared storage device. The act of claiming is only required by one ESXi host.
Note: One of the changes between ESXi 4.x and 5.x is in the VMFS File System. If a datastore was created on an ESXi 4.x system, that datastore and the LUN are considered "legacy" LUNs. See instructions for claiming Legacy LUNs on an ESXi 5.x, see Claiming a legacy LUN.
esxcli ethdrv claim -t targetid
Where targetid is shelf number.LUN number. For example, with shelf 1, LUN 0, the command is:
esxcli ethdrv claim -t 1.0
Claiming a Legacy LUN
Because of the maximum 2TB LUN capacity limit in VMFS 3 and the SCSI-2 LUN capacity limitations included, a legacy LUN is presented as one or more 2TB SCSI devices which each use a unique 8-byte NAA for identification. As part of the legacy claim function, the EtherDrive HBA automatically presents a Coraid LUN greater than 2TB to the ESXi host as multiple LUNs segmented at 2TB boundaries.
In the example below, the 9TB LUN (1.0) is legacy claimed and presented to the ESXi server as two 4TB LUNs and one 1TB LUN.
For example, run the command:
[root@remo ~]# cat /proc/ethdrv/devices
vmhba2:C0:T0:L01.0 2.0TB
vmhba2:C0:T0:L1 1.0 2.0TB
vmhba2:C0:T0:L2 1.0 2.0TB
vmhba2:C0:T0:L3 1.0 2.0TB
vmhba2:C0:T0:L4 1.01105.955GB
The result of this legacy claim is (4) 2TB LUNs and (1) additional ~1TB LUN. If desired, the segmented LUNs can be reassembled into a single datastore by using the Extend Datastore feature.
To use the ESXi CLI to claim a legacy LUN:
- Launch the vSphere CLI or VMware Management Assistant (VMA).
- Log in with root permissions.
- At the prompt, run:
esxcli ethdrv claim -l -t targetid
For example:
~ # esxcli ethdrv claim -l -t 1.0
Note: -l indicates that this is a legacy target.
Repeat the claim command for each Legacy LUN/datastore that needs to be recognized on an ESXi 5.0 host.
- Open the vSphere Client and select the ESXi host where the EtherDrive HBA was installed.
- Click the Configuration tab.
- Click Storage Adapters (under Hardware).
- Click Rescan All to instruct the vSphere Client to refresh the list of available storage adapters.
- Launch vSphere Client.
- Click the Configuration tab.
- Click Storage Adapters.
- Click Rescan All.
- Review the information about the datastores in the host’s storage inventory and the virtual machines in the host’s virtual machine inventory.
The Coraid EtherDrive HBA should now be displayed in the list of available storage adapters and the available LUNs (targets) should be listed under the Details section.
Renaming the EtherDrive LUNs
vSphere assigns a name to each LUN available to the ESXi host. LUN names can be changed from the vSphere-assigned LUN names to reflect EtherDrive shelf.slot names. Renaming the LUNs to reflect the EtherDrive shelf.slot mapping is recommended to maintain DataStore to LUN mappings and organization.
- Claim the LUN. For more information, see Claiming a LUN.
- Launch vSphere Client.
- Click the Configuration tab.
- Click Storage Adapters.
- Select the vmhba beneath Coraid EtherDrive HBA in the Storage Adapters menu.
A list of available storage devices displays in the Details field. - Note the vSphere‐assigned LUN name in the Runtime Name column. For example:
Compare it to the output of the ESX CLI command:~ # cat /proc/ethdrv/devices
For example:vmhba2:C0:T3:L0 26.0 8000.000GB
vmhba2:C0:T8:L0 28.1 2199.023GB
vmhba2:C0:T8:L1 28.1 2199.023GBThe Runtime Name vmhba2:C0:T2:L0 is assigned to LUN 26.0.
- Note the name that the ESXi host has assigned to the LUN:
In this example, it is Local Coraid Disk (naa.600100408f7239d9f03fa00700000000).
Right-click the LUN and click Rename.
Name the LUN with the shelf:LUN:Extent number used by the EtherDrive SAN.
In this case, it is EtherDrive 26.0.
Creating a datastore on the EtherDrive SAN
Creating a datastore on the EtherDrive SAN follows the same steps as configuring any SCSI storage.
- Launch vSphere Client.
- Click the Configuration tab.
- Under Hardware, click Storage.
- Click Add Storage.
Follow the Add Storage Wizard to select Disk/LUN and the datastore options for storage initialization.
Based on VMware KB 1031322