Windows Server 2012 Hyper-V 4k logical sector size on VHDX not able to add to VM

Windows 2012 Standard running Hyper-V (working with a few clusters, 4 node and a 6 node failover clusters)

Equallogic arrays running 7.0.5.

I provisioned a 4k sector size volume and added it as a CSV on the Hyper-V failover cluster.
Running fsutil shows that the attached CSV has both the physical and logical sector size showing as 4096.
I then create a new VHDX from PowerShell to specify the logical sector size.
When I try to attach the VHDX to the SCSI controller on a VM running Windows 2012, I get an "Incorrect Function" error if the VM is running. If the VM is off, I can attach it but the VM will not boot while the VHDX is attached.

I've tried a few different options for creating the VHDX (all result in the same errors):
New-VHD C:\ClusterStorage\CSVTest4K\Test1.vhdx –LogicalSectorSize 4096 –SizeBytes 10GB -Fixed
New-VHD C:\ClusterStorage\CSVTest4K\Test2.vhdx –LogicalSectorSize 4096 –SizeBytes 10GB -Dynamic
New-VHD C:\ClusterStorage\CSVTest4K\Test3.vhdx –LogicalSectorSize 4096 -PhysicalSectorSize 4096 –SizeBytes 10GB -Fixed
New-VHD C:\ClusterStorage\CSVTest4K\Test4.vhdx –LogicalSectorSize 4096 -PhysicalSectorSize 4096 –SizeBytes 10GB -Dynamic
New-VHD C:\ClusterStorage\CSVTest4K\Test5.vhdx –BlockSizeBytes 128MB –LogicalSectorSize 4KB –SizeBytes 1TB -Dynamic

Open in new window

Here's the error message when trying to attach the VHDX to the running VM:
[Window Title]

[Main Instruction]
Error applying Hard Drive changes

Failed to add device 'Virtual Hard Disk'.

Attachment 'C:\ClusterStorage\CSVTest4K\test1.vhdx' failed to open because of error: 'Incorrect function.'.

[Expanded Information]
'VMNAME' failed to add device 'Virtual Hard Disk'. (Virtual machine ID 30FBFCE4-43D1-4B66-9A58-527884D9BE13)

'VMNAME': Attachment 'C:\ClusterStorage\CSVTest4K\test1.vhdx' failed to open because of error: 'Incorrect function.' (0x80070001). (Virtual machine ID 30FBFCE4-43D1-4B66-9A58-527884D9BE13)

From everything I'm reading this should be supported. What am I missing?

LVL 23
Jeremy WeisingerSenior Network Consultant / EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Cliff GaliherCommented:
How, specifically, are you attempting to add the VHDX to your VM?
Jeremy WeisingerSenior Network Consultant / EngineerAuthor Commented:
Hi Cliff,

Failover Cluster Manager -> VM settings -> SCSI controller -> Add hard disk -> browse to the VHDX
Cliff GaliherCommented:
Curious. I cannot reproduce the issue, but I don't have an Equalogic here, but I do have a test lab cluster and native 4k throughout, and all worked well when I tested. 80070001 is usually a lower level storage error. My initial suspicion is that your SAN SMI provider is not exposing fill native 4k functionality to 2012.
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Jeremy WeisingerSenior Network Consultant / EngineerAuthor Commented:
I suppose that could be the case. I may give Dell a call about this then.

And just to clarify, you've created the VHDX from the command line, specifying the logicalsectorsize 4096? And you're running Windows 2012 (not R2)?

Cliff GaliherCommented:
I did spin up my 2012 test cluster, yes, though normally it dormant since my usual test lab is 2012 R2. And yes, I used PowerShell to replicate the environment you have as much as possible.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
We've had many issues with 4k on Equallogic with both Hyper-V and VMware.

At present we do not use it....
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.