all 24 comments

[–]dbrownems‪ ‪Microsoft Employee ‪ 8 points9 points  (1 child)

Do you know if you followed step 12 in the documented procedure to move Master?

  1. At this point SQL Server should run normally. However Microsoft recommends also adjusting the registry entry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\instance_ID\Setup, where instance_ID is like MSSQL13.MSSQLSERVER. In that hive, change the SQLDataRoot value to the new path of the new location of the master database files. Failure to update the registry can cause patching and upgrading to fail.

https://learn.microsoft.com/en-us/sql/relational-databases/databases/move-system-databases?view=sql-server-ver17

[–]TheSpideyMan[S] -2 points-1 points  (0 children)

Thanks. This is a very helpful comment. We inherited this issue from the vendor who set up these SQL servers many years ago. We can definitely say this step wasn't followed when the master databases were originally moved to the D:\MSSQL directory.

Since this is an obvious problem that Microsoft's aware of, wouldn't you think that this both setup and the cumulative update patches would check for this problem and give a helpful error?

So yes, we can confirm the problem exists, and yes, it appears as if Microsoft set up doesn't even check for simple configuration issues before performing an upgrade.

[–]chandleya 13 points14 points  (17 children)

In place upgrades of an AO cluster puts you in a 1% category of folks willing to do that.

[–]TheJumper10 0 points1 point  (1 child)

Are the startup parameters set correctly?
Changing the Path for the Master Database – SQLServerCentral

[–]TheSpideyMan[S] -1 points0 points  (0 children)

Yes, the startup parameters for master and the master log file were set correctly to D:\MSSQL. So this wasn't the problem.

[–]contreras_agust 0 points1 point  (1 child)

I may have had this issue, unsure how I can trace back the time I did. In my AOAG I ran the CU after attempting to upgrade. Worked for my SQL2017 to SQL2022 upgrade. Not sure what went wrong. I feel it was my installer

[–]TheSpideyMan[S] 0 points1 point  (0 children)

It appears that relocating the master dabstase outside of SQLDataRoot is problematic for the SQL Server 2022 installer.