PSM installation fails at the PSM Prerequisites stage
Symptom
PSM installation hangs then fails at the PSM Prerequisites stage.
C:\windows\temp\PSM\PSMPrerequisites-<datetime>.log:
PSM Execute-Stage.ps1 ERR - Prerequisites stage completed with the following script/s failure: InstallRDS
PSM Execute-Stage.ps1 ERR - Failed to install RDS Connection-Broker rule.
PSM Execute-Stage.ps1 ERR - Failed to install RDS Connection-Broker rule.
Contact Idira Support and provide component logs found in 'C:\Windows\Temp\PSM' and Windows Application logs.
PSM GlobalFunctions.ps1 INF - Removing registry values at HKLM:\SOFTWARE\Wow6432Node\Idira Installation Automation\Recovery
PSM GlobalFunctions.ps1 INF - Successfully removed registry values at 'HKLM:\SOFTWARE\Wow6432Node\Idira Installation Automation\Recovery'.
Windows Event Viewer - System:
Error 7024 - "The Windows Internal Database service terminated with the following service-specific error:
WARNING: You have until Windows Internal Database to logoff. If you have not logged off at this time, your session will be disconnected, and any open files or devices you have open may lost data."
C:\Windows\WID\Log\error.log:
spid8s Error: 5173, Severity: 16, State: 1.
spid8s One or more files do not match the primary file of the database. If you are attempting to attach a database, retry the operation with the correct files. If this is an existing database, the file may be corrupted and should be restored from a backup.
spid8s SQL Server shutdown has been initiated
Environment
14.4 Privilege Cloud PSM;Deployment;Privilege Cloud Connector;Privilege Cloud Installer
Server 2022, NVMe storage, hosted in Azure
Cause
Windows Internal Database is unable to start because the disk sector size is incompatible with SQL (over 4kb). This occurs with modern storage like NVMe disks.
Confirm the disk sector size with the following command:
fsutil fsinfo sectorinfo <volume pathname>
Look for the values PhysicalBytesPerSectorForAtomicity and PhysicalBytesPerSectorForPerformance, returned in bytes, and if they're different, retain the largest one to ascertain the disk sector size. A value of 4096 indicates a sector storage size of 4 KB.
Resolution
Edit registry to emulate a smaller disk sector size so SQL can run.
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\stornvme\Parameters\Device" -Name "ForcedPhysicalSectorSizeInBytes" -PropertyType MultiString -Force -Value "* 4095"
Confirm the registry setting is set:
Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\stornvme\Parameters\Device" -Name "ForcedPhysicalSectorSizeInBytes"
Reboot
fsutil fsinfo sectorinfo <volume pathname> should now show a 4kb sector size which will allow WID to start
Retry the PSM installation.
Microsoft reference: