|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: 2 days ago @ 3:23 PM
Points: 554,
Visits: 3,009
|
|
An archiving process that moves data from my prod db to archive an db consumed my entire log drive. Both dbs logs are on the same drive. This is a 2000/SP4 cluster active/passive.
I moved the the active cluster node over, probably a bad idea in hindsight.
Prod is in full recovery mode. Archive in simple.
Right now now archive is in recovery (slow). I attempted to take prod offline to move its log to another drive. This is in progress but taking a long time.
Suggestions welcome...
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: 2 days ago @ 3:23 PM
Points: 554,
Visits: 3,009
|
|
| I managed to shrink my prod logs to create some space. The archive db is still recovering, I'll let it go.
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Yesterday @ 3:18 PM
Points: 37,744,
Visits: 30,025
|
|
Restarting SQL while a process is rolling back (as it would have been after running out of log space) is indeed a bad idea as the rollback then has to finish with the DB unavailable
Wait. There's little else you can do here.
Gail Shaw Microsoft Certified Master: SQL Server 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, May 21, 2013 2:30 AM
Points: 24,
Visits: 143
|
|
Mrs 500
Now i am going to explain why it is taking more time to recovery database?
First Question:It’s not just the amount of transaction logs you need to consider, you also need to take into account the space the transaction log management system will “reserve” to allow for proper transaction rollback. If a transaction generates 100MB of transaction log records, the system will reserve approximately 100MB of empty space in the transaction log to guarantee it can abort the transaction and correctly roll back. It’s a safety mechanism to prevent a database becoming inconsistent. This is why you may have seen the transaction log grow, even though you think you’ve given it enough space for the largest transaction.
So please check the transaction log disk space .otherwise drop the database using master single user mode then resorte the database
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: 2 days ago @ 3:23 PM
Points: 554,
Visits: 3,009
|
|
The archive db did recover. I then shrunk its log. I expanded the prod log to a reasonable size given it normal processing/backup schedule.
Pretty resilent system despite my somewhat misguided actions.
The vednor provided archive process (rbar) clearly needs to be run with smaller date increments.
Thanks
|
|
|
|