all groups > sql server replication > november 2003 >
You're in the

sql server replication

group:

Log Shipping Best Practices


Log Shipping Best Practices Josh
11/21/2003 7:31:05 AM
sql server replication:
I'm in the process of designing a SQL 2000 design that will use log shipping to maintain a backup server in case the primary SQL 2000 goes down. I understand the implications of using log shipping vs replication or clustering, but one of the specs of the system is to have the backup server be one to two hours behind the primary server

I all the reading I have done so far on log shipping it has talked about how to get data from the primary to the backup server, but it hasn't talked about synching the primary to the backup server if the primary server does in fact go down and the backup has to be promoted. Are there any best practices on this subject? One of my concerns is having to have both the primary and backup down at the same time while resynching the primary to the backup, and I want to minimize this time as much as possible

Log Shipping Best Practices anonymous NO[at]SPAM discussions.microsoft.com
11/21/2003 4:49:36 PM
In Yukon, the log shipping is automated such that it works
more like clustering where it manages whether the primary
is down and where to send the clients to the secondary,
etc. www.betaplace.com
[quoted text, click to view]
will use log shipping to maintain a backup server in case
the primary SQL 2000 goes down. I understand the
implications of using log shipping vs replication or
clustering, but one of the specs of the system is to have
the backup server be one to two hours behind the primary
server.
[quoted text, click to view]
has talked about how to get data from the primary to the
backup server, but it hasn't talked about synching the
primary to the backup server if the primary server does in
fact go down and the backup has to be promoted. Are there
any best practices on this subject? One of my concerns is
having to have both the primary and backup down at the
same time while resynching the primary to the backup, and
I want to minimize this time as much as possible.
[quoted text, click to view]
Log Shipping Best Practices Allan Hirt
11/25/2003 6:51:17 AM
If you got the tail of the log and your backup at the time
of doing the role change put the DB at the same state, if
you get the primary into STANDBY or NORECOVERY, you could
start just applying logs from the new primary.

However, if your secondary is not at the same point as the
primary, you have two problems.

1. If/when you can get back to the DB, do you want to see
what transactions exist that are not in the new primary
and export them? If so, do that first.
2. Even if you do #1, the only way in this scenario is to
take a full backup of the new primary (the original
secondary) and reinitialize the original primary, which
will be a new secondary.

So unless you can guarantee the DB on the secondary is at
the same point as the primary, you'll have decisions to
make.
[quoted text, click to view]
will use log shipping to maintain a backup server in case
the primary SQL 2000 goes down. I understand the
implications of using log shipping vs replication or
clustering, but one of the specs of the system is to have
the backup server be one to two hours behind the primary
server.
[quoted text, click to view]
has talked about how to get data from the primary to the
backup server, but it hasn't talked about synching the
primary to the backup server if the primary server does in
fact go down and the backup has to be promoted. Are there
any best practices on this subject? One of my concerns is
having to have both the primary and backup down at the
same time while resynching the primary to the backup, and
I want to minimize this time as much as possible.
[quoted text, click to view]
Re: Log Shipping Best Practices Iain
11/26/2003 7:51:58 PM
Have you seen the 'Simple Log Shipping' sample in the SQL Server 2000
resource kit?

It maintains a warm backup server to within whatever latency you want.

I'm in the process of writing something to do this via ftp on MSDE but
leaving a archive that can be offsited (?) in the process.

Iain

[quoted text, click to view]
shipping to maintain a backup server in case the primary SQL 2000 goes down.
I understand the implications of using log shipping vs replication or
clustering, but one of the specs of the system is to have the backup server
be one to two hours behind the primary server.
[quoted text, click to view]
how to get data from the primary to the backup server, but it hasn't talked
about synching the primary to the backup server if the primary server does
in fact go down and the backup has to be promoted. Are there any best
practices on this subject? One of my concerns is having to have both the
primary and backup down at the same time while resynching the primary to the
backup, and I want to minimize this time as much as possible.
[quoted text, click to view]

AddThis Social Bookmark Button