Skip to content

Commit c8d63e1

Browse files
authored
Merge pull request #4967 from vin-yu/patch-4
Adding Note for setting new masterdb file location if mdf/ldf cannot be found
2 parents c86b6ba + 2a8dcb0 commit c8d63e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/linux/sql-server-linux-configure-mssql-conf.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ To change these settings, use the following steps:
193193
```bash
194194
sudo systemctl start mssql-server
195195
```
196+
197+
> [!NOTE]
198+
> If SQL Server cannot find master.mdf and mastlog.ldf files in the specified directory, a templated copy of the system databases will be automatically created in the specified directory, and SQL Server will successfully start up. However, metadata such as user databases, server logins, server certificates, encryption keys, SQL agent jobs, or old SA login password will not be updated in the new master database. You will have to stop SQL Server and move your old master.mdf and mastlog.ldf to the new specified location and start SQL Server to continue using the existing metadata.
196199
197200

198201
## <a id="masterdatabasename"></a> Change the name of master database files.
@@ -216,7 +219,7 @@ The **filelocation.masterdatafile** and **filelocation.masterlogfile** setting c
216219

217220
```bash
218221
sudo mv /var/opt/mssql/data/master.mdf /var/opt/mssql/data/masternew.mdf
219-
sudo mv /var/opt/mssql/data/mastlog.ldf /var/opt/mssql/data /mastlognew.ldf
222+
sudo mv /var/opt/mssql/data/mastlog.ldf /var/opt/mssql/data/mastlognew.ldf
220223
```
221224

222225
1. Start the SQL Server service:
@@ -226,6 +229,7 @@ The **filelocation.masterdatafile** and **filelocation.masterlogfile** setting c
226229
```
227230

228231

232+
229233
## <a id="dumpdir"></a> Change the default dump directory location
230234

231235
The **filelocation.defaultdumpdir** setting changes the default location where the memory and SQL dumps are generated whenever there is a crash. By default, these files are generated in /var/opt/mssql/log.

0 commit comments

Comments
 (0)