dbTalk Databases Forums  

Recovering from live backup.

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Recovering from live backup. in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Justin Willey
 
Posts: n/a

Default Recovering from live backup. - 04-27-2006 , 11:59 AM






Hi

We are having problems reliably recovering from a live backup setup on
v8.0.2. Sometimes it works, usually it doesn't.

Scenario

Start Position: Live backup running, creating log file in folder A on backup
server. Last night's full backup and log file in folder B.
1. Stop live backup job.
2. Start db server with -a switch to apply last nights log file (folder B)
to the database (folder B) so that any additional transactions in the log
file are caught. Completes successfully, server shuts down.
3. Start db server with -a switch to apply live backup log file (folder A)
to the database (folder B). Completes successfully, server shuts down.
4. Start db server normally, fails with error: "Cannot open the transaction
log file -- Can't use log file
"****.log" Since it has been used more recently than the database file.

Are we missing a stage here, do we need to dump the log file and start a new
one? Any thoughts gratefully received!

Justin Willey







Reply With Quote
  #2  
Old   
Breck Carter [Team iAnywhere]
 
Posts: n/a

Default Re: Recovering from live backup. - 04-27-2006 , 01:12 PM






Sounds like you are trying to start the engine in step 4 with a log
file that was used in step 2. Try moving that log file somewhere else
so the engine will create a new log file when it starts.


On 27 Apr 2006 09:59:41 -0700, "Justin Willey"
<gjw (AT) nospamatall (DOT) iqx.co.uk> wrote:

Quote:
Hi

We are having problems reliably recovering from a live backup setup on
v8.0.2. Sometimes it works, usually it doesn't.

Scenario

Start Position: Live backup running, creating log file in folder A on backup
server. Last night's full backup and log file in folder B.
1. Stop live backup job.
2. Start db server with -a switch to apply last nights log file (folder B)
to the database (folder B) so that any additional transactions in the log
file are caught. Completes successfully, server shuts down.
3. Start db server with -a switch to apply live backup log file (folder A)
to the database (folder B). Completes successfully, server shuts down.
4. Start db server normally, fails with error: "Cannot open the transaction
log file -- Can't use log file
"****.log" Since it has been used more recently than the database file.

Are we missing a stage here, do we need to dump the log file and start a new
one? Any thoughts gratefully received!

Justin Willey





--
Breck Carter [Team iAnywhere]
RisingRoad SQL Anywhere and MobiLink Professional Services
www.risingroad.com
The book: http://www.risingroad.com/SQL_Anywhe...ers_Guide.html
breck.carter (AT) risingroad (DOT) com


Reply With Quote
  #3  
Old   
Justin Willey
 
Posts: n/a

Default Re: Recovering from live backup. - 04-28-2006 , 04:04 PM



Thanks - that will be it.

Justin

"Breck Carter [Team iAnywhere]" <NOSPAM__bcarter (AT) risingroad (DOT) com> wrote in
message news:e3u152ths7js436fgd1pemoagtid93vu0i (AT) 4ax (DOT) com...
Quote:
Sounds like you are trying to start the engine in step 4 with a log
file that was used in step 2. Try moving that log file somewhere else
so the engine will create a new log file when it starts.


On 27 Apr 2006 09:59:41 -0700, "Justin Willey"
gjw (AT) nospamatall (DOT) iqx.co.uk> wrote:

Hi

We are having problems reliably recovering from a live backup setup on
v8.0.2. Sometimes it works, usually it doesn't.

Scenario

Start Position: Live backup running, creating log file in folder A on
backup
server. Last night's full backup and log file in folder B.
1. Stop live backup job.
2. Start db server with -a switch to apply last nights log file (folder B)
to the database (folder B) so that any additional transactions in the log
file are caught. Completes successfully, server shuts down.
3. Start db server with -a switch to apply live backup log file (folder A)
to the database (folder B). Completes successfully, server shuts down.
4. Start db server normally, fails with error: "Cannot open the
transaction
log file -- Can't use log file
"****.log" Since it has been used more recently than the database file.

Are we missing a stage here, do we need to dump the log file and start a
new
one? Any thoughts gratefully received!

Justin Willey






--
Breck Carter [Team iAnywhere]
RisingRoad SQL Anywhere and MobiLink Professional Services
www.risingroad.com
The book:
http://www.risingroad.com/SQL_Anywhe...ers_Guide.html
breck.carter (AT) risingroad (DOT) com



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.