Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

SQL database restore operation fails on Linux servers


View products that this article applies to.

Symptoms

When you try to restore an SQL database on a Microsoft SQL Server 2017 Linux server, the operation fails during the restore process and returns an error message that resembles the following:

"MODIFY FILE encountered operating system error 31(A device attached to the system is not functioning.) while attempting to expand the physical file"

↑ Back to the top


Cause

This problem may occur because the hard disk has run out of space. On Linux servers, SQL Server does not check the available space before the operation starts. 

↑ Back to the top


Workaround

To work around this problem, restore the database on a volume that has enough space.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


References

Learn about the terminology that Microsoft uses to describe software updates.

↑ Back to the top


Keywords: Backup, restoring, and recovery of a database, kbContentAuto, kbSupportTopic

↑ Back to the top

Article Info
Article ID : 4519691
Revision : 9
Created on : 9/12/2019
Published on : 9/12/2019
Exists online : False
Views : 133