2017-07-25 522 views
0

我想在Linux(Ubuntu-16.10)安装和设置后更改MSSQL服务器RC1 2017的默认数据目录。无法安装数据目录在Linux中的MSSQL RC1服务器安装程序

我用下面的命令来设置默认数据目录。然后重新启动了mssql服务器。

sudo /opt/mssql/bin/mssql-conf set filelocation.defaultdatadir /mnt/var/opt/mssql/data/ 

systemctl restart mssql-server.service 

在此之后我试图创建一个简单的数据库 “测试”

sqlcmd -s localhost -U sa -P "someStrongPassword" -Q "CREATE DATABASE test" 

错误返回如下:

MODIFY FILE encountered operating system error 31(A device attached to the system is not functioning.) while attempting to expand the physical file '/mnt/var/opt/mssql/data/test.mdf'. CREATE DATABASE failed. Some file names listed could not be created. Check related errors.

错误日志指示OS错误:

/mnt/var/opt/mssql/data/test.mdf: Operating system error 31(A device attached to the system is not functioning.) encountered.

I can not moun以任何方式来处理数据目录。 “/ mnt”目录的权限也设置为777。将默认数据目录更改为任何其他文件夹,完美无缺。这是一个已知或最近与mssql服务器的错误?

+0

Stack Overflow是编程和开发问题的网站。这个问题似乎与题目无关,因为它不涉及编程或开发。请参阅帮助中心的[我可以询问哪些主题](http://stackoverflow.com/help/on-topic)。也许[超级用户](http://superuser.com/)或[数据库管理员堆栈交换](http://dba.stackexchange.com/)将是一个更好的地方要问。 – jww

回答