Tuesday, May 15, 2012

Error when creating mirrored (RAID 1) drives on Windows 7

Error:
"The operation failed to complete because the Disk Management console view is not up-to-date. Refresh the view by using the refresh task. If the problem persists close the Disk Management console, then restart Disk Management or restart the computer."
Solution:
Shrink the volume then extend it - then add the mirror.

Use CMD to create mirror:

Run CMD (as Administrator)
Enter: DISKPART
DISKPART> list disk

  Disk ###  Status      Size     Free     Dyn  Gpt
  --------  ----------  -------  -------  ---  ---
  Disk 0    Online        30 GB      0 B
  Disk 1    Online         8 GB  8189 MB
  Disk 2    Online         8 GB  8189 MB


For the purposes of this tutorial we will be creating a mirrored volume based on a set consisting of disks 1 and 2. The mirrored volume is created by first creating a simple volume on the first disk and then adding a second disk to the mirrored set.
The first volume is created using the create volume command combined with the disk= directive. The size of the volume may also be specified using the size= directive. Omission of the size= option will cause diskpart to create volume which occupies all the available space on the designated disk. For example:
DISKPART>create volume simple disk=1
Having created the first volume on disk 1 the next step is to add the mirror volume on disk 2. This is achieved using the add command as follows:

add disk=2

The list volume command may be used to verify the new configuration:

DISKPART> select volume 2
DISKPART> format fs=ntfs label="Mirrored Volume"

  100 percent completed

DiskPart successfully formatted the volume.


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.