Reconstruct Software RAID (Windows)

Please Note:

The text on this page was translated by translation software. A revised version from our editors will be available soon.

For Dedicated Server Windows

We show you how to restore the software RAID on your Dedicated Server Windows.

RAID recovery is necessary if one of the disks has been replaced due to a defect.

Step 1

Start the Windows Rescue system on your server.

Step 2

In the console, type diskpart and then list disk to view an overview of the disks.

C:\Users\Administrator>diskpart

Microsoft DiskPart version 6.3.9600

Copyright (C) 1999-2013 Microsoft Corporation.
On computer: VM0797FC0

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online           40 GB      0 B   *
  Disk 1    Online           40 GB    40 GB
  Disk M0   Missing            0 B      0 B   *  

In this example, disk 1 is the new hard disk (easily recognizable by the missing * in the Dyn column). M0, on the other hand, is the defective (and already replaced) hard disk.

In the further course of this manual we will show you how to convert the new hard disk into a dynamic disk, remove the old disk from the configuration and rebuild the RAID.

step 3

Use the select disk command to set the focus on the new hard disk. In the case of disk 1, the command would be as follows:

DISKPART> select disk 1   Disk 1 is now the selected disk.
Step 4

Enter the convert dynamic command to convert the volume to a dynamic volume:

DISKPART> convert dynamic
 
DiskPart successfully converted the selected disk to dynamic format.
Step 5

Enter the list volume command to display an overview of the volumes.

DISKPART> list volume
 
  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0         System Rese  NTFS   Mirror       350 MB  Failed Rd  System
  Volume 1     C                NTFS   Mirror        39 GB  Failed Rd  Boot
Step 6

Look for volumes that have the status failed. Select them one by one and remove the swapped disk with the command break.

For example, if M0 is the swapped disk and the volumes 0 and 1 have the status Failed, enter the following commands in sequence:

DISKPART> select volume 0
Volume 0 is the selected volume.
 
DISKPART> break disk=M0 nokeep
DiskPart successfully broke the mirror volume.
DISKPART> select volume 1
Volume 1 is the selected volume.
 
DISKPART> break disk=M0 nokeep
DiskPart successfully broke the mirror volume.
Step 7

You can still check the result with list volume. The status should now be Healthy:

DISKPART> list volume
 
  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0         System Rese  NTFS   Simple       350 MB  Healthy    System
  Volume 1     C                NTFS   Simple        39 GB  Healthy    Boot

Furthermore, you can see from the Simple type that it is no longer a RAID volume. You change this with the following steps.

Step 8

Select the affected volumes one after the other and add the new hard disk to them using add disk.

For example, to add disk 1 to volumes 0 and 1, type the following commands:

DISKPART> select volume 0
 
Volume 0 is the selected volume.
 
DISKPART> add disk=1
 
DiskPart succeeded in adding a mirror to the volume.
DISKPART> select volume 1
 
Volume 1 is the selected volume.
 
DISKPART> add disk=1
 
DiskPart succeeded in adding a mirror to the volume.
Step 9

The RAID is automatically rebuilt. Depending on the number and size of the files, this can take up to several hours.

You can call up the current status again with list volume.

DISKPART> list volume
 
  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0         System Rese  NTFS   Mirror       350 MB  Healthy    System
* Volume 1     C                NTFS   Mirror        39 GB  Rebuild    Boot
Step 10

Delete the defective hard disk from the configuration. For example, if this is M0, enter the following commands:

DISKPART> select disk M0
 
Disk M0 is now the selected disk.
 
DISKPART> delete disk
 
DiskPart successfully deleted the missing disk.
Step 11

If the first hard disk (disk 0) has been replaced, you must rewrite the Windows bootloader. To do this, end the disk part by entering exit and then execute the following commands on the command line:

bcdedit /set {default} device partition=c:
bcdedit /set {default} osdevice partition=c:
bcdedit /set {bootmgr} device partition=c:
Step 12

Now you can boot the server back into normal mode.

Please note: If you reboot the server before the RAID is fully built, the rebuild will continue after the reboot. In regular server operation, however, this can take more time and affect the general server performance in the meantime.

Tip: You can track your server's boot history from the serial console to identify potential reboot issues. To learn how to log in to the console, click here.