Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

SQL Server Error 1454 Database Mirroring Suspended

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

SQL Server Error 1454 occurs when database mirroring is suspended because the mirror server instance cannot communicate with the principal server or the mirroring session has been manually paused. To resolve this, you must identify the cause of the disconnection—usually network instability, service account permission changes, or manual suspension—and then resume the mirroring session using the T-SQL command ALTER DATABASE [DatabaseName] SET PARTNER RESUME on the principal server.

What You'll Need

  • Administrative access (sysadmin role) to both the Principal and Mirror SQL Server instances.
  • SQL Server Management Studio (SSMS) installed on a workstation with connectivity to both servers.
  • Access to the Windows Event Viewer and SQL Server Error Logs on both instances.
  • Verification of the service accounts used to run the SQL Server services on both nodes.

Step-by-Step

  1. Identify the Current Mirroring State: Open SQL Server Management Studio and connect to the Principal server. Right-click the mirrored database, navigate to Tasks, and select Launch Database Mirroring Monitor. Check the status of the database. If it shows as "Suspended," the mirroring process has stopped sending transaction logs from the principal to the mirror.
  2. Check the SQL Server Error Logs: On both the Principal and Mirror instances, go to Management > SQL Server Logs. Look for entries coinciding with the time Error 1454 appeared. Search for phrases like "Mirroring connection failed," "Timeout expired," or "Login failed for user." This will tell you if the suspension was caused by a network drop, a credential failure, or a manual command.
  3. Verify Network Connectivity: Ensure that the Mirror server can reach the Principal server and vice versa. Use the ping command to check basic connectivity. More importantly, verify that the specific TCP port used for mirroring (default is 5022) is open on both servers' firewalls. You can use the telnet [ServerName] 5022 command to verify that the port is listening and accepting connections.
  4. Validate Service Account Permissions: Mirroring requires the SQL Server service accounts to have permission to connect to each other. If you recently changed the service account from a local account to a domain account, or changed the password, the mirroring session will suspend. Ensure both instances are running under accounts that are recognized by the active directory or have matching local accounts with identical passwords.
  5. Resume the Mirroring Session: Once the underlying connectivity or permission issue is resolved, you must manually tell the principal to start sending logs again. Open a New Query window on the Principal server and execute the following command:
    ALTER DATABASE [YourDatabaseName] SET PARTNER RESUME;
    Replace [YourDatabaseName] with the actual name of your database.
  6. Confirm Synchronization: Return to the Database Mirroring Monitor. The status should change from "Suspended" to "Synchronizing" and eventually to "Synchronized." If it remains in "Synchronizing" for an extended period, check the transaction log size on the principal, as a large volume of accumulated logs may take time to transfer.
  7. Monitor for Recurrence: Keep the Error Log open for several minutes to ensure no new 1454 errors appear. If the session suspends immediately after resuming, it indicates a persistent configuration mismatch or a flickering network connection.

Common Mistakes

One of the most frequent mistakes is attempting to run the RESUME command on the Mirror server instead of the Principal server. The command must be executed on the instance that is currently acting as the source of truth (the Principal). If you are in a high-safety mode setup and a failover has occurred, you must first determine which server is the current Principal before issuing the command.

Another common error is ignoring the transaction log growth on the Principal server while the database is suspended. When mirroring is suspended, the Principal cannot truncate the transaction log because it cannot confirm that the Mirror has received the logs. Administrators often focus solely on the error message and forget to monitor disk space. If the log disk fills up completely, the entire database may become read-only or crash, turning a mirroring issue into a full system outage.

Some users attempt to fix Error 1454 by restarting the SQL Server services. While this can sometimes clear a hung connection, it does not fix the underlying cause (such as a firewall rule or a password change) and can lead to longer downtime during the recovery phase of the database startup.

Tips

To prevent frequent suspensions, consider reviewing your network latency. If the servers are across different data centers, a momentary spike in latency can trigger a suspension in high-safety mode. If your business requirements allow for it, switching to high-performance mode (asynchronous) can reduce the impact of network glitches, although this introduces the risk of small amounts of data loss during a failover.

Implement proactive monitoring using SQL Server Agent Alerts. You can create an alert specifically for Error 1454 that sends an email to the DBA team the moment a suspension occurs. This allows you to react before the transaction logs grow to a critical size.

Always document the service accounts used for mirroring. When passwords expire or domain migrations happen, having a record of which accounts are tied to the mirroring endpoints prevents the "trial and error" approach to fixing permission-based suspensions.

Troubleshooting

If the SET PARTNER RESUME command fails or the database returns to a suspended state immediately, follow these steps in order:

Check Endpoint State: Run SELECT name, state_desc FROM sys.database_mirroring_endpoints; on both servers. If the state is not "STARTED," the endpoint is down. You can start it using ALTER ENDPOINT [EndpointName] STATE = STARTED;. A stopped endpoint is a primary reason why the resume command fails.

Test Permissions Manually: If you suspect a login issue, try to connect to the mirror server from the principal server using the service account credentials. If the account cannot authenticate, you must update the endpoint permissions using the GRANT CONNECT command for the specific service account login.

Handle Log Chain Breaks: In rare cases, if the suspension lasted so long that the logs on the principal were manually truncated or the log chain was broken, you cannot simply resume. You will see an error stating that the mirror is no longer synchronized. In this scenario, you must remove mirroring entirely, take a fresh full backup and transaction log backup of the principal, restore them to the mirror server using the NORECOVERY option, and then re-establish the mirroring partnership.

Verify DNS Resolution: Ensure that the servers are not relying on unstable DNS. If the mirroring was configured using server names, try using static IP addresses in the mirroring configuration to rule out DNS resolution failures as the cause of the suspension.

Frequently Asked Questions

Does Error 1454 mean I have lost data?

No, Error 1454 indicates a suspension of the synchronization process, not data loss. Your data remains safe on the Principal server; however, the Mirror server is no longer up-to-date until the session is resumed and the logs are transferred.

Why is my transaction log growing rapidly during this error?

In high-safety mode, the Principal server keeps all transaction log records that have not yet been sent to and hardened on the Mirror server. Since the mirroring is suspended, these logs accumulate, causing the .ldf file to grow until the connection is restored.

Can I resume mirroring using the SSMS GUI?

Yes, you can right-click the database, select Properties, go to the Mirroring page, and click the "Resume' button if available. However, using the T-SQL ALTER DATABASE command is generally more reliable and provides more specific error messages if the action fails.

What is the difference between "Suspended" and "Disconnected"?

"Disconnected" usually implies a network or service failure where the servers cannot see each other. "Suspended" often implies a logical state where the mirroring has been paused, either by an administrator or by SQL Server due to a specific failure that requires manual intervention to resume.

Will resuming mirroring cause a performance hit?

Initially, yes. When you resume a session that has been suspended for a long time, SQL Server will attempt to push all the accumulated transaction logs to the mirror as quickly as possible. This can increase network traffic and I/O load on both servers until the databases are synchronized.