Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Rearchitecting Storage for Server Virtualization

2,333 views

Published on

Published in: Technology
  • Be the first to comment

Rearchitecting Storage for Server Virtualization

  1. 1. Rearchitecting Storage for Server Virtualization<br />Stephen Foskett<br />Oct 21, 2010<br />
  2. 2. This is Not a Rah-Rah Session<br />
  3. 3. Agenda<br />First 45 minutes<br />Impact of hypervisors on I/O<br />VM storage approaches<br />VM connectivity options<br />Break<br />Second 45 minutes<br />Storage features for VM<br />Questions and comments<br />
  4. 4. Introducing Virtualization<br />
  5. 5. Poll: Who Is Using VMware?<br />Source: A dozen analyst SWAGs<br />
  6. 6. Server Virtualization “The I/O Blender”<br />Shared storage is challenging to implement<br />Storage arrays “guess” what’s coming next based on allocation (LUN) taking advantage of sequential performance<br />Server virtualization throws I/O into a blender – All I/O is now random I/O!<br />
  7. 7. Server Virtualization requires SAN and NAS<br />Server virtualization has transformed the data center and storage requirements<br />VMware is the #1 driver of SAN adoption today!<br />60% of virtual server storage is on SAN or NAS<br />86% have implemented some server virtualization<br />Server virtualization has enabled and demanded centralization and sharing of storage on arrays like never before!<br />
  8. 8. Server Virtualization Recoil<br />Dramatically increased I/O<br />“Detrimental” to storage utilization<br />Patchwork of support, few standards<br />“VMware mode” on storage arrays<br />Virtual HBA/N_Port ID Virtualization (NPIV)<br />Everyone is qualifying everyone and jockeying for position<br />Befuddled traditional backup, replication, reporting<br />
  9. 9. Three Pillars of VM Performance<br />
  10. 10. Poll: Does Server Virtualization Improve Storage Utilization?<br />
  11. 11. Hypervisor Storage Approaches<br />
  12. 12. Hypervisor Storage Options:Shared Storage<br />Shared storage - the common/ workstation approach<br />Stores VMDK image in VMFS datastores<br />DAS or FC/iSCSI SAN<br />Hyper-V VHD is similar<br />Why?<br />Traditional, familiar, common (~90%)<br />Prime features (Storage VMotion, etc)<br />Multipathing, load balancing, failover*<br />But…<br />Overhead of two storage stacks (5-8%)<br />Harder to leverage storage features<br />Often shares storage LUN and queue<br />Difficult storage management<br />VM<br />Host<br />Guest<br />OS<br />VMFS<br />VMDK<br />DAS or SAN<br />Storage<br />
  13. 13. Hypervisor Storage Options:Shared Storage on NFS<br />Shared storage on NFS – skip VMFS and use NAS<br />NTFS is the datastore<br />Wow!<br />Simple – no SAN<br />Multiple queues<br />Flexible (on-the-fly changes)<br />Simple snap and replicate*<br />Enables full Vmotion<br />Use fixed LACP for trunking<br />But…<br />Less familiar (3.0+)<br />CPU load questions<br />Default limited to 8 NFS datastores<br />Will multi-VMDK snaps be consistent?<br />VM<br />Host<br />Guest<br />OS<br />NFS<br />Storage<br />VMDK<br />
  14. 14. Hypervisor Storage Options:Raw Device Mapping (RDM)<br />Raw device mapping (RDM) - guest VM’s access storage directly over iSCSI or FC<br />VM’s can even boot from raw devices<br />Hyper-V pass-through LUN is similar<br />Great!<br />Per-server queues for performance<br />Easier measurement<br />The only method for clustering<br />But…<br />Tricky VMotion and DRS<br />No storage VMotion<br />More management overhead<br />Limited to 256 LUNs per data center<br />VM<br />Host<br />Guest<br />OS<br />I/O<br />Mapping File<br />SAN Storage<br />
  15. 15. Physical vs. Virtual RDM<br />Virtual Compatibility Mode<br />Appears the same as a VMDK on VMFS<br />Retains file locking for clustering<br />Allows VM snapshots, clones, VMotion<br />Retains same characteristics if storage is moved<br />Physical Compatibility Mode<br />Appears as a LUN on a “hard” host<br />Allows V-to-P clustering,a VMware locking<br />No VM snapshots, VCB, VMotion<br />All characteristics and SCSI commands (except “Report LUN”) are passed through – required for some SAN management software<br />
  16. 16. Physical vs. Virtual RDM<br />
  17. 17. Which VMware Storage Method Performs Best?<br />Mixed Random I/O<br />CPU Cost Per I/O<br />VMFS,<br />RDM (p), or RDM (v)<br />Source: “Performance Characterization of VMFS and RDM Using a SAN”, VMware Inc., 2008<br />
  18. 18. Storage Connectivity Options<br />
  19. 19. Which Storage Protocol To Use?<br />Server admins don’t know/care about storage protocols and will want whatever they are familiar with<br />Storage admins have preconceived notions about the merits of various options:<br />FC is fast, low-latency, low-CPU, expensive<br />NFS is slow, high-latency, high-CPU, cheap<br />iSCSI is medium, medium, medium, medium<br />
  20. 20. vSphere Protocol Performance<br />
  21. 21. vSphere CPU Utilization<br />
  22. 22. vSphere Latency<br />
  23. 23. Microsoft Hyper-V Performance<br />
  24. 24. The Upshot: It Doesn’t Matter<br />Use what you have and are familiar with!<br />FC, iSCSI, NFS all work well<br />Most enterprise production VM data is on FC, many smaller shops using iSCSI or NFS<br />Either/or? - 50% use a combination<br />For IP storage<br />Network hardware and config matters more than protocol (NFS, iSCSI, FC)<br />Use a separate network or VLAN<br />Use a fast switch and consider jumbo frames<br />For FC storage<br />8Gb FC/FCoE is awesome for VM’s<br />Look into NPIV<br />Look for VAAI<br />
  25. 25. Break Time!<br />Stephen Foskett<br />stephen@fosketts.net<br />twitter.com/sfoskett<br />+1(508)451-9532<br />FoskettServices.com<br />blog.fosketts.net<br />GestaltIT.com<br />25<br />
  26. 26. VMware Storage Features<br />
  27. 27. What’s New in vSphere 4<br />VMware vSphere 4 (AKA ESX/ESXi 4) is a major upgrade for storage<br />Lots of new features like thin provisioning, PSA, Any-to-any Storage VMotion, PVSCSI<br />Massive performance upgrade (400k IOPS!)<br />vSphere 4.1 is equally huge for storage<br />Boot from SAN<br />vStorage APIs for Array Integration (VAAI)<br />Storage I/O Control (SIOC) aka DRS for Storage<br />
  28. 28. Storage Features By License<br />
  29. 29. Native VMware Thin Provisioning<br />VMware ESX 4 allocates storage in 1 MB chunks as capacity is used<br />Similar support enabled for virtual disks on NFS in VI 3<br />Thin provisioning existed for block, could be enabled on the command line in VI 3<br />Present in VMware desktop products<br />vSphere4 fully supports and integrates thin provisioning<br />Every version/license includes thin provisioning<br />Allows thick-to-thin conversion during Storage Vmotion<br />In-array thin provisioning also supported (we’ll get to that…)<br />
  30. 30. Pluggable Storage Architecture<br />VMware ESX includes multipathing built in<br />Basic native multipathing (NMP) is round-robin fail-over only – it will not load balance I/O across multiple paths or make more intelligent decisions about which paths to use<br />E+ Only: vSphere 4 Pluggable Storage Architecture allows third-party developers to replace ESX’s storage I/O stack<br />There are two classes of third-party plug-ins:<br />Path-selection plugins (PSPs) optimize the choice of which path to use, ideal for active/passive type arrays<br />Storage array type plugins (SATPs) allow load balancing across multiple paths in addition to path selection for active/active arrays<br />EMCPowerPath/VE for vSphere does everything<br />
  31. 31. vStorage APIs for Array Integration (VAAI)<br />vSphere 4.1 only!<br />Array-based “Full Copy” command offloads operations to array snapshots for Storage VMotion<br />Acceleration of storage I/O - think "I/O" dedupe (not to be confused with data deduplication<br />Hardware-assisted locking on a block-by-block basis (rather than entire LUN)<br />Array-based thin provisioning integration using TRIM, zeroing, etc<br />Supposed to have thin provisioning stun, but it’s AWOL<br />
  32. 32. Storage I/O Control (SIOC)<br />“SIOC provides a dynamic control mechanism for proportional allocation of shared storage resources to VMs running on multiple hosts”<br />ESX can provide quality of service for storage access to virtual machines<br />Enabled on the datastoreobject, when a pre-defined latency level is exceeded on a VM it begins to throttle I/O based on the shares assigned to each VM<br />SIOC is aware of the storage array device level queue slots as well as the latency of workloads and decides how it can best keep machines below the predefined latency tolerance by manipulating all the ESX host I/O queues <br />Introduce an element of I/O fairness across a datastore<br />But:<br />vSphere 4.1 and Enterprise Plus only<br />Only supported with block storage (FC or ISCSI)<br />Does not support RDM’s or datastores constructed of extents, only 1:1 LUN to datastoremapping<br />
  33. 33. Why NPIV Matters<br />N_Port ID Virtualization (NPIV) gives each server a unique WWN<br />Easier to move and clone* virtual servers <br />Better handling of fabric login<br />Virtual servers can have their own LUNs, QoS, and zoning<br />Just like a real server!<br />When looking at NPIV, consider:<br />How many virtual WWNs does it support? T11 spec says “up to 256”<br />OS, virtualization software, HBA, FC switch, and array support and licensing<br />Can’t upgrade some old hardware for NPIV, especially HBAs<br />Without NPIV<br />Virtual Server<br />Virtual Server<br />Virtual Server<br />21:00:00:e0:8b:05:05:04<br />With NPIV<br />Virtual Server<br />Virtual Server<br />Virtual Server<br />…05:05:05<br />…05:05:06<br />…05:05:07<br />
  34. 34. Intel VMDq, VMDc, MS RSS<br />VMDq is like NPIV for network cards<br />Hardware-assisted sorting of virtual network cards<br />Uses MAC address<br />Requires special driver<br />Supported on ESX and Hyper-V<br />Two more technologies:<br />VMDc is different – Intel’s networking take on SR-IOV<br />Microsoft RSS allocates work to multiple CPU cores<br />
  35. 35. And Then There’s VDI…<br />Desktop Virtualization (VDI) takes everything we just worried about and amplifies it<br />Massive I/O crunches<br />Huge duplication of data<br />More wasted capacity<br />More user visibility<br />More backup trouble<br />
  36. 36. Thank You!<br />Stephen Foskett<br />stephen@fosketts.net<br />twitter.com/sfoskett<br />+1(508)451-9532<br />FoskettServices.com<br />blog.fosketts.net<br />GestaltIT.com<br />36<br />

×