0

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 files
  • E:\ for Logs files
  • F:\ 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...

RolandoMySQLDBA
185k34 gold badges327 silver badges541 bronze badges
asked Sep 29, 2014 at 17:55

1 Answer 1

0

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.

answered Sep 29, 2014 at 18:15
2
  • I mean to have different drives mounted in folders, not show them as D:,円 E:,円 etc. show them as mounted folders. Commented Sep 29, 2014 at 18:35
  • 1
    Ah! 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. Commented Sep 29, 2014 at 18:42

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.