The SQL Server error log will tell you exactly why the database is in recovery mode.
Dbs in recovery state on bootup
Hi,
Each time i bootup my VM with SQL 2017 some of the DBs are sitting in recovery mode. This prevents our apps from starting properly. It's almost as if it's not shutdown properly or there is something wrong with the attached storage.
Thanks.
4 answers
Sort by: Most helpful
-
-
mike jakubik 16 Reputation points
2021-09-09T20:48:33.117+00:00 I can't find a good reason for this, it's not like the server is crashing, it goes through a clean shut down. All my windows services try to connect to these DBs before the below finishes and fail.
[INFO] redoOpenRangeSegment(): Database ID: [29]. Log recovery open segment scan completed at 000BD4AB:00000650:0003.
[INFO] HkPrintUndoRowStats(): Database ID: [29]. Undo Rows Stats. [UndoRowsSeen] = 0, [UndoRowsMatched] = 0, [InsertRowsMatched] = 0, [InsertRowsSeen] = 0, [UndoRowsAborted] = 0
[INFO] HkQuotaUpdateUserMemoryQuota(): Database ID: [29]. Updated user memory quota from 0 to 34359738368. Updated user memory to borrow from 0 to 65536.
Recovery completed for database SMSActiveService116 (database ID 29) in 143 second(s) (analysis 46 ms, redo 0 ms, undo 0 ms.) This is an informational message only. No user action is required.
-
Seeya Xi-MSFT 16,441 Reputation points
2021-09-14T01:45:02.617+00:00 Hi @mike jakubik ,
Agree with them.
You can see this document: The Memory Optimized Filegroup.
Quote from it:
Once you use a memory-optimized filegroup, you can only remove it by dropping the database. In a production environment, it is unlikely that you need to remove the memory-optimized filegroup.Best regards,
Seeya
If the response is helpful, please click "Accept Answer" and upvote it, as this could help other community members looking for similar queries.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. -
Stacy Clark 21 Reputation points
2021-09-14T06:41:38.977+00:00 Hi,
I will suggest you to read these blogs: https://blog.sqlauthority.com/2015/03/04/sql-server-database-stuck-in-in-recovery-mode-after-restart/
https://dzone.com/articles/resolving-sql-database-stuck-in-recovery-mode