sharepoint 2010's virtual reality
TRANSCRIPT
http://www.sptechcon.com/SanFrancisco2011
Michael NoelConvergent ComputingTwitter: @MichaelTNoel
http://www.sptechcon.com/SanFrancisco2011
Author of SAMS Publishing titles “SharePoint 2010 Unleashed,” “SharePoint 2007 Unleashed,” “SharePoint 2003 Unleashed”, “Teach Yourself SharePoint 2003 in 10 Minutes,” “Windows Server 2008 R2 Unleashed,” “Exchange Server 2010 Unleashed”, “ISA Server 2006 Unleashed”, and many other titles .
Partner at Convergent Computing (www.cco.com / +1(510)444-5700) – San Francisco Bay Area based Infrastructure/Security specialists for SharePoint, AD, Exchange, Security
http://www.sptechcon.com/SanFrancisco2011
Why Virtualize? SharePoint 2010 Virtualization Guidelines and
Models Virtualization of SharePoint Roles Virtualization of SQL Server
Memory Limitations and Guidelines for Guests Microsoft Virtualization Software Options Windows Server 2008 Hyper-V System Center Virtual Machine Manager 2008 Third Party Virtualization Product Support
Microsoft Licensing for Virtual Servers Demo: Quick Farm Provisioning with VMM 2008 R2
http://www.sptechcon.com/SanFrancisco2011
http://www.sptechcon.com/SanFrancisco2011
http://www.sptechcon.com/SanFrancisco2011
http://www.sptechcon.com/SanFrancisco2011
http://www.sptechcon.com/SanFrancisco2011
• Excellent Virtualization Candidate
• Can be easily provisioned via templatesWeb
• Higher proc/mem requirements, but still good candidate
• Often paired with SP2010 Web Role
• Requires 2nd Disk for Index
Search Service App
• Higher proc/mem requirements, but still good candidate
• Low disk requirements compared to other roles
Other Service Apps
• Requires the most memory, proc, and disk IO
• Be cautious when virtualizing, make sure host is scaled
• Remember, Virtualization for Virtualization’s sake is badDB
http://www.sptechcon.com/SanFrancisco2011
vCPU RAM (Bare Minimum)
RAM (Recommend)
RAM
(Ideal)
Web Only* 2 6GB 8GB 12GB
Service Application Roles Only
2 6GB 8GB 12GB
Dedicated Search Service App
2 8GB 10GB 16GB
Combined Web/Search/Service Apps
4 10GB 12GB 18GB
Database* 4 10GB 16GB 24GB
http://www.sptechcon.com/SanFrancisco2011
http://www.sptechcon.com/SanFrancisco2011
http://www.sptechcon.com/SanFrancisco2011
http://www.sptechcon.com/SanFrancisco2011
Allows organizations that wouldn’t normally be able to have a test environment to run one
Allows for separation of the database role onto a dedicated server Can be more easily scaled out in the future
http://www.sptechcon.com/SanFrancisco2011
Server Memory Processors DiskVirtual host 24GB RAM 2 quad-core (8
cores)C drive: OS - Windows Server 2008 R2 with Hyper-V; 50GB dedicated volumeD drive: dedicated volume for OS VHDsE drive: 500GB dedicated volume for SQL Database VHDsF drive: 100GB dedicated volume for SQL Logs VHDs.
SQL server 10GB RAM 4 virtual processors
C drive: OS - 100GB fixed-size VHDD drive: fixed-size VHD (100GB) dedicated for SQL logsE drive: fixed-size VHD (500GB) dedicated for SQL Data
SharePoint Web/Query/App
10GB RAM 4 virtual processors
C drive: OS and Transport Queue Logs; 100GB fixed-size VHDE drive: 100GB fixed-size VHD for Index/Query
http://www.sptechcon.com/SanFrancisco2011
High-Availability across Hosts
All components virtualized
Uses only two Windows Ent Edition Licenses
http://www.sptechcon.com/SanFrancisco2011
Server Memory Processor DiskVirtual hosts 48GB RAM 2 quad-core (8
cores)C drive: OS; Windows Server 2008 R2 with Hyper-V; 50GB dedicated LUND drive: dedicated LUN for VHDsRaw volume: 100GB dedicated LUN for SQL LogsRaw volume: 2TB dedicated LUN for SQL Databases
SQL Servers 16GB RAM 4 virtual processors
C drive: OS; 50GB fixed-size VHDD drive: pass-through dedicated LUN (100GB) for SQL LogsE drive: pass-through dedicated LUN (2TB) for SQL Data
SharePoint Web/App Servers
12GB RAM 2 virtual processors
C drive: OS; 100GB fixed-size VHD
SharePoint Search/Query Servers
12GB RAM 2 virtual processors
C drive: OS; 100GB fixed-size VHDD drive: 200GB fixed-size VHD for Index/Query
SQL Witness Server
2GB RAM 1 virtual processor
C drive: OS; 50GB fixed-size VHD
http://www.sptechcon.com/SanFrancisco2011
Highest transaction servers are physical
Multiple farm support, with DBs for all farms on the SQL cluster
http://www.sptechcon.com/SanFrancisco2011
http://www.sptechcon.com/SanFrancisco2011
http://www.sptechcon.com/SanFrancisco2011
Non-Uniform Memory Access (NUMA) Boundaries exist at the hardware level.
Virtual guests that are allocated more memory than exist within a single NUMA memory boundary have significantly impacted performance
NUMA boundaries vary by processor and motherboard vendor, but good rule of thumb to calculate boundaries is to divide the amount of memory in the system by the total number of cores.
i.e. Dual Quad-core host (2x4 cores = 8 cores) with 64GB of RAM on the host would mean NUMA boundary is 64/8 or 8GB.
In this example, allocating more than 8GB for a single guest session would result in performance drops.
http://www.sptechcon.com/SanFrancisco2011
Keeping NUMA boundaries in mind, this means that you will get significantly better performance provisioning two SharePoint front-ends with half the amount of RAM as a single front-end with twice as much RAM.
This applies to any virtualization platform, as the limitation is hardware specific. NUMA allocation specifics will vary by vendor, however.
Refer to MS Whitepaper on Virtualization of SharePoint (http://tinyurl.com/virtualsp) for more specifics.
http://www.sptechcon.com/SanFrancisco2011
http://www.sptechcon.com/SanFrancisco2011
http://www.sptechcon.com/SanFrancisco2011
http://www.sptechcon.com/SanFrancisco2011
Manually with Perfmon counters Collect data over a week minimum to look
for trends throughout the week Use to help prove performance problems are
not because of virtualization Consider using System Center Operations
Manager 2007 R2 for long-term performance analysis and threshold alerting
http://www.sptechcon.com/SanFrancisco2011
Processor (Host Only) <60% Utilization = Good 60%-90% = Caution >90% = Trouble
Available Memory 50% and above = Good 10%-50% = OK <10% = Trouble
Disk – Avg. Disk sec/Read or Avg. Disk sec/Write Up to 15ms = fine 15ms-25ms = Caution >25ms = Trouble
• Network Bandwidth –Bytes Total/sec
– <40% Utilization = Good
– 41%-64% = Caution
– >65% = Trouble
• Network Latency -Output Queue Length
– 0 = Good
– 1-2= OK
– >2 = Trouble
http://www.sptechcon.com/SanFrancisco2011
http://www.sptechcon.com/SanFrancisco2011
Microsoft’s official SharePoint support stance is that any SharePoint role or service is supported for hardware virtualization, including SQL Server 2005, SQL Server 2008, or SQL Server 2008 R2. There are only three requirements for virtualization that must be satisfied, these are as follows:
Hardware-assisted virtualization, which is available in processors that include a virtualization option—specifically processors with Intel Virtualization Technology (Intel VT) or AMD Virtualization (AMD-V) technology.
Hardware-enforced Data Execution Prevention (DEP) is available and enabled.
Either deployed on Microsoft Hyper-V (RTM or R2 version) or a validated third-party hypervisor that is part of the Server Virtualization Validation Program (SVVP) – KB 897615
http://www.sptechcon.com/SanFrancisco2011
SharePoint supported on VMware ESX/ESXi, Citrix XenServer, or others in the SVVP
This only covers Hypervisor products, so excludes products such as VMware Workstation or VMWare Server
http://www.sptechcon.com/SanFrancisco2011
http://www.sptechcon.com/SanFrancisco2011
http://www.sptechcon.com/SanFrancisco2011
http://www.sptechcon.com/SanFrancisco2011
Virtualization Host and Guest Management Platform
Part of the System Center Management Suite, which includes the following: System Center Operations Manager 2007
System Center Data Protection Manager 2007
System Center Configuration Manager 2007 R2
System Center Mobile Device Manager 2007
System Center Essentials 2007
System Center Capacity Planner 2007
System Center Service Manager 2010
http://www.sptechcon.com/SanFrancisco2011
New version out (VMM 2008 R2) VMM 2008 R2 has P2V (Physical to virtual migration) and
V2V (VMware Guest migration to Hyper-V) tools For SharePoint, allows for creation of SharePoint template
servers that can be quickly provisioned for test farms or for new farm members in production
Can manage both Hyper-V and VMware guests (though must ‘go through’ a Virtual Center server to manage VMware guests.)
Self-Service Portal allows end users and remote admins to be able to provision their own virtual machines based on templates
http://www.sptechcon.com/SanFrancisco2011
1. Create new Virtual Guest (Windows Server 2008 R2)2. Install SP2010 Binaries. Stop before running Config
Wizard3. Turn Virtual Guest into Template, modify template
to allow it to be added into domain4. Add PowerShell script to run on first login, allowing
SP to be added into farm or to create new farmVoila! 15 minute entire farm provisioning…
http://www.sptechcon.com/SanFrancisco2011
Demo
36
http://www.sptechcon.com/SanFrancisco2011
Function Configure-SPSearch {PARAM($AppPool, $FarmName, $SearchServiceAccount)
$searchServiceInstance = Get-SPEnterpriseSearchServiceInstance -localStart-SPEnterpriseSearchServiceInstance -Identity $searchServiceInstance
$dbName = $FarmName + "_SearchServiceApplication"
$searchApplication = New-SPEnterpriseSearchServiceApplication -Name "$FarmName Search Service Application" -ApplicationPool $AppPool -DatabaseName $dbName$searchApplicationProxy = New-SPEnterpriseSearchServiceApplicationProxy -name "$FarmName Search Service Application Proxy" -SearchApplication
$searchApplication
Set-SPEnterpriseSearchAdministrationComponent -SearchApplication $searchApplication -SearchServiceInstance $searchServiceInstance
$crawlTopology = New-SPEnterpriseSearchCrawlTopology -SearchApplication $searchApplication$crawlDatabase = Get-SPEnterpriseSearchCrawlDatabase -SearchApplication $searchApplication
New-SPEnterpriseSearchCrawlComponent -CrawlTopology $crawlTopology -CrawlDatabase $crawlDatabase -SearchServiceInstance $searchServiceInstance
while($crawlTopology.State -ne "Active"){
$crawlTopology | Set-SPEnterpriseSearchCrawlTopology -Active -ErrorAction SilentlyContinueif ($crawlTopology.State -ne "Active"){
Start-Sleep -Seconds 10}
}
$queryTopology = New-SPenterpriseSEarchQueryTopology -SearchApplication $searchApplication -partitions 1$searchIndexPartition = Get-SPEnterpriseSearchIndexPartition -QueryTopology $queryTopologyNew-SPEnterpriseSearchQueryComponent -indexpartition $searchIndexPartition -QueryTopology $queryTopology -SearchServiceInstance $searchServiceInstance
$propertyDB = Get-SPEnterpriseSearchPropertyDatabase -SearchApplication $searchApplication
Set-SPEnterpriseSearchIndexPartition $searchIndexPartition -PropertyDatabase $propertyDB
while ($queryTopology.State -ne "Active"){
$queryTopology | Set-SPEnterpriseSearchQueryTopology -Active -ErrorAction SilentlyContinue
if ($queryTopology.State -ne "Active"){
Start-Sleep -Seconds 10}
}}
http://www.sptechcon.com/SanFrancisco2011
http://www.sptechcon.com/SanFrancisco2011
Windows Server Virtualization Licensing Standard Edition: One virtual guest (if host is dedicated to
virtualization role) Enterprise Edition: Four virtual guests (if host is dedicated to
virtualization role) / Guests can be Std/Ent DataCenter Edition: Unlimited Number of Virtual Guests / Per
processor socket license Virtualization OS licensing applies to Hyper-V or any virtual host
software listed in SVVP (KB 897615) System Center Virtualization Licensing System Center Management Suite Standard Edition License: Gives
DPM, OpsMgr, ConfigMgr, and VMM Agents for 1 server. System Center Management Suite Enterprise Edition License: Gives
unlimited DPM, OpsMgr, ConfigMgr, and VMM Agents for all virtual guests on the host.
Check with Microsoft for Specifics…
http://www.sptechcon.com/SanFrancisco2011
Guests can run any combination of downlevel licenses (i.e. Datacenter host, Ent or Std edition guests)
Applies not only to OSes running virtualized with Windows Virtualization, but it also applies to 3rd
party virtualization as well!
http://www.sptechcon.com/SanFrancisco2011
Understand the architecture options for SharePoint 2010 Consider Virtualization for SharePoint, but architect host and
guest environments very carefully. Best performance comes from dedicated virtual hosts,
dedicated passthrough NICs, and dedicated passthroughdisks and by not overcommitting resources.
KB897615 outlines MS Support for 3rd Party Virtualization such as VMware and XenServer…
Windows Server 2008 R2 Hyper-V technology gives high performance and is a very cost competitive option
MS Licensing has new virtualization support, and Datacenter edition will provide for unlimited guests under a single host.
http://www.sptechcon.com/SanFrancisco2011
SharePoint 2007 Unleashed and SharePoint 2010 Unleashed (SAMS Publishing) (http://www.samspublishing.com)
Windows Server 2008 R2 Unleashed and/or Hyper-V Unleashed (http://www.samspublishing.com)
Microsoft ‘Virtualizing SharePoint Infrastructure’ Whitepaper (http://tinyurl.com/virtualsp)
Microsoft ‘Virtualizing SQL Server’ Whitepaper (http://tinyyurl.com/virtualsql) Microsoft SQL Mirroring Case Study http://tinyurl.com/mirrorsp Failover Mirror PowerShell Script http://tinyurl.com/failovermirrorsp Microsoft Edge Videos on Virtualization of SharePoint:
http://tinyurl.com/edgenoel2 http://tinyurl.com/edgenoel3
Contact us at CCO.com
http://www.sptechcon.com/SanFrancisco2011
Michael NoelTwitter: @MichaelTNoel
www.cco.com