34
A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Embed Size (px)

Citation preview

Page 1: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

MMS Minnesota 2014

A ConfigMgr 2012 Site Review

Kent Agerlund / Steve Thomson

Page 2: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Who are we

Kent Agerlund• Chief System Management Architect & Co-

founder of Coretech• Coretech A/S, System Center Gold Partner• Titles

• Microsoft MVP: Enterprise Client Management• Member of the System Center Influencers Team

• Author• Mastering System Center 2012 Configuration

Manager• System Center 2012 Configuration Manager

Mastering the fundamentals

Steve Thomson

• Senior Consultant

• Softchoice

• Specializing in System Center related technologies

• Titles• Microsoft MVP: Enterprise Client Management• Former SQL Server MVP

• Contributing Author• System Center 2012 Unleased (SAMS)

Page 3: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

A ConfigMgr Site Review• ConfigMgr• SQL Server• Performance• Find and understand bottleneck• SLA vs Performance

Page 4: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Troubleshooting tools and techniques

Page 5: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

The Arsenal•WMI• Status Messages• Log files• SQL• PowerShell

Page 6: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

WMI•Windows Management Instrumentation• The Tools (just a few)• WMI Object Browser• Scriptomatic• Coretech WMI and PowerShell explorer

• The name spaces• Standard – CimV2• Server side – root\SMS\Site\Site_<Sitecode>• Client side – root\ccm

Page 7: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Status Messages• Somewhat controlled by client settings• Status Filter rules• Can be powerful• Trigger events/scripts

Page 8: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Log files• Always use CMtrace• Verbose logging• Clients• Management Points• Task Sequences

• NAL logging• Distribution Points

Page 9: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

SQL• SQL Server Management Studio• Queries

• SQL Profiler• Requires a little SQL knowledge

• SMSprov.log• Translates all WQL queries into T-SQL

Page 10: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

PowerShell• How to document existing SQL Server? • Can I identify common problems?•More on this later…

Page 11: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Common Issues

#devconnections

Page 12: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Site design – the complex approach

I need to

cluster my SQLI must have

multiple sites

SQL 2012

Always On

rocks!

Headaches• Complex environments• The DBA battle• Latency and replicationSolution = Keep It Simple

I need to

mirror m

y

SQL

Page 13: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Performance • Root cause• Collections• Site settings• SQL• Optimization• Poor design

#devconnections

Page 14: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Site systems and performance• Offload user facing site system roles first• Distribution Point• Management Point• Software Update Point• Application Catalog

• Non-user facing site systems can be installed on the primary site server• Use SQL replicas on the Management Points• If needed offload reporting

Page 15: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

WSUS• Issues• WSUS App Pool crashes• Client errors • OnSearchComplete - Failed to end search job. Error = 0x80244022.

•Mitigate• WSUS cleanup• susdb maintenance• Memory

#devconnections

Page 16: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

DemoKeeping WSUS lean and clean

Page 17: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

SQL Server considerations• SQL Files• 1 database file per core – max 8• 1 tempDB file for every two CPU’s

• Autogrowth• CAP/Limit log files

• Limit SQL memory• Other databases

Page 18: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Disk layout example • If cost is an issue or site is

medium consider• Combining tempDB and log

files• Combining database files• Combining all non OS files on

the same drive (small site or lab environment)• Always plan for contentlibrary• Know your SAN team

Disk Controller # of Drives Partitions

0 0 4 OS

1 1 4 tempDB

2 1 4 Log files (tx)

3 1 6 CM DB files

4 2 6 CM DB files

5 2 8 Programs

6 x x ContentLib

Page 19: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Database considerations• Estimate database file sizes• Pre-configure file size - Why Autogrowth is bad

• Properly size tempdb files• Database recovery mode• Tuning

• File/Index Fragmentation

Page 20: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Database maintenance tasks• Don’t trust the built-in maintenance tasks•Maintenance plan• Defrag and re-index

•Monitor • Fragmentation• Top stored procedures• Table sizes (row counts)

Page 21: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Backup• Standard vs. ConfigMgr• ConfigMgr Pros• Easy to configure• No SQL experience• Run custom scripts after backup is completed

• ConfigMgr Cons• No compression• Services interrupted• No in-console solution for other databases

Page 22: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Backup Cont….• Standard vs. ConfigMgr• SQL Backup Pros• Compression• Schedule job, e-mail notifications• No SMS service interrupted• Include other databases in the backup job

• SQL Cons• Requires a little SQL knowledge• Must have access to the SQL console

Page 23: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

DemoSQL

Page 24: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

PERFORMANCE & COLLECTIONS

#devconnections

Page 25: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Performance vs SLA’s

All SQL

All systems

All WRK

All WRK AMER

All WRK EMEA

All SRV

Setting business expectations

Understand the All Systems collection

Collection updates….the snowball effect

Page 26: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Investigating Collections

• Create & modify collections• Use CEviewer• Know your log files• Know your SQL views

Page 27: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

DemoCollections

Page 28: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

PowerShell

#devconnections

Page 29: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

PowerShell• How to document existing SQL Server? • Windows Server• SQL Server• Database properties

• Can I identify common problems?

Page 30: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Key SQL suspects•Memory allocation• Log file usage• VLFs (Virtual Log Files)• Why VLFs are bad

• Out of date index and statistics

#devconnections

Page 31: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

DemoPowershell auditSite restore – Time permitting

Page 32: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Summary• Use a good design• Troubleshooting Tools• Baseline – PowerShell Audit • Optimize SQL Server

#devconnections

Page 33: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Other resources• Kent Agerlund’s blog• http://blog.coretech.dk/author/kea/

• Steve Thompson’s blog• http://stevethompsonmvp.wordpress.com

#devconnections

Page 34: A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson

Session Title

EvaluationsPlease provide session feedback by clicking the Eval button in the scheduler app. One lucky winner will get a free ticket to the next MMS!

Visit all of our sponsors in the expo area and online!

Platinum Sponsors:

Gold Sponsors:

MMS Minnesota 2014