Windows Server 2016 – How to Mirror a Disk in Core Edition

windowswindows-server-2016windows-server-core

I have a server with 2 identical hard drives. I installed windows server 2016 core on the 1 rt hard drive and now I would like to mirror (raid 1) the content of this hard drive on the hard Drive 2. How to do this from the command line ?

Best Answer

This can be done from administrative tools --> disk management, but if you want it from command prompt, you can use diskpart.

1st step is to convert the disks to dynamic:

select disk 1
convert dynamic
select disk 2
convert dynamic

Then, you must select the required to be mirrored volume(s) and assign the second disk:

select disk 1
select volume 1* 
add disk=2

*Make sure the volume you select is the desired one.

Other helpful commands:

list disk
list partition
Related Topic