Some background on this post: A few weeks back I started to create a Log Shipping process on two databases from a primary server to my seconday server. In order to mirror the Primary's database(s) location, I had enough knowledge to create a new default location on the Secondary server's M:\ drive. In other words, the original databases were on the E:\ drive and now these new databases are on the M:\ drive. After a few days of monitoring the log shipping process it appears to be working just fine.
But this is not the case.
I recently noticed that these two newly created databases on the Secondary server are viewed in the sys.database_files as residing on the M:\ drive (note, the sys databases are shown to be on the E:\ drive). Great! This is exactly what
I expected. However, these two files are also showing up in the sys.master_files but on the E:\ drive. Apparently I did not move these over properly (and probably dealing with duplicate names) and I'm afraid that my Log Shipping process really
isn't working after all.
So how to proceed with this clean up? Do I wipe out the two databases on the M:\ drive and run some clean up code for the E:\ drive databases?
A few additional comments:
1. The two databases on the 2nd Server as both listed as 'Online' from sys.master_files
2. Rebooting the server did not eliminate the databases (considered these E:\database to be phamtom files)
Brian