SQL Logshipping - Eventus (1)
SQL Logshipping - Eventus (1)
Objective: Set up SQL log shipping between VWMUTMSQL1 (Primary/Source) and VWCHTMSQL1
(Secondary/Destination) for Apex Central and Apex One.
Primary Server: PMUTMEXSI01 (Host) -> VWMUTMSQL1 (VM, DC)
Secondary Server: PCHTMEXSI01 (Host) -> VWCHTMSQL1 (VM, DR)
Application: Apex Central and Apex One Security Appliances
Components Involved
Requirements
Primary Server (PMUTMEXSI01 - VWMUTMSQL1): SQL Server 2022 installed and running with the Apex
databases.
Secondary Server (PCHTMEXSI01 - VWCHTMSQL1): SQL Server 2022 installed and ready to receive log
shipped backups.
Network Connectivity: Both servers must be able to communicate over the network.
Storage: Adequate storage on both servers for database backups and logs.
Permissions: Proper SQL Server permissions for log shipping configuration.
USE [master];
-- On Primary Server
-- On Secondary Server
WITH NORECOVERY;
Step 3: Bring the Secondary Database Online
1. Restore Database with RECOVERY:
On the secondary server, bring the secondary database online by restoring it with the RECOVERY
option.
USE [ApexCentralDB];
GO
3. Job Details:
1) Primary Server Jobs:
Backup Job: [Specify job name, schedule]
2) Secondary Server Jobs:
Copy Job: [Specify job name, schedule]
Restore Job: [Specify job name, schedule]
4. Alert Configuration:
Alerts set up for backup job failures, copy job failures, and restore job failures.
Notification method (e.g., email, SMS) and recipients.
Maintenance Documentation
1. Routine Checks:
Daily checks of the log shipping status using SQL Server Management Studio (SSMS).
Verification of SQL Server Agent jobs on both primary and secondary servers.
2. Backup Verification:
Ensure that backups are being created as per the schedule.
Check for any failed backup jobs and rectify issues immediately.
3. Log File Management:
Regularly clean up old log backup files to manage disk space.
Implement a retention policy for transaction log backups.
4. Test Failover and Failback Procedures:
Schedule regular (e.g., quarterly) failover tests to ensure the secondary server can be brought
online.
Document each failover test with steps taken, issues encountered, and resolutions.
Test failback procedures to ensure the primary server can resume its role after an outage.
5. Performance Monitoring:
Monitor the performance impact of log shipping on both primary and secondary servers.
Adjust schedules and configurations as needed to optimize performance.
6. Update Documentation:
Keep all configuration and maintenance documents up to date.
Document any changes made to the log shipping configuration or schedules.