Sql-server – Best practice disk usage for SQL Server

disk-space-utilizationdiskmanagementsql server

I've been reading that it is best practice to place the following on separate disks for performance and safety:

  • tempdb
  • database file
  • log file
  • backup files

When you consider RAID using multiple disks this becomes an enormous amount of physical disks being used.

I understand log files benefiting from being on their own physical disk due to their sequential write pattern but can the other files be separated onto "logical" disks instead of physical ones?

Best Answer

When choosing a solution first you should know the maximum workload that your DB should be ready for.

If you have a product that you are installing, that product will have a recommendation for the setup for different workloads.

If the product is designed internally, then benchmark it, create performance limits and cost. Deploy your application gradually. Remember the GMail invites? They were created to test their application in the wild, but with a controlled number of users.

Separating the data on partitions is almost useless. The only benefit is that the fragmentation will be a little bit more localized, but the DB requests are mostly random access.

Do NOT use RADI5. Use RAID1 or RAID10. May be RAIDZ (ZFS on a iSCSI SAN) if the data integrity is critical.