Shrink log file in a specific database which in Mirror/Synchronized/Restoring state

  • Hi All,

    I wonder how do I shrink log file in a specific database which in Mirror/Synchronized/Restoring state

    So that database is in Mirror server ( High availability )

    Log file is so big ( 155 GB )

    I am looking forward your feedback . I really appreciate it

    cheers

  • The DBCC SHRINKFILE command will be mirrored from the principal to the mirrored database. I think you can just shrink the principal database!

  • Thx for the reply ...much appreciate it !

    Nah that what i wanted to do actually ..but i see principal database also at status syncronize / restoring ...

    Any idea?

    I am thinking to stop mirroring , shrink it .

    What do u think ?

  • You can't shrink log on mirrored db directly without removing mirror.

    I think You should do log backup on the principle server regularly so that the log space can be reused.

    have U shrunk the principle server before?

  • I just shrank log file in principal last nite 😀

    I pause mirror session , shrank , and continue mirroring

    It worked well 😀

Viewing 5 posts - 1 through 4 (of 4 total)

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