Link to home
Start Free TrialLog in
Avatar of Jeremy Weisinger
Jeremy Weisinger

asked on

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]
Settings

[Main Instruction]
Error applying Hard Drive changes

[Content]
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?

Thanks,
MU
Avatar of Cliff Galiher
Cliff Galiher
Flag of United States of America image

How, specifically, are you attempting to add the VHDX to your VM?
Avatar of Jeremy Weisinger
Jeremy Weisinger

ASKER

Hi Cliff,

Failover Cluster Manager -> VM settings -> SCSI controller -> Add hard disk -> browse to the VHDX
SOLUTION
Avatar of Cliff Galiher
Cliff Galiher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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)?

Thanks!
MU
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial