Log Shipping with New Filegroup

  • We have log shipping running on our databases to create a warm standby disaster recovery copy. The other day we added a new filegroup and file to one of the databases. After that, the log shipping restore jobs for that database began to fail. The new filegroup was never instantiated on the DR copy.

    Question: is there a series of steps we could take that would allow us to add a filegroup to a log-shipped database and not cause log-shipping to fail? Thanks for any advice.

  • I'm sure I've successfully added files to a database before, and they have been propagated by log shipping.

    Does the same drive letter/folder for the filegroup exist on the secondary server?

  • There is nothing about adding a filegroup that should make log shipping fail. Ians suggestion sounds like a good one.

    what does table msdb..log_shipping_monitor_error_detail say? Perhaps the log was truncated or a log backup taken outside of the logshipping jobs.

    ---------------------------------------------------------------------

  • there is nothing about adding a filegroup that should make logshipping fail. Ians suggestion sounds like a good one.

    what does table msdb..log_shipping_monitor_error_detail say?

    Possibly your tran log was truncated or a log backup was taken outside of the logshipping jobs

    sorry about double post - problems with t'internet

    ---------------------------------------------------------------------

  • Thanks for the reply.

    The source machine's files are on drive F: which does not exist on the target machine. To me this explains why the file wasn't created on the target machine, but not why the filegroup itself wasn't created.

  • Here's the error detail:

    Directory lookup for the file "F:\SQLDATA\scratch2.ndf"

    failed with the operating system error 3(The system cannot

    find the path specified.). File 'testdat2' cannot be

    restored to 'F:\SQLDATA\scratch2.ndf'. Use WITH MOVE to

    identify a valid location for the file. Problems were

    identified while planning for the RESTORE statement.

    Previous messages provide details. RESTORE LOG is

    terminating abnormally.

  • Find out which log backup file is failing, restore that log manually with move and norecovery option, once that is restored, please restart restore job, this should fix your problem.

  • murthykalyani (6/16/2009)


    Find out which log backup file is failing, restore that log manually with move and norecovery option, once that is restored, please restart restore job, this should fix your problem.

    I'm not sure how we use WITH MOVE option when restoring a log backup. can u give some pointers to that?



    Pradeep Singh

  • ps (6/16/2009)


    murthykalyani (6/16/2009)


    Find out which log backup file is failing, restore that log manually with move and norecovery option, once that is restored, please restart restore job, this should fix your problem.

    I'm not sure how we use WITH MOVE option when restoring a log backup. can u give some pointers to that?

    Its similar to restore database command.

    restore log from disk ='backup file' with

    move 'logicalfilename' to 'filelocation',norecovery

    Here logicalfilename is the new file which was created after which transaction log backup was taken for which restore is failing.

    Note:- Move option has to be mentioned only for new files that were created not for files that were restored.

  • Thanks. will try this out today 🙂



    Pradeep Singh

Viewing 10 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic. Login to reply