Consider a scenario in SQL server 2012 Always on server
I have set up a always on availability group with one standby replica and added one fresh database to this availability group
After setting up a pair and added database in always on availability group , I performed below test
1. Full backup on Primary (F1)
2. Do some Transactions
3. Log backup on Primary (L1)
4. Do some Transactions
5. Log backup on Standby/secondary replica (L2)
6. Do some Transactions
7. Log backup on Primary (L3)
8. Do some Transactions
9. Recover a database on Primary
After step 5 , log backup of secondary , I am not able to recover a database on primary and as soon as I click on restore
I got below error , before restore I removed database from availability group , take one more log backup on primary but still same error
“Unable to create restore plan due to break in the LSN chain.”
What is the issue and how come L2 at step 5 is allowed since no full backup was taken on secondary ?
When I create a pair , one full backup and one log backup from primary is shipped to secondary and
On that , sql server allows to take direct log backup without explicit full backup on secondary.
Please help me resolving this , as user may take some log backups on primary.
-