Storage and hyper v - the choices you can make and the things you need to know [svr308]


Published on

Published in: Technology
  • Be the first to comment

Storage and hyper v - the choices you can make and the things you need to know [svr308]

  1. 1.
  2. 2. Storage & Hyper-V: The Choices you can make and the things you need to know<br />Vijay Tewari<br />Principal Program Manager<br />Windows Server, Hyper-V<br />SVR308<br />
  3. 3. Session Objectives And Takeaways<br />Recap Hyper-V Architecture<br />Hyper-V storage (host and VM’s)<br />Storage Enhancements with Windows Server 2008 R2 Hyper-V<br />Tips/tricks, Best Practices and guidelines<br />
  4. 4. Hyper-V Architecture<br />
  5. 5. Hyper-V Architecture<br />Provided by:<br />OS<br />ISV / IHV / OEM<br />VM Worker Processes<br />Microsoft Hyper-V<br />Microsoft<br />Child Partitions<br />Management<br />Partition<br />Applications<br />Applications<br />Applications<br />Applications<br />User Mode<br />WMI Provider<br />VM Service<br />Windows Server 2008<br />Non-Hypervisor Aware OS<br />Windows Kernel<br />Windows Kernel<br />Linux Kernel<br />Windows Server 2003, 2008/R2<br />Windows Client OS (eg. 7)<br />VSP<br />IHV Drivers<br />Kernel Mode<br />VMBus<br />Linux VSC<br />VSC<br />Emulation<br />VMBus<br />VMBus<br />Windows hypervisor<br />Ring -1<br />“Designed for Windows” Server Hardware<br />
  6. 6. Hyper-V Storage<br />Hyper-V provides flexible storage options<br />DAS: SCSI, SATA, eSATA, USB, Firewire<br />SAN: iSCSI, Fibre Channel, SAS<br />NAS is not supported<br />High Availability/Live Migration<br />Requires block based, shared storage<br />Guest Clustering storage<br />Via iSCSI only<br />
  7. 7. Hyper-V Storage Options for VM’s<br />SAN<br />Hyper-V enabled host<br />LUN<br />LUN<br />Child partition<br />Parent partition<br />DAS<br />C:<br />VHD<br />Pass through<br />D:<br />DAS<br />Offline in parent <br />Pass through<br />LUN<br />E:<br />Fiber channel/iSCSI<br />M:<br />F:<br />VHD<br /><ul><li>Virtual hard Disks
  8. 8. Pass through disks</li></li></ul><li>Hyper-V StorageOptions for VM's<br />Pass Through Disks<br />VM writes directly to the LUN <br />No snapshots<br />LUN has to be dedicated to a VM<br />No host side VSS support <br />Virtual Hard Disks<br />Fixed VHD’s<br />Size on disk = Size of VHD<br />Dynamically expanding VHD’s<br />Size of disk is smaller than size of VHD<br />VHD is expanded on demand as required<br />Differencing disks <br />Parent child relationship. Parent MUST NOT be modified<br />
  9. 9. Using pass through disk with Hyper-VFixed and dynamic VHD’s<br />demo<br />
  10. 10. Hyper-V Storage Parameters<br />VHD max size 2040GB<br />Physical disk size (for pass through disks) not limited by Hyper-V<br />Virtual machines can have<br />Up to 2 IDE controllers with 2 devices per controller (total 4 IDE devices)<br />Up to 4 SCSI controllers with 64 devices per controller (total 256 devices)<br />Optical devices only on IDE<br />Boot disk has to be IDE<br />ISO’s from a network share (Constrained delegation required)<br />
  11. 11. ISOs on network Shares<br />Machine account access to share<br />Constrained delegation<br />
  12. 12. Configuring constrained delegation for ISO’s on a file share<br />demo<br />
  13. 13. Storage enhancements <br />Windows Server 208 R2 Hyper-V<br />
  14. 14. Overview of Storage Improvements in Windows Server 2008 R2 Hyper-V<br />
  15. 15. Disk type comparison (Read)<br />
  16. 16. Disk type comparison (Write)Dynamic VHD Improvements in Windows Server 2008 R2<br />3.8x<br />15x<br />Significant performance improvements in Windows Server 2008 R2 with Dynamic VHD’s<br />
  17. 17. Disk type comparison (Write)Fixed VHD vs. Pass Through disk in Windows Server 2008 R2<br />~4%<br />Equal<br />Fixed VHD performance is almost identical to Pass Through disk<br />
  18. 18. Disk type comparison (Write)Fixed VHD vs. Dynamic disks in Windows Server 2008 R2<br />~6% difference<br />~15% difference<br />
  19. 19. Disk type comparison (Write)Fixed VHD comparison WS08 R2 vs. WS08<br />1.3x<br />Fixed VHD performance improved in Windows Server 2008 R2<br />
  20. 20. Disk layout - results<br />Assuming Integration Services are installed:<br />Do I Use<br />IDE or SCSI?<br />One IDE channel or two?<br />One VHD per SCSI controller?<br />Multiple VHDs on a single SCSI controller?<br />Chose as per your requirements, performance is identical<br />
  21. 21. Differencing VHD’s<br />Parent child relation<br />Parent MUST NOT be modified<br />If done, it will render the child VHD unsable<br />Parent VHD does not change<br />All changes are written to a differencing VHD <br />
  22. 22. Differencing VHDsPerformance vs. chain length<br />Differencing disk performance in Windows Server 2008 R2 improved as compared with Windows Server 2008 <br />
  23. 23. CDB Filtering<br />SCSI Command Descriptor Block (CDB)<br />By default CDB’s are filtered<br />Some are partially filtered<br />Some pass through unchanged <br />Custom CDBs are always filtered<br />This means by default<br />SAN Management may not work from VM<br />Hardware features may not work from VM<br />Not recommended, check with SAN vendor if this is required<br />Note that this is only for pass through disks<br />CDB filtering may be required to be turned off for some SAN management applications when running inside the VM<br />
  24. 24. How to disable CDB filtering?<br />$HyperVGuest = "Server 2008 - SAN Manager"<br />$VMManagementService = Get-WmiObject `<br /> -class "Msvm_VirtualSystemManagementService" `<br /> -namespace "rootvirtualization"<br />$Vm = Get-WmiObject -Namespace "rootvirtualization" `<br /> -Query "Select * From Msvm_ComputerSystem Where `<br />ElementName='$HyperVGuest'"<br />$SettingData = Get-WmiObject -Namespace rootvirtualization `<br /> -Query "Associators of {$Vm} Where `<br />ResultClass=Msvm_VirtualSystemGlobalSettingData `<br />AssocClass=Msvm_ElementSettingData"<br />$SettingData.AllowFullSCSICommandSet = $true<br />$VMManagementService.ModifyVirtualSystem($Vm, `<br /> $SettingData.PSBase.GetText(1))<br />
  25. 25. Hot Add/Remove of Storage<br />demo<br />
  26. 26. Storage Model with Failover Clustering in Windows Server 2008 <br />Failover Clustering implemented a “shared nothing” storage model for the last decade<br />Each Disk is owned by a single node at any one time, and only that node can perform I/O to it<br />Only one node accesses a LUN at a time<br />SAN<br />Shared Storage<br />
  27. 27. Migration & Storage with Windows Server 2008 R2<br />NEW Cluster Shared Volume (CSV)<br />CSV provides a single consistent file name space; All Windows Server 2008 R2 servers see the same storage<br />Guest VMs can be moved without requiring any drive ownership changes<br />No dismounting and remounting of volumes is required<br />Enabling multiple nodes to concurrently access a single ‘truly’ shared volume<br />From hundreds of LUN’s to a handful…<br />Validate times from all night long, to minutes…  <br />Real browse-able paths, no more GUID’s…  <br />
  28. 28. Cluster Shared Volume Overview<br />Concurrent access to a single file system<br />SAN<br />Disk5<br />Single Volume<br />VHD<br />VHD<br />VHD<br />
  29. 29. Tips/Tricks, Best Practices and guidelines<br />
  30. 30. Storage Performance/Sizing<br />Important to scale performance to the total workload requirements of each VM<br />Spindles are still key<br />Don’t migrate 20 physical servers with 40 spindles each to a Hyper-V host with 10 spindles<br />Don’t use left over servers as a production SAN<br />
  31. 31. Antivirus and Hyper-V<br />Exclude <br />VHDs & AVHDs (or directories)<br />VM configuration directory<br />VMMS.exe and VMWP.exe<br />CSV directory (%systemdrive%clusterstorage)<br />Run Antivirus in virtual machines as you would normally for a physical machine<br />
  32. 32. Encryption and Compression<br />Bitlocker on parent partition supported<br />Bitlocker when operating in a cluster is not supported <br />Encrypted File System (EFS) <br />Not supported on parent partition<br />Supported in Virtual Machines<br />NTFS Compression (Parent partition)<br />Allowed in Windows Server 2008<br />Blocked in Windows Server 2008 R2<br />
  33. 33. Storage Hardware that is qualified with Windows Server is qualified for Hyper-V<br />Applies to running devices from Hyper-V parent<br />Storage devices qualified for Server 2008 R2 are qualified with Server 2008 R2 Hyper-V<br />No additional storage device qualification for Hyper-V<br />Storage Hardware & Hyper-V<br />R2<br />=<br />
  34. 34. SAN Boot and Hyper-V<br />Booting Hyper-V Host from SAN is supported<br />Fibre Channel or iSCSI from parent<br />Booting child VM from SAN supported using iSCSI boot with PXE solution (ex: emBoot/Doubletake)<br />Must use legacy NIC<br />Native VHD boot (independent of Hyper-V)<br />Boot physical system from local VHD is new feature in Server 2008 R2<br />Booting a VHD located on SAN (iSCSI or FC) not currently supported (considering for future)<br />
  35. 35. iSCSI Direct<br />Microsoft iSCSI Software initiator runs transparently from within the VM <br />VM operates with full control of LUN<br />LUN not visible to parent<br />iSCSI initiator communicates to storage array over TCP stack<br />Best for application transparency<br />LUNs can be hot added & hot removed without requiring reboot of VM (2003, 2008 and 2008 R2)<br />VSS hardware providers run transparently within the VM<br />Backup/Recovery runs in the context of VM<br />Enables guest clustering scenario<br />
  36. 36. iSCSI Perf Best Practices with Hyper-V<br />Standard Networking & iSCSI best practices apply<br />Use Jumbo Frames (Jumbo frames supported with Hyper-V Switch and virtual NIC in Windows Server 2008 R2)<br />Use Dedicated NIC ports for <br />iSCSI traffic (Server to SAN)<br />Multiple to scale<br />Client  Server (LAN)<br />Multiple to scale<br />Cluster heartbeat (if using cluster)<br />Hyper-V Management<br />Unbind unneeded services from NIC’s carrying iSCSI traffic<br />File Sharing, DNS<br />
  37. 37. Hyper-V Network Configurations with iSCSI<br />Example:<br />Server has 4 physical network adapters<br />NIC 1: Assigned to parent partition for management<br />NIC 2: Assigned to parent partition for iSCSI<br />NICs 3/4: Assigned to virtual switches for virtual machine networking<br />
  38. 38. Live Migration/HA Best Practices<br />Best Practices:<br />Cluster Nodes:<br />Hardware with Windows Logo + Failover Cluster Configuration Program (FCCP)<br />Storage:<br />Cluster Shared Volumes<br />Storage with Windows Logo + FCCP<br />Multi-Path IO (MPIO) is your friend…<br />Networking:<br />Standardize the names of your virtual switches<br />Multiple Interfaces<br />CSV uses separate network<br />Use ISOs not physical CD/DVDs<br />You can’t Live Migrate a VM that has a physical DVD attached!<br />
  39. 39. Sizing Storage For Hyper-V Deployments<br /><ul><li>Check Windows performance best practice guidance for storage
  40. 40. Windows Server 2008 Performance Tuning Guide
  41. 41. Many of the enterprise array vendors include sizing tools for storage on their websites
  42. 42. Some Hyper-V SAN ecosystem partners:
  43. 43. EMC HP CompellentNetApp Dell/EquallogicHitachi
  44. 44. See complete list:</li></li></ul><li>High Availability with Hyper-V using MPIO & Fibre Channel SAN<br />Clients<br />In Hyper-V Fibre Channel LUNs Supported as<br />Passthrough Disk<br />Connect from parent, map to VM <br />VM formats with NTFS<br />VHD<br />Connect from Hyper-V host<br />Format with NTFS from host<br />Create VHDs for each guest<br />Fabric/Fibre Channel Network<br />Windows <br />Server Hosts <br />Switches<br />
  45. 45. MCS & MPIO with Hyper-V<br />Provides High Availability to storage arrays<br />Especially important in virtualized environments to reduce single points of failure<br />Load balancing & fail over using redundant HBAs, NICs, switches and fabric infrastructure <br />Aggregates bandwidth to maximum performance<br />MPIO supported with Fibre Channel , iSCSI, Shared SAS<br />2 Options for multi-pathing with iSCSI<br />Multiple Connections per Session<br />Microsoft MPIO (Multipathing Input/Output)<br />Protects against loss of data path during firmware upgrades on storage controller<br />
  46. 46. Configuring MPIO with Hyper-V<br />MPIO<br />Connect from parent<br />Applies to:<br />Creating vhds for each VM<br />Passthrough disks<br />Additional connections can be added through MCS with iSCSI using iSCSI direct<br />
  47. 47. Conclusions <br />Significant performance gains between Server 2008 and Server 2008 R2 for enterprise storage workloads<br />Performance improvements in Hyper-V, MPIO, iSCSI, Core storage stack & Networking stack<br />For general workloads with multiple VMs, performance delta is minimal between Pass Through & VHD<br />iSCSI Performance especially with iSCSI direct scenarios is vastly improved<br />
  48. 48. Related Content<br />Required Slide<br />Speakers, <br />please list the Breakout Sessions, TLC Interactive Theaters and Labs that are related to your session.<br />MGT220 Virtualisation 360: Microsoft Virtualisation Strategy, Products, and Solutions for the New Economy<br />SVR205 Introduction to Hyper-V and Windows Server 2008 R2 with Microsoft System Center Virtual Machine Manager<br />SVR208 Gaining Higher Availability with Windows Server 2008 R2 Failover Clustering<br />SVR303 Planning for Windows Server 2008 R2, Virtualization and Server Consolidation with Windows Server Solution Accelerators<br />SVR307 Security Best Practices for Hyper-V and Server Virtualisation<br />SVR308 Storage and Hyper-V: The Choices You Can Make and the Things You Need to Know<br />SVR318 How to Protect Your VirtualisedEnvironment<br />SVR319 Multi-Site Clustering with Windows Server 2008 R2 <br /> SVR09-IS Windows Server 2008 R2 Hyper-V Deployment Considerations<br />
  49. 49. Additional Resources<br />Microsoft MPIO:<br />MPIO DDK<br />MPIO DSM sample, interfaces and libraries will be included in Windows 7 DDK/SDK<br />Microsoft iSCSI:<br /><br />iSCSI WMI Interfaces:<br />Storport Website:<br />Storport Documentation<br />Windows Driver Kit<br />MSDN:<br />Microsoft Virtualization:<br />Hyper-V Planning & Deployment Guide<br /><br />Microsoft Virtualization Website<br /><br /><br /><br /><br /><br />
  50. 50. Partner References<br />Intel:<br />Emulex:<br />Alacritech:<br />NetApp:<br />3Par:<br />iStor:<br />Lefthand Networks<br />Doubletake:<br />Compellent:<br />Dell/Equallogic:<br />Falconstor:<br />
  51. 51. question & answer<br />
  52. 52. Required Slide<br />Speakers, <br />TechEd 2009 is not producing <br />a DVD. Please announce that <br />attendees can access session <br />recordings at TechEd Online. <br /><br />Sessions On-Demand & Community<br /><br />Microsoft Certification & Training Resources<br /><br />Resources for IT Professionals<br /><br />Resources for Developers<br /><br />Microsoft Certification and Training Resources<br />Resources<br />
  53. 53.
  54. 54. Complete an evaluation on CommNet and enter to win an Xbox 360 Elite!<br />
  55. 55. Required Slide<br />© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.<br />The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.<br />