SPUnite17 Faster Than a Flash Patching SharePoint Online

32

Transcript of SPUnite17 Faster Than a Flash Patching SharePoint Online

Page 1: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 2: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 3: 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

Page 4: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 5: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 6: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 7: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 8: SPUnite17 Faster Than a Flash Patching SharePoint Online

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

Page 9: SPUnite17 Faster Than a Flash Patching SharePoint Online

Pre-

production

environment

Disaster

Recovery

environment

Production

environment

Page 10: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 11: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 12: SPUnite17 Faster Than a Flash Patching SharePoint Online

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

Page 13: SPUnite17 Faster Than a Flash Patching SharePoint Online

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

Page 14: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 15: SPUnite17 Faster Than a Flash Patching SharePoint Online

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

Page 16: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 17: SPUnite17 Faster Than a Flash Patching SharePoint Online

Farm upgradeContent Database

upgrade

Page 18: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 19: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 20: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 21: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 22: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 23: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 24: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 25: SPUnite17 Faster Than a Flash Patching SharePoint Online

https://intranet.contoso.com

Page 26: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 27: SPUnite17 Faster Than a Flash Patching SharePoint Online

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

Page 28: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 29: SPUnite17 Faster Than a Flash Patching SharePoint Online

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()

Page 30: SPUnite17 Faster Than a Flash Patching SharePoint Online
Page 31: SPUnite17 Faster Than a Flash Patching SharePoint Online

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

Page 32: SPUnite17 Faster Than a Flash Patching SharePoint Online