How to take S2D disks out of maintenance mode

ppinfrageek 141 Reputation points
2025-01-27T16:28:54.8166667+00:00

We have a three-node storage space direct hyper-converged cluster running Windows Server 2022 and we are having difficulty taking the disks out of maintenance mode after the server was patched.

The following command does nothing:

Get-StorageFaultDomain -Type StorageScaleUnit | Where-Object {$_.FriendlyName -eq "<NodeName>"} | Disable-StorageMaintenanceMode

CleanShot 2025-01-27 at 16.27.23@2x it shows a new line and does not error out but the disks remain in the same state - How can we take the disks out of maintenance mode?

CleanShot 2025-01-27 at 16.21.04@2x

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,730 questions
Windows Server Storage
Windows Server Storage
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Storage: The hardware and software system used to retain data for subsequent retrieval.
669 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ian Xue - MSFT 39,626 Reputation points Microsoft Vendor
    2025-02-03T08:11:51.2733333+00:00

    Hi ppinfrageek,

    Thanks for your post. It seems that the S2D has stuck in maintenance mode. Please try the following methods and see if it works.

    1. Repair-ClusterS2D -DisableStorageMaintenancemode

    Azure Stack HCI PhysicalDisks won't go out of storage maintenance mode - jtpedersen.com IT made simple

    1. If you are certain it is not an issue and just cosmetic / false labellin

    you can clear the flags to set your disks to show 'OK' in the Windows Admin Centre.

    We were experiencing this exact issue where the WAC was showing 'Stopping maintenance mode, OK' however checking Get-StorageJob, Get-ClusterStorageSpacesDirect + Get-StorageHealthReport, Get-PhysicalDisk from PowerShell which stated disk operational status as OK and no jobs running so presumed this was cosmetic from the WAC. The step involved importing a PowerShell script, identifying the disks concerned and repeating a command for each affected disk. The script to import is called 'Clear-PhysicalDiskHealthData.ps1' downloadable from https://go.microsoft.com/fwlink/?linkid=2034205 .

    You can then run Get-PhysicalDisk | Select-Object SerialNumber,UniqueID to show all your disks IDs. Once you have the ID of the disk you want to resolve run Clear-PhysicalDiskHealthData -Intent -Policy -UniqueID xxxxx -Verbose -Force (replacing xxxxx with your disk ID.

    Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.