Solved

SQL 2012 Mirroring Backing up Transaction Logs

Posted on 2014-11-10
6
304 Views
Last Modified: 2014-12-02
Hi Experts,

Have mirroring setup on 2 SQL 2012 Standard servers which is working fine. I am using Olla Hallengren's Maintenance Solution (https://ola.hallengren.com/sql-server-backup.html) to do the SQL backups of the principal server/database which is working fine.  However when I schedule the transaction log backup it completes successfully but does not backup to the network location. We are not doing differential backups. I have attached the results of the transaction log backup:

Date            11/10/2014 4:45:00 PM
Log            Job History (DatabaseBackup - USER_DATABASES - LOG)

Step ID            1
Server            ServerName
Job Name            DatabaseBackup - USER_DATABASES - LOG
Step Name            DatabaseBackup - USER_DATABASES - LOG
Duration            00:00:01
Sql Severity      0
Sql Message ID      0
Operator Emailed      
Operator Net sent      
Operator Paged      
Retries Attempted      0

Message
Executed as user: DOMAIN_NAME\sql_service. Date and time: 2014-11-10 16:45:01  Server: ServerName  Version: 11.0.5058.0  Edition: Standard Edition (64-bit)  Procedure: [master].[dbo].[DatabaseBackup]  Parameters: @Databases = 'USER_DATABASES', @Directory = '\\domain\sqlbackup$\', @BackupType = 'LOG', @Verify = 'N', @CleanupTime = 72, @Compress = 'Y', @CopyOnly = 'N', @ChangeBackupType = 'N', @BackupSoftware = NULL, @CheckSum = 'Y', @BlockSize = NULL, @BufferCount = NULL, @MaxTransferSize = NULL, @NumberOfFiles = NULL, @CompressionLevel = NULL, @Description = NULL, @Threads = NULL, @Throttle = NULL, @Encrypt = 'N', @EncryptionType = NULL, @EncryptionKey = NULL, @ReadWriteFileGroups = 'N', @OverrideBackupPreference = 'N', @LogToTable = 'Y', @Execute = 'Y'  Source: http://ola.hallengren.com     Date and time: 2014-11-10 16:45:01  Database: DB1  Status: ONLINE  Standby: No  Updateability: READ_WRITE  User access: MULTI_USER  Is accessible: Yes  Recovery model: FULL  Database mirroring role: PRINCIPAL  Log shipping role: PRIMARY  Differential base LSN: 514533000004474400291  Differential base is snapshot: No  Last log backup LSN: 512794000006469300001     Date and time: 2014-11-10 16:45:01  Database: [DB2]  Status: ONLINE  Standby: No  Updateability: READ_WRITE  User access: MULTI_USER  Is accessible: Yes  Recovery model: FULL  Database mirroring role: PRINCIPAL  Log shipping role: PRIMARY  Differential base LSN: 2262382000033032800197  Differential base is snapshot: No  Last log backup LSN: 2262381000008159400001     Date and time: 2014-11-10 16:45:01  Database: [E150]  Status: ONLINE  Standby: No  Updateability: READ_WRITE  User access: MULTI_USER  Is accessible: Yes  Recovery model: FULL  Database mirroring role: PRINCIPAL  Log shipping role: PRIMARY  Differential base LSN: 101922000005126500227  Differential base is snapshot: No  Last log backup LSN: 98752000001354500001     Date and time: 2014-11-10 16:45:01  Database: [LinkedDB2]  Status: ONLINE  Standby: No  Updateability: READ_WRITE  User access: MULTI_USER  Is accessible: Yes  Recovery model: SIMPLE  Differential base LSN: 363000000029400037  Differential base is snapshot: No  Last log backup LSN: N/A     Date and time: 2014-11-10 16:45:01.  Process Exit Code 0.  The step succeeded.
0
Comment
Question by:abhijitm00
  • 3
  • 2
6 Comments
 
LVL 26

Expert Comment

by:Zberteoc
Comment Utility
Why you use this notation:  '\\domain\sqlbackup$\' ?

I don't think you need the $. That is for a driver name not for a folder name. You should use a unc path like:

\\server_name\share\path
0
 

Author Comment

by:abhijitm00
Comment Utility
Sorry thats a hidden share it points to \\servername\sqlbackup$
0
 
LVL 26

Expert Comment

by:Zberteoc
Comment Utility
But why the $?
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 42

Expert Comment

by:EugeneZ
Comment Utility
try  without last '\'

@Directory = '\\domain\sqlbackup$'
0
 
LVL 42

Expert Comment

by:EugeneZ
Comment Utility
also can you check for related messages dbo.CommandLog table?
0
 
LVL 26

Accepted Solution

by:
Zberteoc earned 500 total points
Comment Utility
Here is from Olla Halegren website about directory parameter in the backup procedure:

C:\Backup      Back up to the directory C:\Backup.
C:\Backup, D:\Backup      Back up to the directories C:\Backup and D:\Backup.
\\Server1\Backup      Back up to the network share \\Server1\Backup.
\\Server1\Backup, \\Server2\Backup      Back up to the network shares \\Server1\Backup and \\Server2\Backup.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Suggested Solutions

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now