hyper-v-core

There are two new hard drive added to the server with Hyper-V. The task – to create Software based RAID. We use the command-line utility DISKPART.

1. Watch what sees the system discs

DISKPART>list disk
  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          931 GB   931 GB
  Disk 1    Online          931 GB   931 GB
  Disk 2    Online          465 GB      0 B

Two new hard drive is “Disk 0” and “Disk 1”

2. Make drives 0 and 1 dynamic

DISKPART>select disk 0
  Disk 0 is now the selected disk.
DISKPART> convert dynamic
  DiskPart successfully converted the selected disk to dynamic format.
DISKPART>select disk 1
  Disk 0 is now the selected disk.
DISKPART> convert dynamic
  DiskPart successfully converted the selected disk to dynamic format.

3. create the mirrored partition, format, assign the letter “F”

DISKPART> create volume mirror disk=0,1
  DiskPart successfully created the volume.
DISKPART> format FS=NTFS LABEL="1Tb" quick
  100 percent completed
  DiskPart successfully formatted the volume.
DISKPART> assign letter=F
  DiskPart successfully assigned the drive letter or mount point.

4. See what happened

DISKPART> list volume
  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  -------
  Volume 0     E                       DVD-ROM         0 B  No Media
  Volume 1         System Rese  NTFS   Partition    100 MB  Healthy    System
  Volume 2     C                NTFS   Partition     48 GB  Healthy    Boot
  Volume 3     D   DATAGb       NTFS   Partition    416 GB  Healthy
* Volume 4     F   1Tb          NTFS   Mirror       931 GB  Healthy
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *