I know that is a good practice to have data, logs and backups files of SQL Server in different disk, for example
D:\
for Data filesE:\
for Logs filesF:\
for Backup files
If I want to use this disks mounted in folders in C:\
is safe?
For example C:\MSSQL\Data
, C:\MSSQL\Logs
, C:\MSSQL\Backups
respectively...
1 Answer 1
Well, you shouldn't encounter any errors from SQL Server, if that is what you are asking about. SQL Server doesn't care where the files are located. That being said, there are good reasons for having different file types on different drives.
Performance - Having different files on different drives means that there are different sets of drive heads reading the data. Your throughput for simultaneous read/write operations goes up. Especially if you are backing up to the same drive that your data files are on, this will suck.
Maintenance - What happens when your drive fills up because the part of your script that cleans out old backups has failed and now your drive is full? If you had separate drives then just the one then your damage would be limited.
What happens to your backups when your primary drive fails? Are they being taken off to tape somewhere else?
If this is a production server then I strongly encourage you to separate out to at least separate Data and Log drives and backup to a different machine.
-
I mean to have different drives mounted in folders, not show them as D:,円 E:,円 etc. show them as mounted folders.Jorge– Jorge2014年09月29日 18:35:59 +00:00Commented Sep 29, 2014 at 18:35
-
1Ah! What version of SQL Server? SQL 2008 and below require a trace flag (1807) to be set, but 2008 R2 and above will work with it out of the box. But no, you shouldn't encounter any issues providing that everything is stable and performs well.Jonathan Fite– Jonathan Fite2014年09月29日 18:42:07 +00:00Commented Sep 29, 2014 at 18:42