I am about to setup a SQL Server 2014 on a Windows Server 2012. Starting from best performance on the drive I formatted the drive with 64k allocation unit size.
Now I am stuck using Diskpart to set the perfect offset. As far as I understand I have 63 hidden sectors and to align it with my formatting I can use an offset of 1024k , did I get the right?
Anyway when I list my partition afterwards I get this result:
Using command line wmic partition get BlockSize, StartingOffset, Name, Index
I get a starting offset of 135266304
Some websites/blogs recommend 32K other do recommend 1K for 2012, whom can I trust? Currently I have issues understanding it correctly. May the force (you) enlighten me?
Best Answer
Windows server 2008 and up will have new partitions aligned out of the box.
KB 929491 has documented starting offset of 2,048 sectors (1 megabyte) - which covers most of SANs.
Kendal van Dyke has done some testing here.
Just for the sake of future readers, dbatools.io has a function Test-DbaDiskAlignment.ps1
Refer: Disk Partition Alignment Best Practices for SQL Server