I have a log shipped database, and I want to create a new NDF file in another disk for moving historic tables to that NDF file. My goal is to free some space in the MDF file because the disk that the MDF resides is getting full.
I have a doubt and is: if I create the NDF file in a disk in the primary server that the secondary server does not have: does the log shipping process will fail?
If yes, how can I avoid this?
Best Answer
If logshipping paths are same on the primary and secondary servers then adding an
ndf
will be seamless.If the paths are different on primary and secondary servers then
ndf
file on primary usingALTER DATABASE db_name ADD FILE..
Manually restore the log file (from above step) using the
Once above steps are successful, enable all the backup, copy and restore jobs for the database. All the subsequent backup, copy and restore jobs should be successful now.