question

sumit agrawal avatar image
sumit agrawal asked

Transaction logs full on Mirroring server

Hi, I have my SQL mirroring set up betweeen two boxes. Today i got errors that My O drive is full on the Mirroring secondary (partner) server. I thas my transaction logs. As we cant run queries on the mirroing secondary server, I wanted to know the resolution for this problem. Any help is much appreciated. SUMIT AGRAWAL
transaction-logmirroring
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
ozamora avatar image
ozamora answered
You might want to backup the database on the secondary node and then issue a backup log for the offending DB (the one taking the most space in the O drive). Then issue a DBCC SHRINKFILE TRUNCATEONLY to truncate the log file. You might want to size it properly afterwards. Also, why are you running out of space? You need more storage assigned for logs.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.