ESX Server 3.0 Tips and Tricks
Mostafa Khalil, VCP VMware Product Support Engineering
Agenda
Storage Area Network VMFS-3 iSCSI Storage NFS
Storage Area Network (SAN)
Components Topology Identification
SAN Components
Initiators (host HBAs) QLogic 1/2/4Gb Emulex 1/2/4Gb See HCL for supportability Set HBA’s BIOS to “Point-to-Point” or similar to that Targets (Storage Processors’ Ports) Active/Active Arrays Active/Passive Arrays Check the HCL for supportability Fabrics (Switches and Fibre Connections) No specific listing on HCL 1/2/4Gb switches May need to set switch port to “Fx” or equivalent (e.g. F-Port)
SAN Topology – Point-to-Point
AKA Direct Connect Not supported Except CX100
Storage SP
HBA Server
SAN Topology – Absolute Minimum
Switch allows additional connections of more storage or more servers No redundancy Many single points of failure Supported by VMware for ESX Server as a bare minimum configuration If the Storage Arrays are not listed on the hardware compatibility list (HCL), VMware only supports them with this simple configuration
Storage SP
FC Switch
HBA Server
SAN Topology – Arbitrated Loop
Not Supported
HBA Server Storage SP
HBA Server
SAN Topology – Multipath Fabric
Storage SP SP
FC Switch
HBA
HBA
HBA
HBA
Server
Server
SAN Topology – Fully Redundant Fabrics
Recommended
Storage SP1 SP2
FC Switch
FC Switch
HBA
HBA
HBA
HBA
Server
Server
Identifying SAN Configuration
VI Client Console
Multipath Analysis
Cannonical Name vmhbaC:T:L In this example Vmhba0:0:0 Policy: MRU or Fixed In this Example: MRU Path States: On Off Standby Dead
Multipath Analysis - Identifying Targets
SAN Type
EMC Clariion
Port ID
SPA0 SPA1 SPA2 SPA3 SPB0 SPB1 SPB2 SPB3
WWN
xx:xx:xx:60:xx:xx:xx:xx xx:xx:xx:61:xx:xx:xx:xx xx:xx:xx:62:xx:xx:xx:xx xx:xx:xx:63:xx:xx:xx:xx xx:xx:xx:68:xx:xx:xx:xx xx:xx:xx:69:xx:xx:xx:xx xx:xx:xx:6A:xx:xx:xx:xx xx:xx:xx:6B:xx:xx:xx:xx xx:xx:xx:xx:xx:xx:xx:x9 xx:xx:xx:xx:xx:xx:xx:x8 xx:xx:xx:xx:xx:xx:xx:xD xx:xx:xx:xx:xx:xx:xx:xC 20:0X:00:00:00:00:xx 20:0Z:00:00:00:00:zz
HP EVA
SPA1 SPA2 SPB1 SPB2
For IBM FAStT: Compare X and Z: Higher number is the secondary processor. Compare xx and zz: Higher number is the higher number port.
IBM FAStT
N/A N/A
VI Client – Multipath Analysis (Target Failover)
Cannonical name not equal to active path Target Failover example Failover
VI Client – Multipath Analysis (HBA Failover)
Cannonical name not equal to active path -> Failover HBA Failover example
Console – Multipath Analysis (Target Failover)
esxcfg-mpath -l Console View of the target failover event
Console – Multipath Analysis (HBA Failover)
esxcfg-mpath -l Console View of the HBA failover event
VMFS-3
Journaling Hierarchical Metadata LVM Snapshot handling VMotion with Storage Migration New Virtual Disk Types
Journaling
VMFS-3 is now a journal based file system Better recovery from crashes Online File System Check
Hierarchical Structure
VMFS-3 volumes support directory structure Virtual Machine files stored in the same directory Configuration file (VMX) VM Swap File Virtual Disks Logs Monitor dump
VMFS-3 Metadata
Copies of metadata stored at the root level of each volume Backup these files on a regular basis Run vm-support on a regular basis Collects Partition Table info
LVM - VMware Logical Volume Manager
Spanned VMFS volumes Volume still valid with missing extent(s) Snapshot LUN handling VMFS file system modules vmfs2 vmfs3 fsaux
VMFS3 Volume UUID
A volume UUID looks like this: 42263200-74382e04-b9bf-009c06010000 Also Known As “Signature” Created as a response to non-persistent vmhba names Volume names are supposed to be used instead of UUIDs Not to be confused with host UUIDs
Snapshot LUN Handling
Basic rules: A LUN shared by multiple hosts MUST be presented with the SAME LUN ID to all hosts A VMFS volume signature is associated with the LUN ID and the UUID among a few other elements (this may change at a later release) AX100 and IBM ESS (Shark) may not meet these rules. Symptoms Volume hidden Volume identified as a snapshot
Snapshot LUN Handling
Sample log entries
Jul 18 10:58:31 ServerB vmkernel: 0:14:17:59.787 cpu13:1046)LVM: 5670: Device vmhba1:0:5:1 is a snapshot: Jul 18 10:58:31 ServerB vmkernel: 0:14:17:59.787 cpu13:1046)LVM: 5676: disk ID: Jul 18 10:58:31 ServerB vmkernel: 0:14:17:59.787 cpu13:1046)LVM: 5678: m/d disk ID: Jul 18 10:58:31 ServerB vmkernel: 0:14:17:59.790 cpu13:1046)LVM: 5670: Device vmhba1:0:6:1 is a snapshot: Jul 18 10:58:31 ServerB vmkernel: 0:14:17:59.790 cpu13:1046)LVM: 5676: disk ID: Jul 18 10:58:31 ServerB vmkernel: 0:14:17:59.790 cpu13:1046)LVM: 5678: m/d disk ID: Jul 18 10:58:31 ServerB vmkernel: 0:14:17:59.794 cpu13:1046)LVM: 5670: Device vmhba1:0:7:1 is a snapshot: Jul 18 10:58:31 ServerB vmkernel: 0:14:17:59.794 cpu13:1046)LVM: 5676: disk ID: Jul 18 10:58:31 ServerB vmkernel: 0:14:17:59.794 cpu13:1046)LVM: 5678: m/d disk ID: # Extent description RW " Virtual Disk Type vmfsPassthroughRawDeviceMap Example createType="vmfsPassthroughRawDeviceMap" # Extent description RW 52428800 VMFSRDM "Win2K-rdmp.vmdk" Extent VMFSRDM “-rdmp.vmdk"
vmfsRawDeviceMap
VMFSRDM “-rdm.vmdk”
vmfs (Thin / Thick)
VMFS “-flat.vmdk”
Sample Virtual Disk
Storage Internals
Question?
iSCSI Storage
Block-level I/O over TCP/IP using SCSI-3 protocols Pros Direct access to random blocks on disks or LUNs for performance Block and file traffic on single Ethernet infrastructure Enabled by adoption of Gigabit Ethernet Can use normal IP authentication, encryption, routing features Cons Protocol overhead added by TCP/IP • Small packets, connection-oriented chatter • Gigabit traffic can saturate a 2.4-GHz CPU Slower than Fibre Channel (for now) TCP Offload Engines (TOE) Reduce CPU overhead, but expensive Plain Gigabit NICs catching up with better drivers
iSCSI Requirements
Install a VMotion and IP Storage licenses on VC Host and storage ports on the same subnet A supported Ethernet NIC OR A QLogic 4050 or other card on the HCL (Experimental) A supported iSCSI Storage
iSCSI Configuration
Authentication CHAP • Per HBA or per target None Target discovery Static targets SendTargets discovery (Dynamic) No SLP discovery No iSNS discovery Administration SNIA-based IMA library Configured through VMware Virtual Infrastructure Client Common approach for all initiators No need for vendor-specific tools
iSCSI – Configuring HW Initiator
Select: Configuration – Storage Adapters Select the HBA and click Properties (in details pane) Click “Configure”
iSCSI – Configuring SW Initiator
COS port group (for Authentication) VMKernel Port Group (for Data Traffic) Initiator IQN Security Discovery Multipathing Only with both ports on the same switch and subnet
iSCSI – SW Initiator
Configuring Network
iSCSI – SW Initiator
Enable software iSCSI client in firewall
iSCSI – SW Initiator
Enable “Software iSCSI Client” in firewall
iSCSI – SW Initiator
iSCSI properties get filled automatically Select “Dynamic Discovery”
iSCSI – Dynamic Discovery
Select “Add” then input the iSCSI Server’s IP address Repeat for each port on the iSCSI storage
iSCSI – Static Discovery
Same as Dynamic but select the “Static” tab instead Works with HW initiators ONLY
iSCSI – Authentication
Select the “CHAP Authentication” Tab then “Configure”
iSCSI – Troubleshooting
vmkiscsi-tool Usage: vmkiscsi-tool adapterName
shows the Initiators properties
iSCSI – Troubleshooting
Shows Discovery Properties If this were a Hardware Initiator, Static Targets would have been listed
iSCSI – Troubleshooting
Shows iSCSI Node Name (IQN)
iSCSI – Troubleshooting
Lists LUNs
iSCSI – Troubleshooting
Shows Node Alias then shows Authentication Method
Q&A
NAS and NFS – Overview
Use Network FileSystem Protocol NFS 3 TCP only (no UDP) Supported NAS filers only but also works with Linux NFS 3.x No CIFS/SMB yet NFS Naming Convention nfs.remote.com:/remote/filesystem Locking Handled by VMkernel Lease-based locks 8 NFS mounts by default. Can be increased to 32
NFS Configuring datastore
Configure the network
NFS Configuring datastore (cont.)
In “Storage” pane select “add” then “Network File System”
NFS Configuring datastore (cont.)
Fill in the NFS info
NFS Configuring datastore (cont.)
Now the storage shows the new DataStore
NFS – Console View
Mounted in the VMkernel NOT on the Service Console No need to modify /etc/fstab Recognized by vmkfstools as an NFS volume Virtual Machines can be stored there
NAS Tips and Tricks
ESX Server needs full access to NFS datastores to create directories, set permissions turn off root
squash
8 NFS mounts per ESX Server allowed by default. To increase Select host from inventory, rightclick “Advanced Settings” and select “NFS” Adjust “NFS.MaxVolumes”
Avoid VM swapping to NFS volumes Edit VM config file to add:
sched.swap.dir = /vmfs/volumes//“
Where is a VMFS3 volume
Troubleshooting NAS
Verify NAS filer/host configuration Make sure ESX Server is on the (Read/Write) host list on the filer Use ethereal to monitor NFS traffic On ESX Server use tcpdump to get a trace Verify the NFS connection properties on ESX Server To list Linux NFS host throughput, use:
hdparm –tT /dev/sd
NFS
Questions?
Presentation Download Please remember to complete your
session evaluation form
and return it to the room monitors as you exit the session
The presentation for this session can be downloaded at
http://www.vmware.com/vmtn/vmworld/sessions/
Enter the following to download (case-sensitive):
Username: cbv_rep Password: cbvfor9v9r
Some or all of the features in this document may be representative of feature areas under development. Feature commitments must not be included in contracts, purchase orders, or sales agreements of any kind. Technical feasibility and market demand will affect final delivery.