SlideShare uma empresa Scribd logo
1 de 42
®




                            Vmware
                              Automation


            Tips, Tricks & Just Good Things to Know

Peter Heigis | Ken Wilson                  Jan 15, 2008
So Here’s The Story

• 1 Company
• 1 Critical Application Set
• ~20,000 users




• COMPLETE REDUNDANCY!



                               2
®




– Sector: Hospitality – Leader in Hospitality Sales Automation
   “If you’ve ever attended a meeting, conference, or special event,
   chances are that software from Newmarket International was
   behind that experience—from the original specification to the
   execution of the individual banquets and functions.”
– Corporate offices in Portsmouth, NH, Singapore, London
– Goal: To provide a completely redundant, highly available, cost
  effective, manageable and testable solution that does not
  leverage any OS services for replication.




                                                                       3
– Web-based information service that distributes and
  manages leads from multiple business channels


– MeetingBroker receives requests for proposals (RFPs) sent
  by meeting planners and provides a suite of online tools to
  more quickly assign, respond to, and analyze these leads


– Hosted in a well-known data center in Massachusetts


– Utilize Akamai for improved global network performance



                                                                4
Why Automate?
• Productivity
• Compliance
• Simplicity
• Consistency
• Scalable         VMUG

• Management
• Performance
• Change Control



                          5
Automate What?
 – Approach
 – Assessment
 – Installation
 – Configuration
 – Notification
 – Upgrades
 – Disaster Recovery
 – Management
                       Time Consuming Tasks
 – Alignment
 – Documentation

                                              6
Automate With?
• Automation
  – Windows PowerShell & Quest PowerGui
  – Virtual Infrastructure Management
    Assistant (VIMA) Appliance
                                           Automation
  – Perl Toolkit
  – Custom Bash & Perl Scripting
  – Cluster Services
  – SAN Based Tools
  – Hardware Based Features
                                        Through Innovation
       Call Home, RSA etc…

  – Augmenting Applications
       Secondary Vmware Applications                         7
Automate How Long?
• Phased Approach
  – Capacity Planner Assessment
        35 Days = TCO, ROI & Consolidation Scenario
  – Design Blueprint
        10-15 Days - Detailed Installation and
        Configuration
  – Installation
        5 Days- 5 IBM 3850, 2 DS-4X00
  – Testing & Mitigation
        5 Days -Hardware Failover, DR Failover
  – Documentation
        2-3 Days = SOP(s), VDOC

                                                      8
Automation Methodology
• KISS
• Leverage Freeware
• Constant Re-evaluation
• Quick Learning Curve
• Scalable after the project
• Testable




                               9
Issues to Address

• How do you automate DR without SRM?
• How do you know the configuration of PCI
 devices?
• How do you deal with VMDK files located on
 different LUN(s)?
• How do you handle tiered network architecture?
• How do you install ESX with attached FC?
• How does this change your backup strategy?
                                               10
ESX Disaster Recovery
ESX Installation
                            &
       &
                        Mitigation
 Configuration




                                      11
What Was Used?
• BIOS & Firmware Updates
   – IBM Auto Update
• Installation & Configuration using
   – ESXi
   – Kickstart
   – RSA
• VM Deployment and Migration
   – Windows PE
   – Vizioncore
• High Availability & Failover
   – HA & DRS (With Rulesets)
   – SAN Based Replication
   – Scripts
• Documentation
                                       12
Bios & Firmware Updates

• IBM Auto Updates




                          13
Pre-Installation & Configuration
• Creation of Tools:
  – UUSB (Ultimate USB)
      IZARC
      HP Drive Key Boot Utility




                                  • Contains:
                                        ESXi
                                    •
                                        Password Cracker
                                    •
                                        Multi-boot
                                    •
                                        PE Environment
                                    •
                                        Bios & Firmware
                                    •
                                        Management Agents
                                    •

                                                            14
Identify Network Settings
• Quickly Boot ESXi
   – Get PCI Devices




      Newmarket’had 16 Network Interface Ports…. 16!


Kickstart Example




                                                       15
Configure Kickstart




   Install ESX on Systems Where FC is already Attached




                                                         16
Kickstart




            17
Embed Kickstart Files




                        18
Install or Recover


   esx noprobe ks=hd:scd0:/kickstartfile.cfg


          Or if you don’t have Remote Control




   esx noprobe ks=hd:scd0:/kickstartfile.cfg


                                                19
Great… Where Do I Get IT


