Restore database on Azure VM fails

  • pooyan_pdm

    Hall of Fame

    Points: 3007

    I'm trying to restore a database containing memory optimized tables to a standard edition of SQL Server 2017 on an Azure virtual machine (win server 2016), also the database files would be located on Azure Premium Storage Account on the same region (once it successfully gets restored) and not on the disks attached to the VM. The database size is around 1TB and the database has a single memory optimized table with the total memory optimized size of around 30GB. The virtual machine I'm trying to restore the db on is a large isolated VM with nothing else running on it. It has 256GB of memory and 8 CPU cores.

    On every attempt the restore fails when it gets to around 96% and while trying to read the memory optimized checkpoint files from the backup and construct them on the Azure Storage Account.

    URL = '',
    URL = '',
    URL = '' ,
    URL = ''
    MOVE 'datafile' TO '',
    MOVE 'logfile' TO '',
    MOVE 'InMemory_Data_XTP_0' TO '',
    MOVE 'InMemory_Data_XTP_1' TO '',
    MOVE 'InMemory_Data_XTP_2' TO '',
    MOVE 'InMemory_Data_XTP_3' TO '',
    MOVE 'InMemory_Data_XTP_4' TO '',
    MOVE 'InMemory_Data_XTP_5' TO '',
    MOVE 'InMemory_Data_XTP_6' TO '',

    error message:

    Msg 3013, Level 16, State 1, Line 5
    RESTORE DATABASE is terminating abnormally.The operating system returned the error '1450(Insufficient system resources exist to complete the requested service.)' while attempting 'FileHandleCache::OpenFile' on '$HKv2/{0532D36E-D8E0-418D-9374-48F52D97850E}.hkckp' at 'filecache.cpp'(839).

    These are CFP or Checkpoint File Pares that store the memory optimized data on disk, the maximum file size for this table is just around 600MB, I noticed on each attempt the failure happened on random files even on some small delta file with just 8MB in size. It usually successfully restores the CFPs in "inMemory_data_xtp_0", "inMemory_data_xtp_1", "inMemory_data_xtp_2" containers but fails while trying to restore the files in 4th or 5th container.

    I didn't find anything on Google related to this, the closest thing was a few old KBs suggesting to tweak some Windows registry keys to change the pooled/un-pooled memory on the windows side, but I'm not sure that's the right way to go as it was for Win 2003 and I also monitored the pooled/un-pooled memory consumption through task manager and it didn't exceed 300MB during the restore.

    Any suggestion or guidance is greatly appreciated.


    • This topic was modified 4 months, 3 weeks ago by  pooyan_pdm.



    SSC Guru

    Points: 112473

    Replies to this thread please

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply