I have set up SQL 2014 (also SQL2012) log shipping on a database with multiple filegroups and files. LS has created the physical file names on the secondary server based on the logical filenames which is different to the physical filename. So I have the situation where the information in sysfiles and SSMS, is different to the info in master..syaltfiles, and the filenames on the secondary server are different to those on the primary.
For example where the Logical/ Physical name is
LDATA1 D:\SQLData\PDATA1.mdf
LDATA2 D:\SQLData\PDATA2.ndf
LDATA3 D:\SQLData\PDATA3.ndf
it becomes on the secondary server, also changing the ndfs all to mdfs.
LDATA1 D:\SQLData\LDATA1.mdf
LDATA2 D:\SQLData\LDATA2.mdf
LDATA3 D:\SQLData\LDATA3.mdf
I have tried to pre-create the secondary DB then specify the DB name to restore into but it still happens so the DB must be dropped and recreated by the LS setup. I can't find a way to keep the DB structure that I create on the secondary server, that matches the primary. Can anyone comment or assist please? Thanks in advance.