• IZARC = Free (www.izarc.org)
•HP Drive Key Boot Utility = Free (www2.hp.com)
•ESXi = Free (www.vmware.com)
•Magic ISO = $29.95 (www.magiciso.com)




                                                  20
SAN Configuration                 P2V Migration




                    Alignment ?

                                                  21
OK DOC… What Do I Got

• Performance
   – For optimum I/O performance, the file
     systems of the VMDK, the datastore and the
     storage must be in proper alignment
• What’s The Deal
  – Windows and Linux systems reserve space at
    the beginning of a disk in order to store their
    boot information (MBR partition)
  – Windows assumes 63 sectors per Track
          Reserves Track 0 – Sectors 0-62
   – Storage Arrays assume 64 sectors per Track
• The Result
   – Partition starting offset is on Track 0 Sector
     63 and continues onto Track 1
   – Misaligned I/O due to Track crossing
                                                      22
Impact of Misalignment

 • Performance impact of misalignment
   – Varies based on workload
         4K I/O 1/8 of IOs misaligned
         8k I/O 1/4 of I/Os misaligned
         16k I/O 1/2 of I/Os misaligned
         32k I/O every I/O misaligned
   – Performance hit dependent on I/O size
         2-3% up to 60%
 • Ask customers to correct their VM templates
   – Make future VMs perform optimally
                                                 23
How Does This Happen

• VMFS partitions created via vmkfstools will always be
  misaligned
   – Use fdisk to check
         # fdisk –lu /dev/sd*



• VMFS partitions created via VI Client will always be
  aligned




                                                          24
VMDK Alignment Issue
• By default operating systems reserve space at the
  beginning of a disk in order to store their boot
  information = “the partition offset”.
• To build a VMDK:
    1. Start with a VMFS Volume/LUN.
    2. Create a VMDK file
    3. Create a Partition and a Filesystem (within the VMDK).


                  Windows.vmdk
 NTFS



 VMFS Volume/LUN                                                25
Default Partition Offset

  • Both NTFS and VMFS ultimately store blocks.
  • The default partition starts at an offset of 63
    sectors—32256.
   • Read 1 Block within the Virtual Machine
   • Requires 2 IO operations

          This can cause performance issues!


              NTFS



              VMFS
                                                      26
VMDK Misalignment Issue is
Vendor Neutral

 • The alignment issue impacts all storage vendors
   – Most are unaware of this issue


 • Misaligned VMDKs is consistently a top 10 customer
   support issue, reports VMware




                                                        27
Discover VMDK Misalignment
Manually




                    Aligned = 32,768

                                       28
Discover VMDK Misalignment
 Automated
Single file:

[root@esx31 stewie]# mbrscan ./win2k3EE-flat.vmdk
win2k3EE-flat.vmdk   lba: 63        offset:32256                       aligned: No


Using globbing:

[root@esx31 admin-tux]# mbrscan *-flat.vmdk
admin-tux_1-flat.vmdk    lba: 64        offset:32768                         aligned: Yes
admin-tux-flat.vmdk      lba: 63        offset:32256                         aligned: No


Using find:
[root@esx31 root]# find /vmfs/volumes/ -name quot;*-flat.vmdkquot; -maxdepth 3 -exec mbrscan {} quot;;quot;
/vmfs/volumes/02252e55-f3d5b6e7/stewie/win2k3EE-flat.vmdk        lba: 63       offset:32256   aligned:   No
/vmfs/volumes/fce9bc8c-83ba8eae/win2k3EE/win2k3EE_1-flat.vmdk    lba: 64       offset:32768   aligned:   Yes
/vmfs/volumes/fce9bc8c-83ba8eae/win2k3EE/win2k3EE_2-flat.vmdk    lba: 64       offset:32768   aligned:   Yes
/vmfs/volumes/fce9bc8c-83ba8eae/chris/chris-flat.vmdk            lba: 64       offset:32768   aligned:   Yes
/vmfs/volumes/e25c3fb1-06a0acf2/w2k3/w2k3-flat.vmdk              lba: 63       offset:32256   aligned:   No
/vmfs/volumes/e25c3fb1-06a0acf2/w2k3/w2k3_1-flat.vmdk            lba: 64       offset:32768   aligned:   Yes


                                                                                                               29
Pre-emptive Alignment Mitigation
   c:diskpart
                                                                         NTFS
   DISKPART> list disk
    Disk ### Status            Size Free Dyn Gpt
    -------- ---------- ------- ------- --- ---
    Disk 0 Online            4095 MB 8033 KB
    Disk 1 Online            4103 MB 4103 MB

   DISKPART> select disk 1
      Disk 1 is now the selected disk.
                                                                         VMFS
   DISKPART> create partition primary align=32 (64 for sql & exchange)
      DiskPart succeeded in creating the specified partition.




                                                                                30
