
Allgemein: SQL-Server starten nicht auf Windows 11 Home
Problem
C:\Program Files\Microsoft SQL Server\MSSQL12.VVWSOFTWARE\MSSQL\Log\ERRORLOG
"There have been 256 misaligned log IOs which required falling back to synchronous IO. The current IO is on file C:\Program Files\Microsoft SQL Server\MSSQL12.VVWSOFTWARE\MSSQL\Template Data\master.mdf"
Problematik
SQL-Server kann nur auf Sektorgrößen bis 4096 installiert werden. Einige (wenige) Windows 11-Versionen stellen auf größere Sektorgrößen um. Geprüft werden kann dies per Kommandozeile: CMD (als Administrator) mit dem Befehl "fsutil fsinfo sectorinfo C:"
Normal:
Logische Bytes pro Sektor: 512
Physische Bytes pro Sektor für Unteilbarkeit: 4096
Physische Bytes pro Sektor für Leistung: 4096
Effekt. phys. Bytes/Sektor für Unteilbark. in Dateisystem: 4096
Zu groß:
Logische Bytes pro Sektor: 512
Physische Bytes pro Sektor für Unteilbarkeit: 16384
Physische Bytes pro Sektor für Leistung: 16384
Effekt. phys. Bytes/Sektor für Unteilbark. in Dateisystem: 4096
Lösung
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\stornvme\Parameters\Device" -Name "ForcedPhysicalSectorSizeInBytes" -PropertyType MultiString -Force -Value "* 4095"
