Using Diskpart in Windows to Improve I/O Performance
I have successfully deployed OpenFiler as an iSCSI storage platform for many clients. Depending on the hardware utilized I would go as far to say that it is as good as any of the commercial based products available in the market. In my experience it is not as good as EqualLogic (now Dell), but for the price it cannot be beat.
Back to the subject...one of the problems with deployments of a SAN is that Microsoft's Disk Manager by default formats the disk LUN's incorrectly, which misaligns the partition in the storage subsystem, which in turn can cause unnecessary I/O load.
The solution is to use Microsoft's Diskpart.exe utiliy which comes with Windows 2K, XP, 2K3, Microsoft KB 929491 explains.
So for every implementation I run through the following steps to align the partitions before any data is stored.
C:\>diskpart
Microsoft DiskPart version 5.2.3790.3959
Copyright (C) 1999-2001 Microsoft Corporation.
On computer: SILVERCUBE
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ---------- ------- ------- --- ---
Disk 0 Online 93 GB 0 B
Disk 1 Online 93 GB 0 B
Disk 2 Online 98 GB 98 GB
DISKPART> select disk 2
Disk 2 is now the selected disk.
DISKPART> list partition
There are no partitions on this disk to show.
DISKPART> create partition primary align=64
DiskPart succeeded in creating the specified partition.
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
* Partition 1 Primary 98 GB 64 KB
DISKPART> list volume
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 C NTFS Partition 21 GB Healthy System
Volume 1 E BACKUP NTFS Partition 72 GB Healthy
Volume 2 D CD-ROM 0 B Healthy
Volume 3 F DATA NTFS Partition 93 GB Healthy
* Volume 4 Partition 98 GB Healthy
DISKPART> select volume=4
Volume 4 is the selected volume.
DISKPART> assign letter=h
DiskPart successfully assigned the drive letter or mount point.
DISKPART> list volume
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 C NTFS Partition 21 GB Healthy System
Volume 1 E BACKUP NTFS Partition 72 GB Healthy
Volume 2 D CD-ROM 0 B Healthy
Volume 3 F DATA NTFS Partition 93 GB Healthy
* Volume 4 H RAW Partition 98 GB Healthy
DISKPART> exit
Once complete, use Disk Manager in MMC to format and label the partition.

Back to the subject...one of the problems with deployments of a SAN is that Microsoft's Disk Manager by default formats the disk LUN's incorrectly, which misaligns the partition in the storage subsystem, which in turn can cause unnecessary I/O load.
The solution is to use Microsoft's Diskpart.exe utiliy which comes with Windows 2K, XP, 2K3, Microsoft KB 929491 explains.
So for every implementation I run through the following steps to align the partitions before any data is stored.
C:\>diskpart
Microsoft DiskPart version 5.2.3790.3959
Copyright (C) 1999-2001 Microsoft Corporation.
On computer: SILVERCUBE
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ---------- ------- ------- --- ---
Disk 0 Online 93 GB 0 B
Disk 1 Online 93 GB 0 B
Disk 2 Online 98 GB 98 GB
DISKPART> select disk 2
Disk 2 is now the selected disk.
DISKPART> list partition
There are no partitions on this disk to show.
DISKPART> create partition primary align=64
DiskPart succeeded in creating the specified partition.
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
* Partition 1 Primary 98 GB 64 KB
DISKPART> list volume
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 C NTFS Partition 21 GB Healthy System
Volume 1 E BACKUP NTFS Partition 72 GB Healthy
Volume 2 D CD-ROM 0 B Healthy
Volume 3 F DATA NTFS Partition 93 GB Healthy
* Volume 4 Partition 98 GB Healthy
DISKPART> select volume=4
Volume 4 is the selected volume.
DISKPART> assign letter=h
DiskPart successfully assigned the drive letter or mount point.
DISKPART> list volume
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 C NTFS Partition 21 GB Healthy System
Volume 1 E BACKUP NTFS Partition 72 GB Healthy
Volume 2 D CD-ROM 0 B Healthy
Volume 3 F DATA NTFS Partition 93 GB Healthy
* Volume 4 H RAW Partition 98 GB Healthy
DISKPART> exit
Once complete, use Disk Manager in MMC to format and label the partition.

Labels: 2003, Diskpart.exe, iSCSI, SAN, Volume Management, Windows 2000, Windows Storage, XP