Reactive Alignment Mitigation

 • You Had Two Options Prior to VM Creation:
   – Create VMDK, connect to existing VM for partition creation
   – Create VMDK, assign to new VM, boot with Windows
     Preinstall Environment CD for partition creation
 • In the Old Days…You Had One Option for Alignment
   – Requires Data migration
 • Now You Can Do It…..Gui




                                                                  31
What We Used

 DR Integration   DR Configuration




                                     32
Automate DR?

• Success Criteria
  – No Dependency on Windows based Services
  – Completely Redundant
  – Testable
• Solution
  – (2) IBM DS 4700
  – Storage Based Replication (Async)
        Does not protect against corruption

• Issues
  – VMFS Presentation
  – VM Registration
        UUID… “To Some its not a Problem”
                                              33
VMware DR w/SRM
              Primary Site                                       Secondary Site

                     Virtual Center&
                                                           Virtual Center&
    VMware View       Site Recovery
                                                            Site Recovery    VMware View
                         Manager
                                                               Manager




                                       Array Replication
 Datastores                                                                       Datastores



                                                                                    Virtual
                                                                                   Desktop
 Virtual
Desktop
                                                                                               34
Newmarket Complete Redundancy




                    Primary Site         Re-Register VM(s)
Registered VM(s)
                                             dc.vmdk
    dc.vmdk        Virtual Center
                                             Iis.vmdk
    Iis.vmdk




                                          Mount Replicated LUN(s)




                     Array Replication
Datastores                                             Datastores


                                                                    35
Replication is Easy




                      36
So what is this UUID?




                        37
How We Got Around IT?

  •Treated the Replication like a Snapshot




  •Simple Script
     •Searches all VMs for hardcoded UUID
     •Creates an Array of UUID to Common Volume Names
     •Comments out old entry: Replace UUID with Common Volume
     Name
  •Automated through cron
                                                            38
How Backups are Affected?

  •No longer necessary to backup the System Disk every week
  •Only need to backup changed files (Incremental Forever)
  •Leverage replicated snapshots for quick file level restore




                                                                39
What We Used

    As-Built      Configuration Change
  Documentation          Control




                                     40
Little Tidbits to Take Home


 • VDOC




 • Tripwire Config Check




                              41
Questions?


     Peter Heigis & Ken Wilson
     Lighthouse Virtualization Group
     Newmarket International
     kwilson@newmarketinc.com
     pheigis@lighthousecs.com




                                       42

Mais conteúdo relacionado

Mais procurados

VMware vSphere - практические аспекты и ценность для бизнеса
VMware vSphere - практические аспекты и ценность для бизнесаVMware vSphere - практические аспекты и ценность для бизнеса
VMware vSphere - практические аспекты и ценность для бизнеса
areconster
 
Using Virtualization To Improve Development And Testing
Using Virtualization To Improve Development And TestingUsing Virtualization To Improve Development And Testing
Using Virtualization To Improve Development And Testing
elliando dias
 
CPAVMUG Presentation 2016-04-06 - Management Cluster
CPAVMUG Presentation 2016-04-06 - Management ClusterCPAVMUG Presentation 2016-04-06 - Management Cluster
CPAVMUG Presentation 2016-04-06 - Management Cluster
Dan Barr
 
Cvc2009 Moscow Xen App5 Fp1 Fabian Kienle Final
Cvc2009 Moscow Xen App5 Fp1 Fabian Kienle FinalCvc2009 Moscow Xen App5 Fp1 Fabian Kienle Final
Cvc2009 Moscow Xen App5 Fp1 Fabian Kienle Final
Liudmila Li
 

Mais procurados (20)

Virtualization Assessment Example
Virtualization Assessment ExampleVirtualization Assessment Example
Virtualization Assessment Example
 
VMware vSphere - практические аспекты и ценность для бизнеса
VMware vSphere - практические аспекты и ценность для бизнесаVMware vSphere - практические аспекты и ценность для бизнеса
VMware vSphere - практические аспекты и ценность для бизнеса
 
Using Virtualization To Improve Development And Testing
Using Virtualization To Improve Development And TestingUsing Virtualization To Improve Development And Testing
Using Virtualization To Improve Development And Testing
 
VMware App Volumes Troubleshooting
VMware App Volumes TroubleshootingVMware App Volumes Troubleshooting
VMware App Volumes Troubleshooting
 
