无法使用文件'C:\Program \Microsoft\MSSQL11.SQLEXPRESS\MSSQL\ Data\master.mdf‘,因为它最初是用扇区大小4096格式化的,现在位于扇区大小为32768的卷上。将文件移动到扇区大小相同或小于原扇区大小的卷。
这就是错误。fsutil输出看起来像
C:\windows\system32>fsutil fsinfo sectorinfo c:
LogicalBytesPerSector : 512
PhysicalBytesPerSectorForAtomicity : 32768
PhysicalBytesPerSectorForPerformance : 32768
FileSystemEffectivePhysicalBytesPerSectorForAtomicity : 4096
Device Alignment : Aligned (0x000)
Partition alignment on device : Aligned (0x000)
No Seek Penalty
Trim Supported
Not DAX capable
Not Thinly-Provisioned其他版本的也会返回类似的错误。我在这件事上唯一发现的是大约10年前有人攻击了它,而微软确定戴尔正在为它发布一个BIOS更新。但是..。10年前,这是一款带有三星991 NVMe驱动器的惠普。
发布于 2022-01-12 22:16:34
可能是在这里.我不得不做一些注册表更改,现在我可以看到:
LogicalBytesPerSector : 512
PhysicalBytesPerSectorForAtomicity : 4096
PhysicalBytesPerSectorForPerformance : 4096
FileSystemEffectivePhysicalBytesPerSectorForAtomicity : 4096
Device Alignment : Aligned (0x000)
Partition alignment on device : Aligned (0x000)
No Seek Penalty
Trim Supported
Not DAX capable
Not Thinly-Provisioned我正在删除Server并重新安装,因为在这之后,Server仍然无法启动,但是由于错误不同,而且老实说,我认为它安装得并不正确/完全,不管怎么说,第一次安装都会出现问题。
此页有一些关于扇区大小的信息。在“决议”下,有一个注册表条目,您可以使用它将其强制返回到4k最大扇区大小。我已经添加了,重新启动,我得到了上面的。
卸载Server,然后重新安装之后,一切正常。
基于另一个链接,这似乎是Windows 11特有的一个问题,我希望很多人很快就会遇到这个问题。
在这里粘贴注册表条目,以防其他站点/post丢失。
REG ADD "HKLM\SYSTEM\CurrentControlSet\Services\stornvme\Parameters\Device" /v "ForcedPhysicalSectorSizeInBytes" /t REG_MULTI_SZ /d "* 4095" /fhttps://dba.stackexchange.com/questions/306012
复制相似问题