SPUnite17 Faster Than a Flash Patching SharePoint Online
-
Upload
nccomms -
Category
Technology
-
view
35 -
download
2
Transcript of SPUnite17 Faster Than a Flash Patching SharePoint Online
Aleksandar DraskovicService Engineer, Microsoft Ireland
Born in Sarajevo, Bosnia and Herzegovina,
somewhere in the last century
19 years in the enterprise IT business
In SharePoint business since 2007
MCM SharePoint 2010
MCSE SharePoint 2013
MCSD SharePoint 2013
Speaker
Preparation
Working week
• Health check
• Package and
environment
preparation
Non-impacting work
Working week, off-peak
• Installing
SharePoint
binaries
• Office Web
Apps
upgrade
Impacting work
Weekend / change window
• Farm
Upgrade
(PSConfig)
• Content
Database
Upgrade
Post-deployment
Immediately after the change window
• Validation
• Clean-up
Pre-
production
environment
Disaster
Recovery
environment
Production
environment
SPWebSvr01
SPAppSvr01
SPWebSvr02
SPAppSvr02
SQLSvr01 SQLSvr02 SQLSvr03
SPAppSvr03 SPAppSvr04
Access
Web
Application
Database
Load balancer
Take the server out of the “rotation”
Enumerate the SharePoint and
Windows Services
Stop and disable Windows servicesIISAdmin, OSearch15,
SPSearchHostController,
SPAdminV4, SPTimerV4
Disable all SharePoint servicesStop-SPServiceInstance
Activate maintenance mode
Install SharePoint binaries
Copy app. bits and initialize securityInstall-SPApplicationContent,
Initialize-SPResourceSecurity
Start service, enable SharePoint
services and restart
Check server health, perform local
smoke test
Bring server back into rotation and
deactivate maintenance mode
User ProfileUser Profile SyncManaged MetadataBCS
User ProfileManaged MetadataBCS
CrawlIndex (partition 0 replica)Index (partition 1)Content processingAnalytics processingSearch administration
CrawlIndex (partition 0)Index (partition 1 replica)Content processingAnalytics processingSearch administration
SPWebSvr01
SPAppSvr01
SPWebSvr02
SPAppSvr02
SQLSvr01 SQLSvr02 SQLSvr03
SPAppSvr03 SPAppSvr04
Access
Web
Application
Database
Load balancer
Take the next server and repeat
Patch multiple servers at oncePatch servers with different roles at
the same time, eg. AP and FE
Make sure that there is an active
service instance in the farm to avoid
losing functionality
For index servers, make sure that
index partitions are healthy and
rebalanced prior patching a server
Monitor the load on the frontends in
the farmPerfmon: Web Service\Current
Connections
Beware of July 2015 PUChanges in the search schema
Activate maintenance mode
Make snapshots of the WAC config
Remove a WAC server from
Load balancer rotation
WAC farm
Install bits on the WAC server
Add the WAC server to the new
WAC farm
Apply the config based on the
snapshot created (only required on
the 1st server)
Add the server to the load balancer
rotation
Repeat for all servers
Deactivate maintenance mode
Access
Old farm
Load balancerwac.contoso.com
New farm
OWA-WAC01 OWA-WAC02 OWA-WAC03
Remove-OfficeWebAppsMachine
New-OfficeWebAppsFarm or
New-OfficeWebAppsMachine
Set-OfficeWebAppsMachine –Master OWA-WAC01
Farm upgradeContent Database
upgrade
https://intranet.contoso.com
SPWebSvr01
SPAppSvr01
SPWebSvr02
SPSrchSvr01
SQLSvr01 SQLSvr02 SQLSvr03
SPSrchSvr02 SPAppSvr02
Access
Web / Cache
Application
Database
Load balancer
User ProfileUser Profile SyncManaged MetadataBCS
User ProfileManaged MetadataBCS
CrawlIndex (partition 0 replica)Index (partition 1)Content processingAnalytics processingSearch administration
CrawlIndex (partition 0)Index (partition 1 replica)Content processingAnalytics processingSearch administration
SPDchSvr01 SPDchSvr02
Take the server out of the “rotation”
Activate maintenance mode
Install SharePoint binaries (STS+WSS
packages)
Check server health, perform local
smoke test
Bring server back into rotation and
deactivate maintenance mode
Patch multiple servers at once
Make sure that there is an active
service instance in the farm to
avoid losing functionality
For index servers, make sure that
index partitions are healthy and
rebalanced prior patching a server
Parallelize as much as possible
Repeat the process for the rest of
the servers
SPWebSvr01
SPAppSvr01
SPWebSvr02
SPSrchSvr01
SQLSvr01 SQLSvr02 SQLSvr03
SPSrchSvr02 SPAppSvr02
Access
Web / Cache
Application
Database
Load balancer
User ProfileUser Profile SyncManaged MetadataBCS
User ProfileManaged MetadataBCS
CrawlIndex (partition 0 replica)Index (partition 1)Content processingAnalytics processingSearch administration
CrawlIndex (partition 0)Index (partition 1 replica)Content processingAnalytics processingSearch administration
SPDchSvr01 SPDchSvr02
Take the server out of the “rotation”
Activate maintenance mode
Run PSConfig
Check server health, perform local
smoke test
Bring server back into rotation and
deactivate maintenance mode
DCH: Activate maint. mode,
gracefully stop Distributed Cache
service and run PSConfig
Start Distributed Cache service and
deactivate maint. mode
For index servers, make sure that
index partitions are healthy and
rebalanced prior running the
PSConfig
PSCONFIG.exe -cmd upgrade -inplace b2b -wait -
cmd applicationcontent -install -cmd
installfeatures -cmd secrureresources -cmd
services -install
Repeat the procedure on the rest of
the servers in the farm
$svcInstance = Get-SPServiceInstance –Server
$env:ComputerName | ? {{$_.Service.ToString()
–eq “SPDistributedCacheService
Name=AppFabricCachingService”}
$svcInstance.Unprovision()$svcInstance = Get-SPServiceInstance –Server
$env:ComputerName | ? {{$_.Service.ToString()
–eq “SPDistributedCacheService
Name=AppFabricCachingService”}
$svcInstance.Provision()
https://blogs.technet.microsoft.com/stefan_gossner/
http://aka.ms/patching
https://technet.microsoft.com/en-us/library/cc263467.aspx
https://technet.microsoft.com/en-us/library/mt743024(v=office.16).aspx