VMworld 2014: Virtualizing Databases
VMworld 2014: Virtualizing DatabasesVMworld 2014: Virtualizing Databases
VMworld 2014: Virtualizing Databases
 
VMworld 2013: Storage IO Control: Concepts, Configuration and Best Practices ...
VMworld 2013: Storage IO Control: Concepts, Configuration and Best Practices ...VMworld 2013: Storage IO Control: Concepts, Configuration and Best Practices ...
VMworld 2013: Storage IO Control: Concepts, Configuration and Best Practices ...
 
2v0 620 Exam-vSphere 6 Foundations
2v0 620 Exam-vSphere 6 Foundations2v0 620 Exam-vSphere 6 Foundations
2v0 620 Exam-vSphere 6 Foundations
 
CPAVMUG Presentation 2016-04-06 - Management Cluster
CPAVMUG Presentation 2016-04-06 - Management ClusterCPAVMUG Presentation 2016-04-06 - Management Cluster
CPAVMUG Presentation 2016-04-06 - Management Cluster
 
Top Issues For Microsoft Support For Windows Server
Top Issues For Microsoft Support For Windows ServerTop Issues For Microsoft Support For Windows Server
Top Issues For Microsoft Support For Windows Server
 
VMware Advance Troubleshooting Workshop - Day 5
VMware Advance Troubleshooting Workshop - Day 5VMware Advance Troubleshooting Workshop - Day 5
VMware Advance Troubleshooting Workshop - Day 5
 
Presentation v mware v-sphere advanced troubleshooting by eric sloof
Presentation   v mware v-sphere advanced troubleshooting by eric sloofPresentation   v mware v-sphere advanced troubleshooting by eric sloof
Presentation v mware v-sphere advanced troubleshooting by eric sloof
 
Modern Data Protection
Modern Data ProtectionModern Data Protection
Modern Data Protection
 
Running your Java EE 6 Applications in the Cloud
Running your Java EE 6 Applications in the CloudRunning your Java EE 6 Applications in the Cloud
Running your Java EE 6 Applications in the Cloud
 
VMware Advance Troubleshooting Workshop - Day 4
VMware Advance Troubleshooting Workshop - Day 4VMware Advance Troubleshooting Workshop - Day 4
VMware Advance Troubleshooting Workshop - Day 4
 
Poc guide vsan
Poc guide vsanPoc guide vsan
Poc guide vsan
 
Exadata db node update
Exadata db node updateExadata db node update
Exadata db node update
 
Cvc2009 Moscow Xen App5 Fp1 Fabian Kienle Final
Cvc2009 Moscow Xen App5 Fp1 Fabian Kienle FinalCvc2009 Moscow Xen App5 Fp1 Fabian Kienle Final
Cvc2009 Moscow Xen App5 Fp1 Fabian Kienle Final
 
Optimize oracle on VMware (April 2011)
Optimize oracle on VMware (April 2011)Optimize oracle on VMware (April 2011)
Optimize oracle on VMware (April 2011)
 
Optimize Oracle On VMware (Sep 2011)
Optimize Oracle On VMware (Sep 2011)Optimize Oracle On VMware (Sep 2011)
Optimize Oracle On VMware (Sep 2011)
 
JFokus 2011 - Running your Java EE 6 apps in the Cloud
JFokus 2011 - Running your Java EE 6 apps in the CloudJFokus 2011 - Running your Java EE 6 apps in the Cloud
JFokus 2011 - Running your Java EE 6 apps in the Cloud
 

Destaque (9)

Stop The Elf
Stop The ElfStop The Elf
Stop The Elf
 
AMCi.AGM09.Attracting.Intnl.Members
AMCi.AGM09.Attracting.Intnl.MembersAMCi.AGM09.Attracting.Intnl.Members
AMCi.AGM09.Attracting.Intnl.Members
 
Presentation1
Presentation1Presentation1
Presentation1
 
Ap3智慧型企業專網介紹23
Ap3智慧型企業專網介紹23Ap3智慧型企業專網介紹23
Ap3智慧型企業專網介紹23
 
Oswestry Energy Fair - Hilary
Oswestry Energy Fair - HilaryOswestry Energy Fair - Hilary
Oswestry Energy Fair - Hilary
 
El diccionari de les meves 5 paraules
El diccionari de les meves 5 paraulesEl diccionari de les meves 5 paraules
El diccionari de les meves 5 paraules
 
Montealto control room
Montealto control roomMontealto control room
Montealto control room
 
konsep biaya
konsep biayakonsep biaya
konsep biaya
 
