Why would a SCSQL CLM take an hour+ to complete?
Applies to
- SnapCenter, 4.5+
- SnapCenter Plug-in for Microsoft SQ:L (SCSQL), version 4.5+
- Clone Lifecycle Management (CLM), version 4.5+
Answer
If the Microsoft SQL Server has to perform recovery operations on the cloned database once it is started, this takes as long as it takes. To determine if this occurred, review the Application Event Logs on the SQL server that is the destination for the cloned database. There will be entries like the ones below.
There should be an Information event that explains what process the SQL server was performing during that time. For instance, the one below indicates transactions were rolled back.
11/8/2022 9:54:21 254 Information sql1.demo.netapp.com MSSQLSERVER 3450 Recovery of database '__Clone__0474ee5f-58c7-4fa6-b86e-0d5d261d5414' (13) is 0%% complete (approximately 337528 seconds remain). Phase 2 of 3. This is an informational message only. No user action is required.
.
.
.
11/8/2022 11:29:22 941 Information sql1.demo.netapp.com MSSQLSERVER 3450 Recovery of database '__Clone__0474ee5f-58c7-4fa6-b86e-0d5d261d5414' (13) is 99%% complete (approximately 1 seconds remain). Phase 3 of 3. This is an informational message only. No user action is required.
.
.
.
11/8/2022 11:29:24 879 Information sql1.demo.netapp.com MSSQLSERVER 3014 RESTORE DATABASE successfully processed 0 pages in 6396.332 seconds (0.000 MB/sec).
There should be an Information event that explains what process the SQL server was performing during that time. For instance, the one below indicates transactions were rolled back.
11/8/2022 11:29:23 644 Information sql1.demo.netapp.com MSSQLSERVER 3407 7 transactions rolled back in database '__Clone__0474ee5f-58c7-4fa6-b86e-0d5d261d5414' (13:0). This is an informational message only. No user action is required.
Additional Information
If further details on what occurred during the
'recovery of database'
process is required, please open a case with Microsoft.