Skip to content

Commit f6aa16e

Browse files
Merge pull request #17253 from ManikaDhiman/md-revise-update-docs
Revisions to the upgrade articles
2 parents 1c2e986 + 802d3d5 commit f6aa16e

File tree

4 files changed

+83
-17
lines changed

4 files changed

+83
-17
lines changed

azure-local/upgrade/post-upgrade-steps.md

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Post-upgrade steps on Azure Local via PowerShell
33
description: Learn how to perform the post-upgrade tasks for Azure Local using PowerShell.
44
author: alkohli
55
ms.topic: how-to
6-
ms.date: 10/22/2024
6+
ms.date: 03/03/2025
77
ms.author: alkohli
88
ms.reviewer: alkohli
99
ms.service: azure-local
@@ -31,6 +31,20 @@ Before you begin, make sure that:
3131
- Make sure that all the machines in your system are healthy and show as **Online**.
3232
- You have access to a client that can connect to your system. This client should be running PowerShell 5.0 or later.
3333

34+
## Step 0: Update registry keys
35+
36+
Post-OS upgrade, update registry keys on each machine in the system to ensure that Resilient File System (ReFS) volume upgrade is enabled and metadata validation is turned on.
37+
38+
Run the following command on each machine in the system to update registry keys:
39+
40+
```powershell
41+
# Set RefsDisableVolumeUpgrade to 0
42+
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "RefsDisableVolumeUpgrade" -Value 0 -Type DWord -ErrorAction Stop
43+
44+
# Set RefsEnableMetadataValidation to 1
45+
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "RefsEnableMetadataValidation" -Value 1 -Type DWord -ErrorAction Stop
46+
```
47+
3448
## Step 1: Connect to your system
3549

3650
Follow these steps on your client to connect to one of the machines of your system.
@@ -86,41 +100,50 @@ InstallResults : Microsoft.ClusterAwareUpdating.UpdateInstallResult[]
86100

87101
## Step 3: Perform the post-OS upgrade steps
88102

89-
Once the new OS is installed, you need to upgrade the *cluster functional level* and upgrade the storage pool version using PowerShell in order to enable new features.
103+
Once the new OS is installed, you need to upgrade the cluster functional level and the storage pool version using PowerShell to enable new features.
90104

91105
> [!IMPORTANT]
92106
> - Post-OS upgrade steps are essential for the stability and performance of your system. Make sure to follow these steps after the OS upgrade.
93107
94-
95108
1. Upgrade the cluster functional level.
96109

97110
> [!WARNING]
98111
> After you upgrade the cluster functional level, you can't roll back to the previous operating system version.
99112
100113
We recommend that you upgrade the cluster functional level as soon as possible. Skip this step if you installed the feature upgrades with Windows Admin Center and checked the optional **Update the cluster functional level to enable new features** checkbox.
101114

102-
1. Run the following cmdlet on any machine in the system:
115+
1. Run the following cmdlet on any machine in the system to check the current cluster functional level:
103116

104117
```PowerShell
105-
Update-ClusterFunctionalLevel
118+
Write-Host "Cluster Functional Level = $((Get-Cluster).ClusterFunctionalLevel)"
106119
```
107120
108-
1. You see a warning that you can't undo this operation. Confirm **Y** that you want to continue.
121+
1. Run the following cmdlet on any machine in the system to update the current cluster functional level:
122+
123+
```powershell
124+
Update-ClusterFunctionalLevel -Verbose
125+
```
126+
127+
1. You'll see a warning that you can't undo this operation. Confirm **Y** to continue.
128+
129+
1. Run the following cmdlet to check the new or updated cluster functional level:
130+
131+
```powershell
132+
Write-Host "Cluster Functional Level = $((Get-Cluster).ClusterFunctionalLevel)"
133+
```
109134
110135
1. Upgrade the storage pool.
111136
112-
1. After the cluster functional level is upgraded, use the following cmdlet to identify the `FriendlyName` of the storage pool representing your system.
137+
1. After upgrading the cluster functional level, use the following cmdlet to identify the `FriendlyName` of the storage pool representing your system.
113138
114139
```PowerShell
115-
Get-StoragePool
140+
Get-StoragePool | Where-Object -Property FriendlyName -ne "Primordial"
116141
```
117142
118-
In this example, the `FriendlyName` is **S2D on hci-cluster1**.
119-
120-
1. Run the `Update-StoragePool` cmdlet to upgrade the storage pool version.
143+
1. Use the following cmdlet to update the storage pool. Use the pool name from the output of the previous step.
121144
122145
```PowerShell
123-
Update-StoragePool -FriendlyName "S2D on hci-cluster1"
146+
Update-StoragePool -FriendlyName "<name of the storage pool>" -Verbose
124147
```
125148
126149
1. Confirm the action when prompted. At this point, new cmdlets are fully operational on any machine in the system.