Cannes 2008 Presentation
Cannes 2008 PresentationCannes 2008 Presentation
Cannes 2008 Presentation
 

Semelhante a Nevmug Lighthouse Automation7.1

From One to a Cluster
From One to a ClusterFrom One to a Cluster
From One to a Cluster
guestd34230
 

Semelhante a Nevmug Lighthouse Automation7.1 (20)

The Tantric Team: Getting Your Automated Build Groove On
The Tantric Team: Getting Your Automated Build Groove OnThe Tantric Team: Getting Your Automated Build Groove On
The Tantric Team: Getting Your Automated Build Groove On
 
Peer Code Review: In a Nutshell and The Tantric Team: Getting Your Automated ...
Peer Code Review: In a Nutshell and The Tantric Team: Getting Your Automated ...Peer Code Review: In a Nutshell and The Tantric Team: Getting Your Automated ...
Peer Code Review: In a Nutshell and The Tantric Team: Getting Your Automated ...
 
SAP Business One; Step-by-Step Guide for Installation, configuration on Virtu...
SAP Business One; Step-by-Step Guide for Installation, configuration on Virtu...SAP Business One; Step-by-Step Guide for Installation, configuration on Virtu...
SAP Business One; Step-by-Step Guide for Installation, configuration on Virtu...
 
E g innovations overview
E g innovations overviewE g innovations overview
E g innovations overview
 
1 K E Y2
1 K E Y21 K E Y2
1 K E Y2
 
Deployment with Ruby on Rails
Deployment with Ruby on RailsDeployment with Ruby on Rails
Deployment with Ruby on Rails
 
Good virtual machines
Good virtual machinesGood virtual machines
Good virtual machines
 
High-Octane Dev Teams: Three Things You Can Do To Improve Code Quality
High-Octane Dev Teams: Three Things You Can Do To Improve Code QualityHigh-Octane Dev Teams: Three Things You Can Do To Improve Code Quality
High-Octane Dev Teams: Three Things You Can Do To Improve Code Quality
 
XS Boston 2008 Network Topology
XS Boston 2008 Network TopologyXS Boston 2008 Network Topology
XS Boston 2008 Network Topology
 
Ian Pratt Nsdi Keynote Apr2008
Ian Pratt Nsdi Keynote Apr2008Ian Pratt Nsdi Keynote Apr2008
Ian Pratt Nsdi Keynote Apr2008
 
Virtualization and Cloud Computing with Elastic Server On Demand
Virtualization and Cloud Computing with Elastic Server On DemandVirtualization and Cloud Computing with Elastic Server On Demand
Virtualization and Cloud Computing with Elastic Server On Demand
 
Xen Virtualization 2008
Xen Virtualization 2008Xen Virtualization 2008
Xen Virtualization 2008
 
VMware at SoftLayer
VMware at SoftLayerVMware at SoftLayer
VMware at SoftLayer
 
From One to a Cluster
From One to a ClusterFrom One to a Cluster
From One to a Cluster
 
Varnish Configuration Step by Step
Varnish Configuration Step by StepVarnish Configuration Step by Step
Varnish Configuration Step by Step
 
Virtualization & Network Connectivity
Virtualization & Network Connectivity Virtualization & Network Connectivity
Virtualization & Network Connectivity
 
Spectre meltdown performance_tests - v0.3
Spectre meltdown performance_tests - v0.3Spectre meltdown performance_tests - v0.3
Spectre meltdown performance_tests - v0.3
 
Advanced Deployment
Advanced DeploymentAdvanced Deployment
Advanced Deployment
 
WinConnections Spring, 2011 - 30 Bite-Sized Tips for Best vSphere and Hyper-V...
WinConnections Spring, 2011 - 30 Bite-Sized Tips for Best vSphere and Hyper-V...WinConnections Spring, 2011 - 30 Bite-Sized Tips for Best vSphere and Hyper-V...
WinConnections Spring, 2011 - 30 Bite-Sized Tips for Best vSphere and Hyper-V...
 
Get Your GeekOn with Ron - Session One: Designing your VDI Servers
Get Your GeekOn with Ron - Session One: Designing your VDI ServersGet Your GeekOn with Ron - Session One: Designing your VDI Servers
Get Your GeekOn with Ron - Session One: Designing your VDI Servers
 

Mais de csharney

Sprin VTUG citrix Solutions
Sprin VTUG citrix SolutionsSprin VTUG citrix Solutions
Sprin VTUG citrix Solutions
csharney
 
VMware Vsan vtug 2014
VMware Vsan vtug 2014VMware Vsan vtug 2014
VMware Vsan vtug 2014
csharney
 
Vtug spring ahead Microsoft Storage Spaces by dan stolts (it pro-guru)
Vtug spring ahead Microsoft Storage Spaces by dan stolts (it pro-guru)Vtug spring ahead Microsoft Storage Spaces by dan stolts (it pro-guru)
Vtug spring ahead Microsoft Storage Spaces by dan stolts (it pro-guru)
csharney
 

Mais de csharney (14)

Sprin VTUG citrix Solutions
Sprin VTUG citrix SolutionsSprin VTUG citrix Solutions
Sprin VTUG citrix Solutions
 
VMware Vsan vtug 2014
VMware Vsan vtug 2014VMware Vsan vtug 2014
VMware Vsan vtug 2014
 
Vtug spring ahead Microsoft Storage Spaces by dan stolts (it pro-guru)
Vtug spring ahead Microsoft Storage Spaces by dan stolts (it pro-guru)Vtug spring ahead Microsoft Storage Spaces by dan stolts (it pro-guru)
Vtug spring ahead Microsoft Storage Spaces by dan stolts (it pro-guru)
 
V Mworld 2010 Lab Cloud
V Mworld 2010 Lab CloudV Mworld 2010 Lab Cloud
V Mworld 2010 Lab Cloud
 
Exchange 2010 New England Vmug
Exchange 2010 New England VmugExchange 2010 New England Vmug
Exchange 2010 New England Vmug
 
Nevmug Vizioncore V Foglight Jan 2009
Nevmug   Vizioncore V Foglight Jan 2009Nevmug   Vizioncore V Foglight Jan 2009
Nevmug Vizioncore V Foglight Jan 2009
 
Nevmug Pano Logic January 2009
Nevmug   Pano Logic   January 2009Nevmug   Pano Logic   January 2009
Nevmug Pano Logic January 2009
 
Nevmug Martins Point Health Care J Anuary 2009
Nevmug   Martins Point Health Care   J Anuary 2009Nevmug   Martins Point Health Care   J Anuary 2009
Nevmug Martins Point Health Care J Anuary 2009
 
Nevmug Focus Ti V Mware Networking January 2009
Nevmug   Focus Ti V Mware Networking   January 2009Nevmug   Focus Ti V Mware Networking   January 2009
Nevmug Focus Ti V Mware Networking January 2009
 
Nevmug Emc January 2009
Nevmug   Emc January 2009Nevmug   Emc January 2009
Nevmug Emc January 2009
 
Nevmug Amd January 2009
Nevmug   Amd January 2009 Nevmug   Amd January 2009
Nevmug Amd January 2009
 
Nevmug Left Hand Tower Publishing January 2009
Nevmug  Left Hand  Tower Publishing January 2009Nevmug  Left Hand  Tower Publishing January 2009
Nevmug Left Hand Tower Publishing January 2009
 
Vm Ware Presentation Key Note
Vm Ware Presentation Key NoteVm Ware Presentation Key Note
Vm Ware Presentation Key Note
 
Nevmug Green Pages Cisco Nexus January 2009
Nevmug   Green Pages Cisco   Nexus January 2009Nevmug   Green Pages Cisco   Nexus January 2009
Nevmug Green Pages Cisco Nexus January 2009
 

Nevmug Lighthouse Automation7.1

  • 1. ® Vmware Automation Tips, Tricks & Just Good Things to Know Peter Heigis | Ken Wilson Jan 15, 2008
  • 2. So Here’s The Story • 1 Company • 1 Critical Application Set • ~20,000 users • COMPLETE REDUNDANCY! 2
  • 3. ® – Sector: Hospitality – Leader in Hospitality Sales Automation “If you’ve ever attended a meeting, conference, or special event, chances are that software from Newmarket International was behind that experience—from the original specification to the execution of the individual banquets and functions.” – Corporate offices in Portsmouth, NH, Singapore, London – Goal: To provide a completely redundant, highly available, cost effective, manageable and testable solution that does not leverage any OS services for replication. 3
  • 4. – Web-based information service that distributes and manages leads from multiple business channels – MeetingBroker receives requests for proposals (RFPs) sent by meeting planners and provides a suite of online tools to more quickly assign, respond to, and analyze these leads – Hosted in a well-known data center in Massachusetts – Utilize Akamai for improved global network performance 4
  • 5. Why Automate? • Productivity • Compliance • Simplicity • Consistency • Scalable VMUG • Management • Performance • Change Control 5
  • 6. Automate What? – Approach – Assessment – Installation – Configuration – Notification – Upgrades – Disaster Recovery – Management Time Consuming Tasks – Alignment – Documentation 6
  • 7. Automate With? • Automation – Windows PowerShell & Quest PowerGui – Virtual Infrastructure Management Assistant (VIMA) Appliance Automation – Perl Toolkit – Custom Bash & Perl Scripting – Cluster Services – SAN Based Tools – Hardware Based Features Through Innovation Call Home, RSA etc… – Augmenting Applications Secondary Vmware Applications 7
  • 8. Automate How Long? • Phased Approach – Capacity Planner Assessment 35 Days = TCO, ROI & Consolidation Scenario – Design Blueprint 10-15 Days - Detailed Installation and Configuration – Installation 5 Days- 5 IBM 3850, 2 DS-4X00 – Testing & Mitigation 5 Days -Hardware Failover, DR Failover – Documentation 2-3 Days = SOP(s), VDOC 8
  • 9. Automation Methodology • KISS • Leverage Freeware • Constant Re-evaluation • Quick Learning Curve • Scalable after the project • Testable 9
  • 10. Issues to Address • How do you automate DR without SRM? • How do you know the configuration of PCI devices? • How do you deal with VMDK files located on different LUN(s)? • How do you handle tiered network architecture? • How do you install ESX with attached FC? • How does this change your backup strategy? 10
  • 11. ESX Disaster Recovery ESX Installation & & Mitigation Configuration 11
  • 12. What Was Used? • BIOS & Firmware Updates – IBM Auto Update • Installation & Configuration using – ESXi – Kickstart – RSA • VM Deployment and Migration – Windows PE – Vizioncore • High Availability & Failover – HA & DRS (With Rulesets) – SAN Based Replication – Scripts • Documentation 12
  • 13. Bios & Firmware Updates • IBM Auto Updates 13
  • 14. Pre-Installation & Configuration • Creation of Tools: – UUSB (Ultimate USB) IZARC HP Drive Key Boot Utility • Contains: ESXi • Password Cracker • Multi-boot • PE Environment • Bios & Firmware • Management Agents • 14
  • 15. Identify Network Settings • Quickly Boot ESXi – Get PCI Devices Newmarket’had 16 Network Interface Ports…. 16! Kickstart Example 15
  • 16. Configure Kickstart Install ESX on Systems Where FC is already Attached 16
  • 17. Kickstart 17
  • 19. Install or Recover esx noprobe ks=hd:scd0:/kickstartfile.cfg Or if you don’t have Remote Control esx noprobe ks=hd:scd0:/kickstartfile.cfg 19
  • 20. Great… Where Do I Get IT • IZARC = Free (www.izarc.org) •HP Drive Key Boot Utility = Free (www2.hp.com) •ESXi = Free (www.vmware.com) •Magic ISO = $29.95 (www.magiciso.com) 20
  • 21. SAN Configuration P2V Migration Alignment ? 21
  • 22. OK DOC… What Do I Got • Performance – For optimum I/O performance, the file systems of the VMDK, the datastore and the storage must be in proper alignment • What’s The Deal – Windows and Linux systems reserve space at the beginning of a disk in order to store their boot information (MBR partition) – Windows assumes 63 sectors per Track Reserves Track 0 – Sectors 0-62 – Storage Arrays assume 64 sectors per Track • The Result – Partition starting offset is on Track 0 Sector 63 and continues onto Track 1 – Misaligned I/O due to Track crossing 22
  • 23. Impact of Misalignment • Performance impact of misalignment – Varies based on workload 4K I/O 1/8 of IOs misaligned 8k I/O 1/4 of I/Os misaligned 16k I/O 1/2 of I/Os misaligned 32k I/O every I/O misaligned – Performance hit dependent on I/O size 2-3% up to 60% • Ask customers to correct their VM templates – Make future VMs perform optimally 23
  • 24. How Does This Happen • VMFS partitions created via vmkfstools will always be misaligned – Use fdisk to check # fdisk –lu /dev/sd* • VMFS partitions created via VI Client will always be aligned 24
  • 25. VMDK Alignment Issue • By default operating systems reserve space at the beginning of a disk in order to store their boot information = “the partition offset”. • To build a VMDK: 1. Start with a VMFS Volume/LUN. 2. Create a VMDK file 3. Create a Partition and a Filesystem (within the VMDK). Windows.vmdk NTFS VMFS Volume/LUN 25
  • 26. Default Partition Offset • Both NTFS and VMFS ultimately store blocks. • The default partition starts at an offset of 63 sectors—32256. • Read 1 Block within the Virtual Machine • Requires 2 IO operations This can cause performance issues! NTFS VMFS 26
  • 27. VMDK Misalignment Issue is Vendor Neutral • The alignment issue impacts all storage vendors – Most are unaware of this issue • Misaligned VMDKs is consistently a top 10 customer support issue, reports VMware 27
  • 28. Discover VMDK Misalignment Manually Aligned = 32,768 28
  • 29. Discover VMDK Misalignment Automated Single file: [root@esx31 stewie]# mbrscan ./win2k3EE-flat.vmdk win2k3EE-flat.vmdk lba: 63 offset:32256 aligned: No Using globbing: [root@esx31 admin-tux]# mbrscan *-flat.vmdk admin-tux_1-flat.vmdk lba: 64 offset:32768 aligned: Yes admin-tux-flat.vmdk lba: 63 offset:32256 aligned: No Using find: [root@esx31 root]# find /vmfs/volumes/ -name quot;*-flat.vmdkquot; -maxdepth 3 -exec mbrscan {} quot;;quot; /vmfs/volumes/02252e55-f3d5b6e7/stewie/win2k3EE-flat.vmdk lba: 63 offset:32256 aligned: No /vmfs/volumes/fce9bc8c-83ba8eae/win2k3EE/win2k3EE_1-flat.vmdk lba: 64 offset:32768 aligned: Yes /vmfs/volumes/fce9bc8c-83ba8eae/win2k3EE/win2k3EE_2-flat.vmdk lba: 64 offset:32768 aligned: Yes /vmfs/volumes/fce9bc8c-83ba8eae/chris/chris-flat.vmdk lba: 64 offset:32768 aligned: Yes /vmfs/volumes/e25c3fb1-06a0acf2/w2k3/w2k3-flat.vmdk lba: 63 offset:32256 aligned: No /vmfs/volumes/e25c3fb1-06a0acf2/w2k3/w2k3_1-flat.vmdk lba: 64 offset:32768 aligned: Yes 29
  • 30. Pre-emptive Alignment Mitigation c:diskpart NTFS DISKPART> list disk Disk ### Status Size Free Dyn Gpt -------- ---------- ------- ------- --- --- Disk 0 Online 4095 MB 8033 KB Disk 1 Online 4103 MB 4103 MB DISKPART> select disk 1 Disk 1 is now the selected disk. VMFS DISKPART> create partition primary align=32 (64 for sql & exchange) DiskPart succeeded in creating the specified partition. 30
  • 31. Reactive Alignment Mitigation • You Had Two Options Prior to VM Creation: – Create VMDK, connect to existing VM for partition creation – Create VMDK, assign to new VM, boot with Windows Preinstall Environment CD for partition creation • In the Old Days…You Had One Option for Alignment – Requires Data migration • Now You Can Do It…..Gui 31
  • 32. What We Used DR Integration DR Configuration 32
  • 33. Automate DR? • Success Criteria – No Dependency on Windows based Services – Completely Redundant – Testable • Solution – (2) IBM DS 4700 – Storage Based Replication (Async) Does not protect against corruption • Issues – VMFS Presentation – VM Registration UUID… “To Some its not a Problem” 33
  • 34. VMware DR w/SRM Primary Site Secondary Site Virtual Center& Virtual Center& VMware View Site Recovery Site Recovery VMware View Manager Manager Array Replication Datastores Datastores Virtual Desktop Virtual Desktop 34
  • 35. Newmarket Complete Redundancy Primary Site Re-Register VM(s) Registered VM(s) dc.vmdk dc.vmdk Virtual Center Iis.vmdk Iis.vmdk Mount Replicated LUN(s) Array Replication Datastores Datastores 35
  • 37. So what is this UUID? 37
  • 38. How We Got Around IT? •Treated the Replication like a Snapshot •Simple Script •Searches all VMs for hardcoded UUID •Creates an Array of UUID to Common Volume Names •Comments out old entry: Replace UUID with Common Volume Name •Automated through cron 38
  • 39. How Backups are Affected? •No longer necessary to backup the System Disk every week •Only need to backup changed files (Incremental Forever) •Leverage replicated snapshots for quick file level restore 39
  • 40. What We Used As-Built Configuration Change Documentation Control 40
  • 41. Little Tidbits to Take Home • VDOC • Tripwire Config Check 41
  • 42. Questions? Peter Heigis & Ken Wilson Lighthouse Virtualization Group Newmarket International kwilson@newmarketinc.com pheigis@lighthousecs.com 42