-
Notifications
You must be signed in to change notification settings - Fork 760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot increase mdf file size when using docker volumes on Windows 10 #241
Comments
Downgrading docker to Version 17.09.0-ce-win33 (13620) seems to resolve the issue. This seems to be introduced in the 17.12 release of docker. |
@friism - Do you know if this is related to a known issue/regression on the Docker side in 17.12? |
@twright-msft sorry, I'm out of the loop - what regression? |
See detailed description above in this issue. Basically in 17.12 the database file in a SQL Server on Linux container in a mounted volume on Windows cannot grow in size. Prior versions of Docker worked OK. |
We have recently identified this issue (docker/for-mac#2449), and installed a fix. Expect a fix release really soon. As a temporary workaround, it might work to change the disk size, quit docker, remove the disk image, and reset docker. |
@friism is the fix coming in next version of docker? |
ping @ebriney for status |
I think the issue is due to Linuxkit, dockerd is now running in a container and samba share is only available in this namespace. |
@ebriney @friism I am currently running into the same issue. on Docker for Windows 17.12.0-ce-win47 (15139). I created the container like this:
And when I run it, I get the following error: When can we expect a fix for that? Or is there a workaround? /cc @twright-msft Edit Update: Updating to EDGE release 18.03.0-ce-rc1-win54 (16164) dot not fix the issue. |
@gingters I did tries changing the way we do the mounting in the vm but cannot make it work again. |
@ebriney I am currently creating a test-environment. But I think I can work around that by creating a volume, and then using a temporary container to copy the files from the host into the volume and then attaching the volume to the actual sql server container and run it from there (for eacht test run). However, this is only a work around, and this issue should be fixed. |
This looks like #136 |
This seems to be resolved for me in the 2017-CU7 tag of the docker image. Currently running Docker version 18.03.1-ce-win65 (17513) with a container running mssql-server-linux:2017-CU7 and I am able to successfully restore my databases. |
I get this failure when attempting to restore a database from a bak file of 10,063,164KB in size. For my other database restores, with bak files up to 454,215KB there is not problem. This is for a container started as: Server: |
OS: Windows 10 Pro Version 1709 OS Build 16299.192
Docker: Docker Containers Version 17.12.0-ce-win47 (15139) Channel stable
I have a database where the entire mssql folder it contained inside a docker volume (this is for dev so having all those files someplace I can access is useful). Lately I've had an issue where once the mdf files are created after creating a new DB, they cannot increase the size of the file from when it was created. I tried uninstalling docker and re installing and using a different empty folder for the volume but still no luck. When I change it so that all the database files are contained inside the container everything seems to work fine. Here is the command I use to create the container:
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=Password1" -e "MSSQL_PID=Developer"
-p 1433:1433 -v /C/Users/ranger1230/Documents/SQLDataBase:/var/opt/mssql
-d microsoft/mssql-server-linux:2017-latest
And here is the error message I receive when I try to do something that will require the database files to grow (yes Autogrow is enabled):
TITLE: Microsoft SQL Server Management Studio
Restore of database 'Episerver' failed. (Microsoft.SqlServer.Management.RelationalEngineTasks)
ADDITIONAL INFORMATION:
System.Data.SqlClient.SqlError: MODIFY FILE encountered operating system error 31(A device attached to the system is not functioning.) while attempting to expand the physical file '/var/opt/mssql/data/Episerver.mdf'. (Microsoft.SqlServer.SmoExtended)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=13.0.16106.4+((SSMS_Rel_16_5).170125-2137)&LinkId=20476
BUTTONS:
OK
The text was updated successfully, but these errors were encountered: