I have a strange question and hope someone can shed some light on the
problem.
First let me give you my scenario. We are using doubletake to replicate our
database server files between the local site and off site. I will name
these servers srv1a (local) and srv1b (remote). It now time to move to new
servers. These servers will be srv2a (local) and 2b (remote).
Currently srv1a replicates to srv1b. The sqlserver service is off on srv1b.
It is only replicating the database files. Works great.
Now the problem. srv1a and srv1b have all the logs and data files on the
d:\ drive. On the new servers (2a and 2b) we will place the log files on
e:\ and the data files on f:\. This is the case for all databases except
the system databases, which will reside all ldf and mdf on f:\.
In order to move to the new servers, as a test we began replicating to srv1a
to svr2a. It placed all the system dbs on srv2a d:\ drive and all other
files in the new structure (e:\ and f:\). There is some work that you must
do to move the master, msdb, model, and temp to the new location (change the
startup parameters and detaching and reattaching some other databases). All
this works great and we have everything up and running.
As part of a sanity check, I ran the following statements
select name, filename from master..sysdatabases where name = 'master'
GO
exec sp_helpdb master.
GO
results are
name filename
master d:\Microsoft SQL
Server\MSSQL\data\master.mdf
(1 row(s) affected)
name db_size owner dbid created
master 22.00 MB sa 1 Aug 6 2000 Status=ONLINE,
name fileid filename
filegroup size maxsize growth usage
master 1 F:\Microsoft SQL Server Data\MSSQL\Data\master.mdf
Primary 19072 KB Unlimited 10% data only
mastlog 2 F:\Microsoft SQL Server Data\MSSQL\Data\mastlog.ldf
NULL 3456 KB Unlimited 10% log only
If you notice that sysdatabases table is showing the master files on D:\ but
sp_help is showing on F:\ F: is the correct location. Also my start
parameters is
-dF:\Microsoft SQL Server Data\MSSQL\Data\master.mdf
-lF:\Microsoft SQL Server Data\MSSQL\Data\mastlog.ldf
-eF:\Microsoft SQL Server Data\MSSQL\Data\ERRORLOG
Any ideas why the two are not showing the same thing? Everything is working
fine and all other databases (sp_helpdb) is correct and sp_helpfile master
is showing the same thing as sp_helpdb master. Since I though sp_helpdb was
querying sysdatabases, I am confused as to why this is happening.
Any help would be greatly appreciated. Sorry for the long post.