探す
Close this search box.

共有

共有

共有

見る

How To Take A Windows Server Offline For Repair

There are two primary ways to take a server offline for repair, as outlined in this Microsoft article. You can use either Windows Admin Center or Windows PowerShell. Both involve nearly the same steps to pause the server’s actions and temporarily move data to other machines so that service isn’t interrupted while the server is down for repairs. 

We’ll go through those steps here. 

Windows Admin Center

Windows Admin Center is the easiest way to power down for a data center server repair. 

1. Select the server using the Windows Admin Center interface. Go to Tools > Storage > Disks and make sure the Status reads Online.

2. Check Storage > Volumes and verify that each volume’s Status is OK そして Health is Healthy. If everything checks out, it’s safe to proceed. 

3. Connect to the cluster and use the Cluster Manager to navigate to Tools > Compute > Servers > Inventory. Find the name of the server you need to pause and hit Pause

4. If a warning prompt appears asking if you want to pause the server, click Yes

5. The server’s Status should now read In maintenance, draining. Wait a few minutes for the Admin Center to finish migrating the server’s roles and virtual machines to other servers in the cluster. 

6. Pay attention to any alerts that pop up. Typically these will state that a volume is unhealthy and it isn’t safe to proceed. Otherwise, if everything goes well, the Status will show In maintenance, Drain completed when the migration has finished. 

7. Put all disks into maintenance mode.

8. Now it is safe to power down the server and complete your repairs. 

9. To resume use of the server after you’re done repairing it, you’ll need to power it back on and wait a few minutes for it to boot. 

10. Take the disks out of maintenance mode. 

11. In the Cluster Manager, go to Tools > Compute >Servers > Inventory. Find the name of the server and select Resume

12. Wait for roles and virtual machines to migrate back to the original server, and for any new data changes to be synchronized. This could take several minutes. Be sure to wait for this process to complete before following these steps to perform data center server maintenance on any other servers in the cluster. 

13. Double-check that syncing has completed by going to Tools > Storage > Volumes and verifying that the Health column once again shows Healthy そしてその Status column shows OK

Windows PowerShell

The steps for taking a server offline using PowerShell are nearly equivalent to the steps for Windows Admin Center, but you’ll need to enter commands to achieve the same goals. 

1. Check that all volumes are healthy before you begin by typing Get-VirtualDisk into PowerShell. Your volumes should be listed in the results, and you can verify that the HealthStatus for each is Healthy and the OperationalStatus reads OK. 

2. Use an administrator account to run the Suspend-ClusterNode -Drain command.

3. Certain software versions (Azure Stack HCI, version 21H2 or Windows Server 2022) will automatically put the disks into maintenance mode after you issue the -Drain command above. However, other versions (Azure Stack HCI, version 20H2, Windows Server 2019, or Windows Server 2016) do not, in which case you’ll need to do it manually. 

For Windows Server 2019 or Azure Stack HCI, version 20H2, run:

Get-StorageScaleUnit -FriendlyName “Server1” | Enable-StorageMaintenanceMode

For Windows Server 2016, run: 

Get-StorageFaultDomain -Type StorageScaleUnit | Where-Object {$_.FriendlyName -eq “Server1”} | Enable-StorageMaintenanceMode

4. Wait for the server to finish draining. When the process is finished, PowerShell will show that the server is Paused

5. Use Stop-Computer to shut the server down. 

6. Complete your repairs once the server is fully powered down. 

7. Power the server on and allow it time to reboot. 

8. If you’ve manually put the disks into maintenance mode, you’ll need to manually take them out of maintenance mode now. 

For Windows Server 2019 or Azure Stack HCI, version 20H2, run: 

Get-StorageScaleUnit -FriendlyName “Server1” | Disable-StorageMaintenanceMode

For Windows Server 2016, run: 

Get-StorageFaultDomain -Type StorageScaleUnit | Where-Object {$_.FriendlyName -eq “Server1”} | Disable-StorageMaintenanceMode

9. Resume the server by transferring the server’s roles and virtual machines back to where they originated. Run Resume-ClusterNode -Failback Immediate and wait for PowerShell to report that the server is Up

10. Wait for any changes in stored data to resync back to the server. If you run Get-StorageJob and see processes listed as Running, you need to wait longer. If the command doesn’t return anything, the resync is complete. 

11. When syncing is complete, use Get-VirtualDisk to check that each volume’s HealthStatus is Healthy once again. 

おすすめの投稿

テックリフト

The 7 Top Data Center Trends for 2024

Data centers play a crucial role in allowing enterprises to process, access, and store mission-critical data for their daily operations. As the world sees

ホワイトペーパーをダウンロードするには、以下の情報を入力してください

データセンター移行ガイド

ホワイトペーパーをダウンロードするには、以下の情報を入力してください

データセンター安全ガイドブック

ホワイトペーパーをダウンロードするには、以下の情報を入力してください

データセンターでIT部門を移動するためのベストプラクティス

ホワイトペーパーをダウンロードするには、以下の情報を入力してください

データセンター機器の取り扱いに関するベストプラクティス

ホワイトペーパーをダウンロードするには、以下の情報を入力してください

データセンター統合アクションプランホワイトペーパー

ホワイトペーパーをダウンロードするには、以下の情報を入力してください

データセンター吊り上げ装置の購入