• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Grant Fritchey - Common problems in backup and recovery and how to handle them
 

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

on

  • 201 views

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

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

Statistics

Views

Total Views
201
Views on SlideShare
201
Embed Views
0

Actions

Likes
0
Downloads
7
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • 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 Grant Fritchey - Common problems in backup and recovery and how to handle them Presentation Transcript

  • 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 • Broken Backup Chain • Backup Load • Backup Testing • Offsite Storage 3
  • Grant Fritchey 4  Product Evangelist for Red Gate Software  Email: grant@scarydba.com  Twitter: @gfritchey  Blog: scarydba.com
  • 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: 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
  • Questions? 18