Being a DBA guy, I like some partitions to be formatted with a 64k allocation unit size. I don't see anything in an unattended xml that supports this; however, I'm adding the formatted VHDX drives before the deployment, so I could use New-DataVHD. Both NTFS and ReFS support 64K, so a 64K switch would work. For more general support, a ALU size parameter would be better.
Expected Behavior
Adding a ALU parameter value of 64KB to New-DataVHD would format a data partition using 64k allocation unit size. The OS drive would still use a 4 KB ALU.
Would there ever be a reason to use a smaller (e.g., 512) or a larger ALU for the OS partition? If so, perhaps the ALU parameter should apply for the data partition on the OS drive as well.
Current Behavior
The allocation unit size is always 4k.
Possible Solution
Add a parameter for the ALU to both New-DataVHD and Initialize-Partition
# Format drive using 4K or 64K allocation unit size rather then the default 4K (Only applies when DiskLayout = Data)
[int]
[ValidateSet(4KB, 64KB)]
$DataALU=4KB,
Update the hashtable in New-DataVHD used to pass values to Initialize-VHDPartition
Being a DBA guy, I like some partitions to be formatted with a 64k allocation unit size. I don't see anything in an unattended xml that supports this; however, I'm adding the formatted VHDX drives before the deployment, so I could use New-DataVHD. Both NTFS and ReFS support 64K, so a 64K switch would work. For more general support, a ALU size parameter would be better.
Expected Behavior
Adding a ALU parameter value of 64KB to New-DataVHD would format a data partition using 64k allocation unit size. The OS drive would still use a 4 KB ALU.
Would there ever be a reason to use a smaller (e.g., 512) or a larger ALU for the OS partition? If so, perhaps the ALU parameter should apply for the data partition on the OS drive as well.
Current Behavior
The allocation unit size is always 4k.
Possible Solution
Add a parameter for the ALU to both New-DataVHD and Initialize-Partition
Update the hashtable in New-DataVHD used to pass values to Initialize-VHDPartition
Update the data partition format code to use the ALU size.
I have not tested this.
Steps to Reproduce (for bugs)
1. 2. 3. 4.
Context
Your Environment