Wednesday, March 21, 2012
Log Shipping Monitoring
EXEC msdb..sp_get_log_shipping_monitor_info @.secondary_database_name =
'pubs%'
I get some information regarding [copy_delta] and [load_delta]
I'm pretty sure copy_delta are there number of files copied over from the
source server. I don't know what the load_delta means though. Sometimes it
shows a low number then sometimes it shows a high number. I intially
thought it was the number of transaction logs that got loaded into the
standby server but when that number hits 69 and it only copied 3, it doesn't
make sense. There is also no documenation on BOL or microsoft's web site on
this.
Regards,
Tim
Hi Tim,
Based on my research, load_delta indicates the the difference in minutes
between the last updated date of the last backup file and the last updated
date of the last loaded file. In ths code of the sp_log_shipping_in_sync
stored procedure, which is called in sp_get_log_shipping_monitor_info, you
may see the following codes.
SELECT @.delta = DATEDIFF (mi, @.last_updated, @.compare_with)
Also, the @.last_updated is @.restoredt, which is got from the following
codes.
EXECUTE @.rv = sp_log_shipping_get_date_from_file @._primary_database_name,
@.last_backup_filename, @.backupdt OUTPUT
IF (@.rv <> 0)
SElECT @.backupdt = @.last_backup_last_updated
the@.compare_with is @.backupdt, which is got form the followig codes.
EXECUTE @.rv = sp_log_shipping_get_date_from_file @._primary_database_name,
@.last_loaded_filename, @.restoredt OUTPUT
IF (@.rv <> 0)
SElECT @.restoredt = @.last_loaded_last_updated
Regards,
Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
|||Thanks,
this is exactly what I am looking for.
Regards,
Tim
""Yuan Shao"" <v-yshao@.online.microsoft.com> wrote in message
news:PIofhxLNEHA.928@.cpmsftngxa10.phx.gbl...
> Hi Tim,
> Based on my research, load_delta indicates the the difference in minutes
> between the last updated date of the last backup file and the last
updated
> date of the last loaded file. In ths code of the sp_log_shipping_in_sync
> stored procedure, which is called in sp_get_log_shipping_monitor_info, you
> may see the following codes.
> SELECT @.delta = DATEDIFF (mi, @.last_updated, @.compare_with)
> Also, the @.last_updated is @.restoredt, which is got from the following
> codes.
> EXECUTE @.rv = sp_log_shipping_get_date_from_file @._primary_database_name,
> @.last_backup_filename, @.backupdt OUTPUT
> IF (@.rv <> 0)
> SElECT @.backupdt = @.last_backup_last_updated
> the@.compare_with is @.backupdt, which is got form the followig codes.
> EXECUTE @.rv = sp_log_shipping_get_date_from_file @._primary_database_name,
> @.last_loaded_filename, @.restoredt OUTPUT
> IF (@.rv <> 0)
> SElECT @.restoredt = @.last_loaded_last_updated
> Regards,
> Michael Shao
> Microsoft Online Partner Support
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
>
>
Log Shipping Monitoring
EXEC msdb..sp_get_log_shipping_monitor_info @.secondary_database_name = 'pubs%'
I get some information regarding [copy_delta] and [load_delta]
I'm pretty sure copy_delta are there number of files copied over from the
source server. I don't know what the load_delta means though. Sometimes it
shows a low number then sometimes it shows a high number. I intially
thought it was the number of transaction logs that got loaded into the
standby server but when that number hits 69 and it only copied 3, it doesn't
make sense. There is also no documenation on BOL or microsoft's web site on
this.
Regards,
TimHi Tim,
Based on my research, load_delta indicates the the difference in minutes
between the last updated date of the last backup file and the last updated
date of the last loaded file. In ths code of the sp_log_shipping_in_sync
stored procedure, which is called in sp_get_log_shipping_monitor_info, you
may see the following codes.
SELECT @.delta = DATEDIFF (mi, @.last_updated, @.compare_with)
Also, the @.last_updated is @.restoredt, which is got from the following
codes.
EXECUTE @.rv = sp_log_shipping_get_date_from_file @._primary_database_name,
@.last_backup_filename, @.backupdt OUTPUT
IF (@.rv <> 0)
SElECT @.backupdt = @.last_backup_last_updated
the@.compare_with is @.backupdt, which is got form the followig codes.
EXECUTE @.rv = sp_log_shipping_get_date_from_file @._primary_database_name,
@.last_loaded_filename, @.restoredt OUTPUT
IF (@.rv <> 0)
SElECT @.restoredt = @.last_loaded_last_updated
Regards,
Michael Shao
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.|||Thanks,
this is exactly what I am looking for.
Regards,
Tim
""Yuan Shao"" <v-yshao@.online.microsoft.com> wrote in message
news:PIofhxLNEHA.928@.cpmsftngxa10.phx.gbl...
> Hi Tim,
> Based on my research, load_delta indicates the the difference in minutes
> between the last updated date of the last backup file and the last
updated
> date of the last loaded file. In ths code of the sp_log_shipping_in_sync
> stored procedure, which is called in sp_get_log_shipping_monitor_info, you
> may see the following codes.
> SELECT @.delta = DATEDIFF (mi, @.last_updated, @.compare_with)
> Also, the @.last_updated is @.restoredt, which is got from the following
> codes.
> EXECUTE @.rv = sp_log_shipping_get_date_from_file @._primary_database_name,
> @.last_backup_filename, @.backupdt OUTPUT
> IF (@.rv <> 0)
> SElECT @.backupdt = @.last_backup_last_updated
> the@.compare_with is @.backupdt, which is got form the followig codes.
> EXECUTE @.rv = sp_log_shipping_get_date_from_file @._primary_database_name,
> @.last_loaded_filename, @.restoredt OUTPUT
> IF (@.rv <> 0)
> SElECT @.restoredt = @.last_loaded_last_updated
> Regards,
> Michael Shao
> Microsoft Online Partner Support
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
>
>
Monday, March 19, 2012
Log shipping monitor our of sync SQL Server 2005
I took a shot at reproducing this issue. I could not reproduce the scenario that you describe, but here is some information that may help.
1) Executing sp_refresh_log_shipping_monitor probably hurt more than it helped in this case. There is a bug in this stored procedure that is fixed in SP2 which results in the data that is supposed to be refreshed on the monitor server actually being deleted.
2) After getting my local test monitor server into a bad state, the only way to recover was to remove log shipping and then add it again. When adding it back, you could bypass initializing the secondary database because the primary and secondary are already in synch. After doing this and running through one cycle of backing up a tlog, copy, and restore the monitor server once again had current information on the log shipped database.
Tom
This posting is provided "AS IS" with no warranties, and confers no rights.
Log shipping monitor our of sync SQL Server 2005
I took a shot at reproducing this issue. I could not reproduce the scenario that you describe, but here is some information that may help.
1) Executing sp_refresh_log_shipping_monitor probably hurt more than it helped in this case. There is a bug in this stored procedure that is fixed in SP2 which results in the data that is supposed to be refreshed on the monitor server actually being deleted.
2) After getting my local test monitor server into a bad state, the only way to recover was to remove log shipping and then add it again. When adding it back, you could bypass initializing the secondary database because the primary and secondary are already in synch. After doing this and running through one cycle of backing up a tlog, copy, and restore the monitor server once again had current information on the log shipped database.
Tom
This posting is provided "AS IS" with no warranties, and confers no rights.
Log shipping monitor our of sync SQL Server 2005
I took a shot at reproducing this issue. I could not reproduce the scenario that you describe, but here is some information that may help.
1) Executing sp_refresh_log_shipping_monitor probably hurt more than it helped in this case. There is a bug in this stored procedure that is fixed in SP2 which results in the data that is supposed to be refreshed on the monitor server actually being deleted.
2) After getting my local test monitor server into a bad state, the only way to recover was to remove log shipping and then add it again. When adding it back, you could bypass initializing the secondary database because the primary and secondary are already in synch. After doing this and running through one cycle of backing up a tlog, copy, and restore the monitor server once again had current information on the log shipped database.
Tom
This posting is provided "AS IS" with no warranties, and confers no rights.
Log shipping monitor
I am just setting up log shipping on our new web servers. I have S1
primary, S2 secondary and S3 monitoring. The log shipping is working OK.
Logs are being backed up on S1, being copied to S2 and then loaded
successfully.
In my Log Shipping Monitor, on the Log Shipping Pair Properties Status tab,
the last backup file is still showing first_file_00000000000.trn. The last
file copied and Last file loaded on the are correct. When I am viewing the
monitor thru' EM on S3, and on the Source tab try to view the Backup
Schedule, the button is not disabled but does not display anything. If I
view the monitor thru' EM on S1 and view the Backup Schedule it displays the
schedule.
The only thing I have noticed is that the graphic at the top of the monitor
is showing (LOCAL).dbname --> S2.dbname. I would have expected it to show
S1.dbname --> S2.dbname. Is it trying to look at the backup on (LOCAL) so
looking on S3 which is just the monitoring server.
Anyone else seen this? Thanks for any help you can give me.
ClaireB
Sorry - meant to add I am looking at the graphic on S3.
"ClaireB" wrote:
> Hello,
> I am just setting up log shipping on our new web servers. I have S1
> primary, S2 secondary and S3 monitoring. The log shipping is working OK.
> Logs are being backed up on S1, being copied to S2 and then loaded
> successfully.
> In my Log Shipping Monitor, on the Log Shipping Pair Properties Status tab,
> the last backup file is still showing first_file_00000000000.trn. The last
> file copied and Last file loaded on the are correct. When I am viewing the
> monitor thru' EM on S3, and on the Source tab try to view the Backup
> Schedule, the button is not disabled but does not display anything. If I
> view the monitor thru' EM on S1 and view the Backup Schedule it displays the
> schedule.
> The only thing I have noticed is that the graphic at the top of the monitor
> is showing (LOCAL).dbname --> S2.dbname. I would have expected it to show
> S1.dbname --> S2.dbname. Is it trying to look at the backup on (LOCAL) so
> looking on S3 which is just the monitoring server.
> Anyone else seen this? Thanks for any help you can give me.
> ClaireB
Log shipping monitor
I am just setting up log shipping on our new web servers. I have S1
primary, S2 secondary and S3 monitoring. The log shipping is working OK.
Logs are being backed up on S1, being copied to S2 and then loaded
successfully.
In my Log Shipping Monitor, on the Log Shipping Pair Properties Status tab,
the last backup file is still showing first_file_00000000000.trn. The last
file copied and Last file loaded on the are correct. When I am viewing the
monitor thru' EM on S3, and on the Source tab try to view the Backup
Schedule, the button is not disabled but does not display anything. If I
view the monitor thru' EM on S1 and view the Backup Schedule it displays the
schedule.
The only thing I have noticed is that the graphic at the top of the monitor
is showing (LOCAL).dbname --> S2.dbname. I would have expected it to show
S1.dbname --> S2.dbname. Is it trying to look at the backup on (LOCAL) so
looking on S3 which is just the monitoring server.
Anyone else seen this? Thanks for any help you can give me.
ClaireBSorry - meant to add I am looking at the graphic on S3.
"ClaireB" wrote:
> Hello,
> I am just setting up log shipping on our new web servers. I have S1
> primary, S2 secondary and S3 monitoring. The log shipping is working OK.
> Logs are being backed up on S1, being copied to S2 and then loaded
> successfully.
> In my Log Shipping Monitor, on the Log Shipping Pair Properties Status tab,
> the last backup file is still showing first_file_00000000000.trn. The last
> file copied and Last file loaded on the are correct. When I am viewing the
> monitor thru' EM on S3, and on the Source tab try to view the Backup
> Schedule, the button is not disabled but does not display anything. If I
> view the monitor thru' EM on S1 and view the Backup Schedule it displays the
> schedule.
> The only thing I have noticed is that the graphic at the top of the monitor
> is showing (LOCAL).dbname --> S2.dbname. I would have expected it to show
> S1.dbname --> S2.dbname. Is it trying to look at the backup on (LOCAL) so
> looking on S3 which is just the monitoring server.
> Anyone else seen this? Thanks for any help you can give me.
> ClaireB
Monday, February 20, 2012
Log shipping - moving the monitor server
We have a log shipping pair, and a monitoring server. The monitoring server
is being retired, so I need to find out if there is a way to move/create a
log shipping monitor server on a new server, without effecting the
primary/secondary log shipping pair? Anyone tried this before?
Thanks,
dave
Hi David
I have never tried this, I would expect if your new server is the same name
as the old one and you move the databases using attach/detach from the old
server then it I could be relatively trouble free... but you don't give any
details about the replacement!!!
John
"David Curlewis" wrote:
> Hi all,
> We have a log shipping pair, and a monitoring server. The monitoring server
> is being retired, so I need to find out if there is a way to move/create a
> log shipping monitor server on a new server, without effecting the
> primary/secondary log shipping pair? Anyone tried this before?
> Thanks,
> dave
|||Here the details are then; the server that currently acts as monitor is going
to be "reassigned" to another role, which will require it being completely
rebuilt, arrays reconfigured, SANs changed, etc. It is therefore likely that
I will be able to keep the same server name, and could detach and reattach
the databases.
But what databases contain the replication information, and can they be
successfully re-attached to a new install of SQL? Is it the MSDB database
mainly, or are there tables in Master as well? All servers are running
SQL2000 SP4 on Windows 2003 Server SP1.
Thanks,
Dave
"John Bell" wrote:
> Hi David
> I have never tried this, I would expect if your new server is the same name
> as the old one and you move the databases using attach/detach from the old
> server then it I could be relatively trouble free... but you don't give any
> details about the replacement!!!
> John
|||Log shipping info, on the primary, secondary & monitor boxes, is kept in
the msdb.dbo.log_shipping_* tables. So the msdb database should be the
only DB relevant to log shipping on the monitor box. However, you'll
need to make sure the SQL logins you use for inter-server communication
are the same on the new monitor server (and that login info is stored in
the master database).
If it was me, I'd be thinking about setting up my new monitor box,
restoring the master DB from a backup of your current master DB on the
monitor box (see Restoring the master Database from a Current Backup
<http://msdn.microsoft.com/library/en...kprst_4g4w.asp>)
and then restoring the msdb database (Restoring the model, msdb, and
distribution Databases
<http://msdn.microsoft.com/library/en...kprst_2w1f.asp>).
I'm not sure if that will work (as I haven't tested it before), but that
would be the recovery strategy I'd start with to recover or replace the
monitor box involved in log shipping.
*mike hodgson*
blog: http://sqlnerd.blogspot.com
DavidCur wrote:
[vbcol=seagreen]
>Here the details are then; the server that currently acts as monitor is going
>to be "reassigned" to another role, which will require it being completely
>rebuilt, arrays reconfigured, SANs changed, etc. It is therefore likely that
>I will be able to keep the same server name, and could detach and reattach
>the databases.
>But what databases contain the replication information, and can they be
>successfully re-attached to a new install of SQL? Is it the MSDB database
>mainly, or are there tables in Master as well? All servers are running
>SQL2000 SP4 on Windows 2003 Server SP1.
>Thanks,
>Dave
>"John Bell" wrote:
>
|||Thanks very much for that. I've set up a test environment today, so will
test your proposed restoration strategy next week (Friday afternoon here,
yay!). I will post the results once the testing is completed.
Thanks again,
Dave
"Mike Hodgson" wrote:
> Log shipping info, on the primary, secondary & monitor boxes, is kept in
> the msdb.dbo.log_shipping_* tables. So the msdb database should be the
> only DB relevant to log shipping on the monitor box. However, you'll
> need to make sure the SQL logins you use for inter-server communication
> are the same on the new monitor server (and that login info is stored in
> the master database).
> If it was me, I'd be thinking about setting up my new monitor box,
> restoring the master DB from a backup of your current master DB on the
> monitor box (see Restoring the master Database from a Current Backup
> <http://msdn.microsoft.com/library/en...kprst_4g4w.asp>)
> and then restoring the msdb database (Restoring the model, msdb, and
> distribution Databases
> <http://msdn.microsoft.com/library/en...kprst_2w1f.asp>).
> I'm not sure if that will work (as I haven't tested it before), but that
> would be the recovery strategy I'd start with to recover or replace the
> monitor box involved in log shipping.
> --
> *mike hodgson*
> blog: http://sqlnerd.blogspot.com
|||Hi David
You may want to also check out:
http://support.microsoft.com/default...;en-us;Q314546
http://support.microsoft.com/kb/224071/EN-US/
John
"DavidCur" wrote:
> Thanks very much for that. I've set up a test environment today, so will
> test your proposed restoration strategy next week (Friday afternoon here,
> yay!). I will post the results once the testing is completed.
> Thanks again,
> Dave
> "Mike Hodgson" wrote:
>
|||Restoring just the MSDB database seems to do the trick. On my test system I
setup log shipping, then backed up the MSDB database on the monitoring
server, and uninstalled SQL. Then reinstalled SQL and restored the MSDB
database. The "Log Shipping Monitor" option then became available under
Management in Enterprise Manager, and everything seems to be working
normally. This has been running for a week now without problems.
Thanks everyone!
dave
Log shipping - moving the monitor server
We have a log shipping pair, and a monitoring server. The monitoring server
is being retired, so I need to find out if there is a way to move/create a
log shipping monitor server on a new server, without effecting the
primary/secondary log shipping pair? Anyone tried this before?
Thanks,
daveHi David
I have never tried this, I would expect if your new server is the same name
as the old one and you move the databases using attach/detach from the old
server then it I could be relatively trouble free... but you don't give any
details about the replacement!!!
John
"David Curlewis" wrote:
> Hi all,
> We have a log shipping pair, and a monitoring server. The monitoring server
> is being retired, so I need to find out if there is a way to move/create a
> log shipping monitor server on a new server, without effecting the
> primary/secondary log shipping pair? Anyone tried this before?
> Thanks,
> dave|||Here the details are then; the server that currently acts as monitor is going
to be "reassigned" to another role, which will require it being completely
rebuilt, arrays reconfigured, SANs changed, etc. It is therefore likely that
I will be able to keep the same server name, and could detach and reattach
the databases.
But what databases contain the replication information, and can they be
successfully re-attached to a new install of SQL? Is it the MSDB database
mainly, or are there tables in Master as well? All servers are running
SQL2000 SP4 on Windows 2003 Server SP1.
Thanks,
Dave
"John Bell" wrote:
> Hi David
> I have never tried this, I would expect if your new server is the same name
> as the old one and you move the databases using attach/detach from the old
> server then it I could be relatively trouble free... but you don't give any
> details about the replacement!!!
> John|||This is a multi-part message in MIME format.
--050800070200090007000605
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Log shipping info, on the primary, secondary & monitor boxes, is kept in
the msdb.dbo.log_shipping_* tables. So the msdb database should be the
only DB relevant to log shipping on the monitor box. However, you'll
need to make sure the SQL logins you use for inter-server communication
are the same on the new monitor server (and that login info is stored in
the master database).
If it was me, I'd be thinking about setting up my new monitor box,
restoring the master DB from a backup of your current master DB on the
monitor box (see Restoring the master Database from a Current Backup
<http://msdn.microsoft.com/library/en-us/adminsql/ad_bkprst_4g4w.asp>)
and then restoring the msdb database (Restoring the model, msdb, and
distribution Databases
<http://msdn.microsoft.com/library/en-us/adminsql/ad_bkprst_2w1f.asp>).
I'm not sure if that will work (as I haven't tested it before), but that
would be the recovery strategy I'd start with to recover or replace the
monitor box involved in log shipping.
--
*mike hodgson*
blog: http://sqlnerd.blogspot.com
DavidCur wrote:
>Here the details are then; the server that currently acts as monitor is going
>to be "reassigned" to another role, which will require it being completely
>rebuilt, arrays reconfigured, SANs changed, etc. It is therefore likely that
>I will be able to keep the same server name, and could detach and reattach
>the databases.
>But what databases contain the replication information, and can they be
>successfully re-attached to a new install of SQL? Is it the MSDB database
>mainly, or are there tables in Master as well? All servers are running
>SQL2000 SP4 on Windows 2003 Server SP1.
>Thanks,
>Dave
>"John Bell" wrote:
>
>>Hi David
>>I have never tried this, I would expect if your new server is the same name
>>as the old one and you move the databases using attach/detach from the old
>>server then it I could be relatively trouble free... but you don't give any
>>details about the replacement!!!
>>John
>>
--050800070200090007000605
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Log shipping info, on the primary, secondary & monitor boxes,
is kept in the msdb.dbo.log_shipping_* tables. So the msdb database
should be the only DB relevant to log shipping on the monitor box.Â
However, you'll need to make sure the SQL logins you use for
inter-server communication are the same on the new monitor server (and
that login info is stored in the master database).<br>
<br>
If it was me, I'd be thinking about setting up my new monitor box,
restoring the master DB from a backup of your current master DB on the
monitor box (see <a
href="http://links.10026.com/?link=Restoring">http://msdn.microsoft.com/library/en-us/adminsql/ad_bkprst_4g4w.asp">Restoring
the master Database from a Current Backup</a></tt><tt>) and then
restoring the msdb database (<a
href="http://links.10026.com/?link=Restoring">http://msdn.microsoft.com/library/en-us/adminsql/ad_bkprst_2w1f.asp">Restoring
the model, msdb, and distribution Databases</a></tt><tt>).<br>
<br>
I'm not sure if that will work (as I haven't tested it before), but
that would be the recovery strategy I'd start with to recover or
replace the monitor box involved in log shipping.<br>
</tt>
<div class="moz-signature">
<title></title>
<meta http-equiv="Content-Type" content="text/html; ">
<p><span lang="en-au"><font face="Tahoma" size="2">--<br>
</font></span> <b><span lang="en-au"><font face="Tahoma" size="2">mike
hodgson</font></span></b><span lang="en-au"><br>
<font face="Tahoma" size="2">blog:</font><font face="Tahoma" size="2"> <a
href="http://links.10026.com/?link=http://sqlnerd.blogspot.com</a></font></span>">http://sqlnerd.blogspot.com">http://sqlnerd.blogspot.com</a></font></span>
</p>
</div>
<br>
<br>
DavidCur wrote:
<blockquote cite="mid7F7714F8-B22E-4380-85A5-483A25B73B47@.microsoft.com"
type="cite">
<pre wrap="">Here the details are then; the server that currently acts as monitor is going
to be "reassigned" to another role, which will require it being completely
rebuilt, arrays reconfigured, SANs changed, etc. It is therefore likely that
I will be able to keep the same server name, and could detach and reattach
the databases.
But what databases contain the replication information, and can they be
successfully re-attached to a new install of SQL? Is it the MSDB database
mainly, or are there tables in Master as well? All servers are running
SQL2000 SP4 on Windows 2003 Server SP1.
Thanks,
Dave
"John Bell" wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi David
I have never tried this, I would expect if your new server is the same name
as the old one and you move the databases using attach/detach from the old
server then it I could be relatively trouble free... but you don't give any
details about the replacement!!!
John
</pre>
</blockquote>
</blockquote>
</body>
</html>
--050800070200090007000605--|||Thanks very much for that. I've set up a test environment today, so will
test your proposed restoration strategy next week (Friday afternoon here,
yay!). I will post the results once the testing is completed.
Thanks again,
Dave
"Mike Hodgson" wrote:
> Log shipping info, on the primary, secondary & monitor boxes, is kept in
> the msdb.dbo.log_shipping_* tables. So the msdb database should be the
> only DB relevant to log shipping on the monitor box. However, you'll
> need to make sure the SQL logins you use for inter-server communication
> are the same on the new monitor server (and that login info is stored in
> the master database).
> If it was me, I'd be thinking about setting up my new monitor box,
> restoring the master DB from a backup of your current master DB on the
> monitor box (see Restoring the master Database from a Current Backup
> <http://msdn.microsoft.com/library/en-us/adminsql/ad_bkprst_4g4w.asp>)
> and then restoring the msdb database (Restoring the model, msdb, and
> distribution Databases
> <http://msdn.microsoft.com/library/en-us/adminsql/ad_bkprst_2w1f.asp>).
> I'm not sure if that will work (as I haven't tested it before), but that
> would be the recovery strategy I'd start with to recover or replace the
> monitor box involved in log shipping.
> --
> *mike hodgson*
> blog: http://sqlnerd.blogspot.com|||Hi David
You may want to also check out:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q314546
http://support.microsoft.com/kb/224071/EN-US/
John
"DavidCur" wrote:
> Thanks very much for that. I've set up a test environment today, so will
> test your proposed restoration strategy next week (Friday afternoon here,
> yay!). I will post the results once the testing is completed.
> Thanks again,
> Dave
> "Mike Hodgson" wrote:
> > Log shipping info, on the primary, secondary & monitor boxes, is kept in
> > the msdb.dbo.log_shipping_* tables. So the msdb database should be the
> > only DB relevant to log shipping on the monitor box. However, you'll
> > need to make sure the SQL logins you use for inter-server communication
> > are the same on the new monitor server (and that login info is stored in
> > the master database).
> >
> > If it was me, I'd be thinking about setting up my new monitor box,
> > restoring the master DB from a backup of your current master DB on the
> > monitor box (see Restoring the master Database from a Current Backup
> > <http://msdn.microsoft.com/library/en-us/adminsql/ad_bkprst_4g4w.asp>)
> > and then restoring the msdb database (Restoring the model, msdb, and
> > distribution Databases
> > <http://msdn.microsoft.com/library/en-us/adminsql/ad_bkprst_2w1f.asp>).
> >
> > I'm not sure if that will work (as I haven't tested it before), but that
> > would be the recovery strategy I'd start with to recover or replace the
> > monitor box involved in log shipping.
> >
> > --
> > *mike hodgson*
> > blog: http://sqlnerd.blogspot.com
>|||Restoring just the MSDB database seems to do the trick. On my test system I
setup log shipping, then backed up the MSDB database on the monitoring
server, and uninstalled SQL. Then reinstalled SQL and restored the MSDB
database. The "Log Shipping Monitor" option then became available under
Management in Enterprise Manager, and everything seems to be working
normally. This has been running for a week now without problems.
Thanks everyone!
dave
Log shipping - moving the monitor server
We have a log shipping pair, and a monitoring server. The monitoring server
is being retired, so I need to find out if there is a way to move/create a
log shipping monitor server on a new server, without effecting the
primary/secondary log shipping pair? Anyone tried this before?
Thanks,
daveHi David
I have never tried this, I would expect if your new server is the same name
as the old one and you move the databases using attach/detach from the old
server then it I could be relatively trouble free... but you don't give any
details about the replacement!!!
John
"David Curlewis" wrote:
> Hi all,
> We have a log shipping pair, and a monitoring server. The monitoring serv
er
> is being retired, so I need to find out if there is a way to move/create a
> log shipping monitor server on a new server, without effecting the
> primary/secondary log shipping pair? Anyone tried this before?
> Thanks,
> dave|||Here the details are then; the server that currently acts as monitor is goin
g
to be "reassigned" to another role, which will require it being completely
rebuilt, arrays reconfigured, SANs changed, etc. It is therefore likely tha
t
I will be able to keep the same server name, and could detach and reattach
the databases.
But what databases contain the replication information, and can they be
successfully re-attached to a new install of SQL? Is it the MSDB database
mainly, or are there tables in Master as well? All servers are running
SQL2000 SP4 on Windows 2003 Server SP1.
Thanks,
Dave
"John Bell" wrote:
> Hi David
> I have never tried this, I would expect if your new server is the same nam
e
> as the old one and you move the databases using attach/detach from the old
> server then it I could be relatively trouble free... but you don't give an
y
> details about the replacement!!!
> John|||Log shipping info, on the primary, secondary & monitor boxes, is kept in
the msdb.dbo.log_shipping_* tables. So the msdb database should be the
only DB relevant to log shipping on the monitor box. However, you'll
need to make sure the SQL logins you use for inter-server communication
are the same on the new monitor server (and that login info is stored in
the master database).
If it was me, I'd be thinking about setting up my new monitor box,
restoring the master DB from a backup of your current master DB on the
monitor box (see Restoring the master Database from a Current Backup
<http://msdn.microsoft.com/library/e...bkprst_4g4w.asp> )
and then restoring the msdb database (Restoring the model, msdb, and
distribution Databases
<http://msdn.microsoft.com/library/e...bkprst_2w1f.asp> ).
I'm not sure if that will work (as I haven't tested it before), but that
would be the recovery strategy I'd start with to recover or replace the
monitor box involved in log shipping.
*mike hodgson*
blog: http://sqlnerd.blogspot.com
DavidCur wrote:
[vbcol=seagreen]
>Here the details are then; the server that currently acts as monitor is goi
ng
>to be "reassigned" to another role, which will require it being completely
>rebuilt, arrays reconfigured, SANs changed, etc. It is therefore likely th
at
>I will be able to keep the same server name, and could detach and reattach
>the databases.
>But what databases contain the replication information, and can they be
>successfully re-attached to a new install of SQL? Is it the MSDB database
>mainly, or are there tables in Master as well? All servers are running
>SQL2000 SP4 on Windows 2003 Server SP1.
>Thanks,
>Dave
>"John Bell" wrote:
>
>|||Thanks very much for that. I've set up a test environment today, so will
test your proposed restoration strategy next week (Friday afternoon here,
yay!). I will post the results once the testing is completed.
Thanks again,
Dave
"Mike Hodgson" wrote:
> Log shipping info, on the primary, secondary & monitor boxes, is kept in
> the msdb.dbo.log_shipping_* tables. So the msdb database should be the
> only DB relevant to log shipping on the monitor box. However, you'll
> need to make sure the SQL logins you use for inter-server communication
> are the same on the new monitor server (and that login info is stored in
> the master database).
> If it was me, I'd be thinking about setting up my new monitor box,
> restoring the master DB from a backup of your current master DB on the
> monitor box (see Restoring the master Database from a Current Backup
> <http://msdn.microsoft.com/library/e...bkprst_4g4w.asp> )
> and then restoring the msdb database (Restoring the model, msdb, and
> distribution Databases
> <http://msdn.microsoft.com/library/e...bkprst_2w1f.asp> ).
> I'm not sure if that will work (as I haven't tested it before), but that
> would be the recovery strategy I'd start with to recover or replace the
> monitor box involved in log shipping.
> --
> *mike hodgson*
> blog: http://sqlnerd.blogspot.com|||Hi David
You may want to also check out:
http://support.microsoft.com/defaul...b;en-us;Q314546
http://support.microsoft.com/kb/224071/EN-US/
John
"DavidCur" wrote:
> Thanks very much for that. I've set up a test environment today, so will
> test your proposed restoration strategy next week (Friday afternoon here,
> yay!). I will post the results once the testing is completed.
> Thanks again,
> Dave
> "Mike Hodgson" wrote:
>
>|||Restoring just the MSDB database seems to do the trick. On my test system I
setup log shipping, then backed up the MSDB database on the monitoring
server, and uninstalled SQL. Then reinstalled SQL and restored the MSDB
database. The "Log Shipping Monitor" option then became available under
Management in Enterprise Manager, and everything seems to be working
normally. This has been running for a week now without problems.
Thanks everyone!
dave