|
Windows Disk Alignment - Creating new Aligned Volumes |
|
|
|
|
Written by Tom Hirt
|
|
Saturday, 11 April 2009 17:34 |
|
Page 3 of 3
Creating new Aligned Volumes
Most RAID configurations will write data in 64KB chucks (64KB = 128 sectors). However, per Microsoft KB 929491 you should consider using an offset of at least 2048 sectors (1024 KB) to cover SAN configurations. You're actual RAID/LUN configuration might dictate something else altogether so additional research should be made to ensure your starting sector aligns with your RAID/LUN configuration.
For most though, the 2048 sector offset is a safe bet. We’ll use the diskpart utility to create a new partition aligned at 2048 (1024 KB) but you should double check with your SAN administrator and/or server administrator to verify the offset of your configuration.
- Note: You must be running Service Pack 1 or later (diskpart was not included in earlier distributions)
- Run diskpart from the command line (start -> run -> cmd)
C:\>diskpart
Microsoft DiskPart version 5.2.3790.3959 Copyright (C) 1999-2001 Microsoft Corporation. On computer: Server01
DISKPART>
|
- List the disks available on your system
DISKPART> list disk
|
| Disk ### |
Status |
Size |
Free |
Dyn |
Gpt |
| ------------- |
---------- |
------------ |
------------ |
------ |
------ |
| Disk 0 |
Online |
10 GB |
8033 KB |
|
|
| Disk 1 |
Online |
2047 MB |
2047 MB |
|
|
|
| DISKPART> |
|
- Select the number of the disk you wish aligned
DISKPART> select disk 1
Disk 1 is now the selected disk.
DISKPART>
|
- Create a new partition aligned at 1024KB (sector 2048)
DISKPART> create partition primary align=1024
DiskPart succeeded in creating the specified partition.
DISKPART>
|
- Assign the drive a letter
DISKPART> assign letter=e
DiskPart successfully assigned the drive letter or mount point.
DISKPART>
|
- Exit diskpart and format the disk using disk management. Run compmgmnt.msc

- From Disk Management, right click the new volume and select format

- Enter your desired formatting defaults and click ok

- Confirm the format

- Run the Disk Alignment Check Utility to verify the alignment of your new partition
Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Device ID: Disk #0, Partition #0 ============================================= Number Of Blocks: 20948697 Block Size: 512 KB Total Volume Size: 10 GB Type: Installable File System Starting Offset: 32256 (31.5 KB) Disk Alignment: NOT ALIGNED!!
Device ID: Disk #1, Partition #0 ============================================= Number Of Blocks: 4174852 Block Size: 512 KB Total Volume Size: 2 GB Type: Installable File System Starting Offset: 1048576 (1024 KB) Disk Alignment: Aligned
|
Congratulations, you've now aligned your new volume! Just make sure you follow this guide for any new volumes that are created with RAID and LUN volumes and you'll be able to rest easy knowing that your getting the best possible I/O performance within Windows.
Add this page to your favorite website
|
|
Last Updated on Tuesday, 23 June 2009 15:23 |