r/SQLServer • u/mssqldbalearn • Apr 05 '26
Question SQL Server DBA Scenario – Need Expert Suggestions I’m currently facing a situation in a Log Shipping Secondary Server and would appreciate guidance from experienced DBAs.
SQL Server DBA Scenario – Need Expert Suggestions
I’m currently facing a situation in a Log Shipping Secondary Server and would appreciate guidance from experienced DBAs.
Current Situation:
- Multiple databases are in RESTORING mode (log shipping secondary)
- Database: ticketingdb
- All transaction log files (".ldf") are located on the E Drive
- E Drive is almost full (less than 1 GB free)
- One log file ("ticketingdb_log.ldf") is ~18 GB
- Important point: E Drive contains only ".ldf" files (no other files to clean up)
Constraints:
- Cannot shrink log file (database in RESTORING state)
- Cannot delete or modify ".ldf" files directly
- Restore jobs are actively running
- Need to avoid unnecessary data loss or major downtime
My Understanding So Far:
- Issue is due to poor file placement (log files on E Drive with limited space)
- Log shipping continuously restores logs, so ".ldf" file size remains large
- Secondary databases in RESTORING mode do not allow direct changes
Looking for Suggestions:
- What is the safest way to immediately free space on E Drive?
- How would you handle this in a production environment?
- Is rebuilding the secondary database on G Drive the best approach?
- Any alternative approach without breaking log shipping?
Appreciate your inputs and real-world experiences!
6
Upvotes
View all comments
Show parent comment
1
u/mssqldbalearn Apr 06 '26
Suppose I shrink the ldf file in the primary server, any issue with the logshipping chain,
Without a stopping copy and restore can I shrink....?