SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Confusion regarding which full-backup file to apply on secondary in Log shipping


Confusion regarding which full-backup file to apply on secondary in Log shipping

Author
Message
anoop.mig29
anoop.mig29
SSC-Enthusiastic
SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)

Group: General Forum Members
Points: 147 Visits: 155
Hi we have a log shipping configured at one of client side and is out of shrink for log time . Now client what has happened is that client has taken full backup of database of say on this 27 at 1.00 am and simultaneously transaction log backup job(of log shipping) was running , now on this 28 client took another full backup of same database , also transaction log backup is running and i have all backup file.

My understanding is that due 28 th full backup all transaction backup file generated after 28, 1.00 am must have there LSN changed and so i ,must apply full backup file of 28th and then apply transaction log in order to brink secondary in shrink with primary but my friends say we can apply 27 backup file and then apply all transaction log backup file and as such no LSN change is broken.

please tell me who is correct and
Does file generated on 27 can be applied and then apply each transaction log files
SqlSWAT
SqlSWAT
SSC Journeyman
SSC Journeyman (78 reputation)SSC Journeyman (78 reputation)SSC Journeyman (78 reputation)SSC Journeyman (78 reputation)SSC Journeyman (78 reputation)SSC Journeyman (78 reputation)SSC Journeyman (78 reputation)SSC Journeyman (78 reputation)

Group: General Forum Members
Points: 78 Visits: 454
Hi Anoop,
The Full Database backup taken on 28th is sufficient enough and have all the transaction changes till the 28th. You can apply the 28th full backup and all the Transactional log backups(.trn) after that to bring the Secondary back In-Sync.
Richard Moore-400646
Richard Moore-400646
Old Hand
Old Hand (356 reputation)Old Hand (356 reputation)Old Hand (356 reputation)Old Hand (356 reputation)Old Hand (356 reputation)Old Hand (356 reputation)Old Hand (356 reputation)Old Hand (356 reputation)

Group: General Forum Members
Points: 356 Visits: 1640
Both scenarios are valid as long as you have all of the log files. Full backups won't interfere with the LSN of the transaction log backups.
anoop.mig29
anoop.mig29
SSC-Enthusiastic
SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)

Group: General Forum Members
Points: 147 Visits: 155
Hi plz tell me when is LSN chain breaks in case of log shipping.

And as per my knowledge log transactions are dependent one full database backup files and for in that case LSN number is important.
Richard Moore-400646
Richard Moore-400646
Old Hand
Old Hand (356 reputation)Old Hand (356 reputation)Old Hand (356 reputation)Old Hand (356 reputation)Old Hand (356 reputation)Old Hand (356 reputation)Old Hand (356 reputation)Old Hand (356 reputation)

Group: General Forum Members
Points: 356 Visits: 1640
The LSN chain for log shipping is only broken if a log is lost or corrupt. There are other scenarios, but all would envolve using differential backups and mutliple full backups.
GilaMonster
GilaMonster
SSC Guru
SSC Guru (87K reputation)SSC Guru (87K reputation)SSC Guru (87K reputation)SSC Guru (87K reputation)SSC Guru (87K reputation)SSC Guru (87K reputation)SSC Guru (87K reputation)SSC Guru (87K reputation)

Group: General Forum Members
Points: 87785 Visits: 45272
anoop.mig29 (3/2/2013)
And as per my knowledge log transactions are dependent one full database backup files and for in that case LSN number is important.


Not true.

Differential backups are dependent on one specific full backup, log files are not.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


anoop.mig29
anoop.mig29
SSC-Enthusiastic
SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)SSC-Enthusiastic (147 reputation)

Group: General Forum Members
Points: 147 Visits: 155
GilaMonster (3/2/2013)
anoop.mig29 (3/2/2013)
And as per my knowledge log transactions are dependent one full database backup files and for in that case LSN number is important.


Not true.

Differential backups are dependent on one specific full backup, log files are not.


Gail thanks for your reply . can u clarify one more doubt , that if i have full backup and log backup then do i require differential backup or not . if not then why options of differential backup are provided
GilaMonster
GilaMonster
SSC Guru
SSC Guru (87K reputation)SSC Guru (87K reputation)SSC Guru (87K reputation)SSC Guru (87K reputation)SSC Guru (87K reputation)SSC Guru (87K reputation)SSC Guru (87K reputation)SSC Guru (87K reputation)

Group: General Forum Members
Points: 87785 Visits: 45272
Require, no. Full and log can restore to a point in time. There are advantages and disadvantages to differentials, there are many places where they are useful.

Consider, for example, a scenario where a full backup takes 4 hours but the only time you have a 4 hour maintenance window is on a Sunday. What do you do for backups?

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search