5 Painful Backup & Recovery Mistakes
(and how to avoid them)
Hosted by David Gugick and David Swanson, Dell
May 2, 2013
2
Agenda
• Speaker Introductions
• Backup & Recovery Concepts in One Slide
• The 5 6 mistakes
• Resources
• Q & A
3
David Swanson
• Database Systems Consultant,
Dell
• david.swanson@quest.com
David Gugick
• Product Management, Data
Prot...
4
Backup & Recovery Concepts in One Slide
Recovery
Model
• Full
• Bulk Logged
• Simple
Backup
Type
• Full
• Differential
•...
5
5. Stung By Switching Recovery Modes
Change recovery model from Full to Simple
Change recovery model from Simple back to...
6
Demo
7
T-Log T-Log T-Log T-Log T-Log T-Log T-Log T-Log
T-Log T-Log T-Log T-Log T-Log T-Log T-Log T-Log
4. Breaking the Log Chai...
8
3. Throttling Performance with Bad Processes
Too many concurrent backups
Excessive VLFs in the transaction log file
Impr...
9
2. Inadequate Checks & Preventative Maintenance
Not using
CHECKSUM?
Not using
DBCC
CHECKDB?
No long-term
retention of
ba...
10
1b. Thinking of Backup Compression as Only a Space Saver
Compression
Backup space
savings
Backup speed
savings
Recovery...
11
1a. Failure to Test for Disaster Recovery
Document!
Test procedures and for time
Are retention policies adequate?
Compr...
12
Resources - References
• Instant File Initialization
– http://msdn.microsoft.com/en-us/library/ms175935.aspx
– http://b...
13
Q & A
14
Thanks
Upcoming SlideShare
Loading in …5
×

See how to avoid 5 painful SQL Server backup and recovery mistakes.

1,083 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,083
On SlideShare
0
From Embeds
0
Number of Embeds
18
Actions
Shares
0
Downloads
13
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

See how to avoid 5 painful SQL Server backup and recovery mistakes.

  1. 1. 5 Painful Backup & Recovery Mistakes (and how to avoid them) Hosted by David Gugick and David Swanson, Dell May 2, 2013
  2. 2. 2 Agenda • Speaker Introductions • Backup & Recovery Concepts in One Slide • The 5 6 mistakes • Resources • Q & A
  3. 3. 3 David Swanson • Database Systems Consultant, Dell • david.swanson@quest.com David Gugick • Product Management, Data Protection, Dell • david.gugick@quest.com • @davidgugick Your Hosts
  4. 4. 4 Backup & Recovery Concepts in One Slide Recovery Model • Full • Bulk Logged • Simple Backup Type • Full • Differential • Transaction Log Scope • Database • File or Filegroups • Partial Quick Hint: Instant File Initialization can greatly speed up database recovery!
  5. 5. 5 5. Stung By Switching Recovery Modes Change recovery model from Full to Simple Change recovery model from Simple back to Full Expect it to take effect immediately? No! Not until Full (or differential) backup is taken Until then, T-Log backups fail
  6. 6. 6 Demo
  7. 7. 7 T-Log T-Log T-Log T-Log T-Log T-Log T-Log T-Log T-Log T-Log T-Log T-Log T-Log T-Log T-Log T-Log 4. Breaking the Log Chain • When recovering a database from a differential backup strategy, SQL Server requires that the differential backups match the differential base in the full backup Full Non COPY_ONLY Full Differential Differential Differential Dev Manager: “Can you make me a current copy of production?”
  8. 8. 8 3. Throttling Performance with Bad Processes Too many concurrent backups Excessive VLFs in the transaction log file Improper maintenance Poor IO design always spoils the party
  9. 9. 9 2. Inadequate Checks & Preventative Maintenance Not using CHECKSUM? Not using DBCC CHECKDB? No long-term retention of backups. There’s some danger in WITH INIT Improper retention with differential backups Not tracking failed backups
  10. 10. 10 1b. Thinking of Backup Compression as Only a Space Saver Compression Backup space savings Backup speed savings Recovery speed savings Faster Storage Replication Less work for dedupe appliance
  11. 11. 11 1a. Failure to Test for Disaster Recovery Document! Test procedures and for time Are retention policies adequate? Comprehensive fire-drills
  12. 12. 12 Resources - References • Instant File Initialization – http://msdn.microsoft.com/en-us/library/ms175935.aspx – http://blogs.msdn.com/b/sql_pfe_blog/archive/2009/12/23/how-and-why-to-enable-instant-file-initialization.aspx – http://sqlskills.com/BLOGS/PAUL/post/Misconceptions-around-instant-file-initialization.aspx – http://sqlskills.com/blogs/Kimberly/post/Instant-Initialization-What-Why-and-How.aspx • CHECKSUM – http://www.sqlmag.com/article/database-backup-and-recovery/advanced-backup-and-restore-options-129834 • Recovery Models and Transaction Log Management – http://msdn.microsoft.com/en-us/library/ms366344.aspx • Virtual Log File (VLF) Performance Impact – http://blog.sqlauthority.com/2011/01/02/sql-server-reduce-the-virtual-log-files-vlfs-from-ldf-file/ – http://sqlblog.com/blogs/linchi_shea/archive/2009/02/09/performance-impact-a-large-number-of-virtual-log-files-part-i.aspx – http://sqlskills.com/BLOGS/KIMBERLY/post/Transaction-Log-VLFs-too-many-or-too-few.aspx – http://sqlblogcasts.com/blogs/tonyrogerson/archive/2007/07/25/sql-2000-yes-lots-of-vlf-s-are-bad-improve-the-performance-of-your- triggers-and-log-backups-on-2000.aspx • Backup Performance – http://www.quest.com/webcast-ondemand/pain-of-the-week-performance-tuning-for-backups-and-restores813358.aspx • LiteSpeed – LiteSpeed Landing Page: http://www.quest.com/litespeed-for-sql-server/ – Tech Brief: Top 6 LiteSpeed Features DBAs Should Know About: http://www.quest.com/techbrief/top-6-litespeed-features-dbas-should- know-about815805.aspx – What's New in LiteSpeed for SQL Server 7.1 Blog Post: http://communities.quest.com/community/litespeed/blog/2013/03/04/litespeed-for- sql-server-v71-what-s-new – Webcasts and Events: http://www.quest.com/events/list.aspx?contenttypeid=15&prod=192
  13. 13. 13 Q & A
  14. 14. 14 Thanks

×