Dbs in recovery state on bootup

mike jakubik 16 Reputation points
2021-09-09T19:04:50.047+00:00

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.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,759 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Tom Phillips 17,716 Reputation points
    2021-09-09T20:27:19.533+00:00

    The SQL Server error log will tell you exactly why the database is in recovery mode.

    0 comments No comments

  2. 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.

    0 comments No comments

  3. 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.

    0 comments No comments