azure-local/upgrade/upgrade-22h2-to-23h2-other-methods.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ The Azure Stack HCI operating system update is available via the Windows Update
3131
To upgrade the OS on your system, follow these high-level steps:
3232

3333
1. [Complete prerequisites.](#complete-prerequisites)
34+
1. [Update registry keys.](#step-0-update-registry-keys)
3435
1. [Connect to your system.](#step-1-connect-to-your-system)
3536
1. Install new OS using one of the other methods:
3637
1. [Manual upgrade of a Failover Cluster using SConfig.](#method-1-perform-a-manual-os-update-of-a-failover-cluster-using-sconfig)
3738
1. [Offline manual upgrade of all machines in a system.](#method-2-perform-a-fast-offline-os-update-of-all-machines-in-a-system)
3839
1. Check the status of the updates.
3940
1. [Perform post-upgrade steps, after the OS is upgraded.](#next-steps)
4041

41-
4242
## Complete prerequisites
4343

4444
Before you begin, make sure that:
@@ -49,6 +49,20 @@ Before you begin, make sure that:
4949
- You have access to the Azure Stack HCI OS, version 23H2 software update. This update is available via Windows Update or as a downloadable media. The media is an ISO file that you can download from the [Azure portal](https://portal.azure.com/#view/Microsoft_Azure_HybridCompute/AzureArcCenterBlade/~/hciGetStarted).
5050
- You have access to a client that can connect to your Azure Local. This client should be running PowerShell 5.0 or later.
5151

52+
## Step 0: Update registry keys
53+
54+
To avoid issues with Resilient File System (ReFS) during OS upgrade, update registry keys on each machine in the system to ensure ReFS volume upgrade is disabled and metadata validation is turned off.
55+
56+
Run the following command on each machine in the system to update registry keys:
57+
58+
```powershell
59+
# Set RefsDisableVolumeUpgrade to 1
60+
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "RefsDisableVolumeUpgrade" -Value 1 -Type DWord -ErrorAction Stop
61+
62+
# Set RefsEnableMetadataValidation to 0
63+
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "RefsEnableMetadataValidation" -Value 0 -Type DWord -ErrorAction Stop
64+
```
65+
5266
## Step 1: Connect to your system
5367

5468
Follow these steps on your client to connect to one of the machines on your system.
@@ -85,7 +99,7 @@ Depending upon your requirements, you can manually update the OS using SConfig o
8599

86100
To do a manual feature update of a failover cluster, use the **SConfig** tool and Failover Clustering PowerShell cmdlets. For more information about **SConfig**, see [Configure a Server Core installation of Windows Server and Azure Local with the Server Configuration tool (SConfig)](/windows-server/administration/server-core/server-core-sconfig).
87101

88-
For each node in the cluster, run these commands on the target node:
102+
For each machine in the cluster, run these commands on the target node:
89103

90104
1. `Suspend-ClusterNode -Node <Node Name> -Drain`
91105

@@ -131,7 +145,6 @@ If there's a critical security update <!--ASK-->that you need to apply quickly o
131145

132146
You're now ready to perform the post-upgrade steps for your system.
133147

134-
135148
## Next steps
136149

137150
- [Learn how to perform the post-upgrade steps for your Azure Local.](./post-upgrade-steps.md)

azure-local/upgrade/upgrade-22h2-to-23h2-powershell.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Upgrade Azure Stack HCI OS, version 22H2 to version 23H2 via PowerShell
33
description: Learn how to use PowerShell to upgrade Azure Stack HCI OS, version 22H2 to version 23H2.
44
author: alkohli
55
ms.topic: how-to
6-
ms.date: 02/03/2025
6+
ms.date: 03/03/2025
77
ms.author: alkohli
88
ms.reviewer: alkohli
99
ms.service: azure-local
@@ -31,6 +31,7 @@ The Azure Stack HCI operating system update is available via the Windows Update
3131
To upgrade the OS on your system, follow these high-level steps:
3232

3333
1. [Complete the prerequisites.](#complete-prerequisites)
34+
1. [Update registry keys.](#step-0-update-registry-keys)
3435
1. [Connect to Azure Local, version 22H2.](#step-1-connect-to-azure-local)
3536
1. [Check for the available updates using PowerShell.](#step-1-connect-to-azure-local)
3637
1. [Install new OS using PowerShell.](#step-2-install-new-os-using-powershell)
@@ -53,6 +54,20 @@ Before you begin, make sure that:
5354
5455
Follow these steps to install the solution upgrade:
5556

57+
## Step 0: Update registry keys
58+
59+
To avoid issues with Resilient File System (ReFS) during OS upgrade, update registry keys on each machine in the system to ensure ReFS volume upgrade is disabled and metadata validation is turned off.
60+
61+
Run the following command on each machine in the system to update registry keys:
62+
63+
```powershell
64+
# Set RefsDisableVolumeUpgrade to 1
65+
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "RefsDisableVolumeUpgrade" -Value 1 -Type DWord -ErrorAction Stop
66+
67+
# Set RefsEnableMetadataValidation to 0
68+
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "RefsEnableMetadataValidation" -Value 0 -Type DWord -ErrorAction Stop
69+
```
70+
5671
## Step 1: Connect to Azure Local
5772

5873
Follow these steps on your client to connect to one of the machines of your Azure Local instance.

azure-local/upgrade/upgrade-22h2-to-23h2-windows-admin-center.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Upgrade Azure Stack HCI OS, version 22H2 to version 23H2 via Windows Admi
33
description: Learn how to upgrade Azure Stack HCI OS, version 22H2 to version 23H2 using Windows Admin Center.
44
author: alkohli
55
ms.topic: how-to
6-
ms.date: 02/03/2025
6+
ms.date: 03/03/2025
77
ms.author: alkohli
88
ms.reviewer: alkohli
99
ms.service: azure-local
@@ -31,6 +31,7 @@ The Azure Stack HCI operating system update is available via Windows Update and
3131
To upgrade the OS on your Azure Local, follow these high-level steps:
3232

3333
1. [Complete the prerequisites](#complete-prerequisites).
34+
1. [Update registry keys.](#step-0-update-registry-keys)
3435
1. [Connect to the Azure Local, version 22H2](#step-1-connect-to-azure-local-via-windows-admin-center).
3536
1. [Check for the available updates using Windows Admin Center.](#step-2-install-operating-system-and-hardware-updates-using-windows-admin-center)
3637
1. [Install the new OS, hardware and extension updates using Windows Admin Center.](#step-2-install-operating-system-and-hardware-updates-using-windows-admin-center)
@@ -49,6 +50,20 @@ Before you begin, make sure that:
4950
> [!NOTE]
5051
> The offline ISO upgrade method is not available when using Windows Admin Center. For these steps, see [Upgrade the operating system on Azure Local via PowerShell](./upgrade-22h2-to-23h2-powershell.md)
5152
53+
## Step 0: Update registry keys
54+
55+
To avoid issues with Resilient File System (ReFS) during OS upgrade, update registry keys on each machine in the system to ensure ReFS volume upgrade is disabled and metadata validation is turned off.
56+
57+
Run the following command on each machine in the system to update registry keys:
58+
59+
```powershell
60+
# Set RefsDisableVolumeUpgrade to 1
61+
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "RefsDisableVolumeUpgrade" -Value 1 -Type DWord -ErrorAction Stop
62+
63+
# Set RefsEnableMetadataValidation to 0
64+
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "RefsEnableMetadataValidation" -Value 0 -Type DWord -ErrorAction Stop
65+
```
66+
5267
## Step 1: Connect to Azure Local via Windows Admin Center
5368

5469
Follow these steps to add and connect to an Azure Local machine via Windows Admin Center.

0 commit comments

Comments
 (0)