Common Backup Problems
Grant Fritchey
#sqlinthecity
Goals
• Identify common backup issues
• Prevent those issues from occurring
2
Agenda
• Disaster Recovery
• SQL Server Backups
• File Backups
• Drive Space
• Full Transaction Log
• Differential Only
• ...
Grant Fritchey
4
 Product Evangelist for Red Gate Software
 Email: grant@scarydba.com
 Twitter: @gfritchey
 Blog: scar...
Disaster Recovery
5
SQL Server Backups
6
01011001
File Backups
7
Data Log
01011001
Drive Space
8
Full Transaction Log
9
Differential Only
10
Broken Backup Chain
11
The Wrong Server
12
Backup Load
13
Backup Testing
14
Offsite Storage
15
Goals
• Identify common backup issues
• Prevent those issues from occurring
16
Resources
• Scarydba.com/backup
• SQL Server Transaction Log Management
Gail Shaw & Tony Davis
• Preventable Backup Errors...
Questions?
18
Upcoming SlideShare
Loading in …5
×

Grant Fritchey - Common problems in backup and recovery and how to handle them

358 views

Published on

Grant Fricthey - Common problems in backup and recovery and how to handle them

Published in: Technology, Self Improvement
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
358
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Remember, backups are about DR, not HA.Complete copy of the databaseNot an exportNot a scriptNot a file copyPrincipal means of protecting the business dataMultiple Backup TypesFullDifferentialFile/FileGroupLogPartial
  • IndicationsFile backup onlyExpected restore from .MDF & .LDF filesCauseSQL Server locks the files while they’re in useRemedyRun a real backupStop the server, copy the files, start the server (and no, I’m not serious)EmergencyTry using ATTACH, but don’t hold out hopeDemo copying a file. If it works, attach the database & see what happens.
  • IndicationsErrors on backupAlerts on drive spaceNo backups availableCauseNot monitoring drive spaceDatabase size increasedRemedyMonitor your drive spaceClean up backupsMonitor database sizeEmergencyIf the backup failed, no options
  • IndicationsLog files constantly growingTransaction errors caused by full fileCauseLog backups failedLog backups never implementedRemedySet up scheduled log backupsIf FULL RECOVERY not needed, switch to SIMPLEEmergencyAttach an additional log fileNot always possible
  • IndicationsError, no files ready to roll forwardCauseNo FULL restore runFull restore run, but database recoveredRemedyRun a FULL restoreUse WITH NORECOVERY on restoreMake sure you have a FULL backupEmergencyWith no full backup, no optionsShow off the errors available in the demo’s
  • IndicationsError: Database has not been restored to the correct earlier stateCauseWrong Full backupExtra Full backup takenRemedyUse correct Full backupUse SNAPSHOTUse COPY_ONLYEmergencyIf you have all the log backups, you can use those instead
  • Show how to change color coding, maybe install Tab MagicIndicationsPhone is ringingCauseRan a restore on wrong serverUsed WITH ROLLBACK IMMEDIATERemedyUse different security for productionColor code production serversDon’t use ROLLBACK IMMEDIATEEmergencyYes it is
  • IndicationsExcessive CPU or I/O contentionWaits on backupsBlockingCauseExcessive load on server makes backups difficultRemedyBackup from AlwaysOnEmergencyDo what you must
  • “You’re only as good as your last restore” Kimberly Tripp (as far as I can determine)DBCCAgainst ProductionAgainst a BackupCHECKSUMAdded overheadVERIFYONLYHeader only without checksumRESTORELike nuking from orbit, the only way to be sure
  • Different DriveDifferent ServerMultiple copiesOffsiteEncryption
  • Grant Fritchey - Common problems in backup and recovery and how to handle them

    1. 1. Common Backup Problems Grant Fritchey #sqlinthecity
    2. 2. Goals • Identify common backup issues • Prevent those issues from occurring 2
    3. 3. Agenda • Disaster Recovery • SQL Server Backups • File Backups • Drive Space • Full Transaction Log • Differential Only • Broken Backup Chain • Backup Load • Backup Testing • Offsite Storage 3
    4. 4. Grant Fritchey 4  Product Evangelist for Red Gate Software  Email: grant@scarydba.com  Twitter: @gfritchey  Blog: scarydba.com
    5. 5. Disaster Recovery 5
    6. 6. SQL Server Backups 6 01011001
    7. 7. File Backups 7 Data Log 01011001
    8. 8. Drive Space 8
    9. 9. Full Transaction Log 9
    10. 10. Differential Only 10
    11. 11. Broken Backup Chain 11
    12. 12. The Wrong Server 12
    13. 13. Backup Load 13
    14. 14. Backup Testing 14
    15. 15. Offsite Storage 15
    16. 16. Goals • Identify common backup issues • Prevent those issues from occurring 16
    17. 17. Resources • Scarydba.com/backup • SQL Server Transaction Log Management Gail Shaw & Tony Davis • Preventable Backup Errors: http://www.simple- talk.com/sql/database-administration/7-preventable- backup-errors/ • Backup and Restore for the Accidental DBA: http://www.simple-talk.com/sql/database- administration/sql-server-backup-and-restore-for-the- accidental-dba/ • SQL Server Backups: http://www.simple- talk.com/sql/backup-and-recovery/sql-server-2005- backups/ 17
    18. 18. Questions? 18

    ×