How can I use DiskPart to create a mirrored disk?
March 18, 2003
A. You can use the DiskPart utility from the Windows 2000 Server Resource Kit or the Win2K Professional Resource kit to either create a new mirrored disk or mirror an existing disk. (Be aware that Windows XP doesn't support mirrored disks.) To create a new mirrored disk, perform the following steps:
Download and install the DiskPart utility from the Microsoft Web site.
Go to Start, Run, then type
cmd
to start a command-line session.
Type
diskpart
to start a DiskPart session.
Type
list disk
to list the current disks. The list will look like
Disk ### Status Size Free Dyn Gpt -------- ------ ---- ------- ---- --- Disk 1 Online 28 GB 6621 MB * Disk 2 Online 12 GB 12 GB * Disk 3 Online 29 GB 29 GB *
Type
select disk 2
to select disk 2 as the disk on which you want to create the mirror.
Type
create volume simple size=100
to create a new volume.
Type
add disk 3
to add disk 3 as the new disk that will become the mirror.
To add a mirrored disk to an existing disk, perform the following steps:
Download and install the DiskPart utility from the Microsoft Web site.
Go to Start, Run, then type
cmd
to start a command-line session.
Type
diskpart
to start a DiskPart session.
Type
list disk
to list the current disks. The list will look like
Disk ### Status Size Free Dyn Gpt -------- ------ ---- ------- ---- --- Disk 1 Online 28 GB 6621 MB * Disk 2 Online 12 GB 12 GB * Disk 3 Online 29 GB 29 GB *
Type
select disk 1
to select disk 1 as the existing disk that you want to mirror.
Type
list partition
to list the current partitions. The list will look like
Partition ### Type Size Offset ------------- ------------ ------- ------ Partition 1 Dynamic Data 10 GB 32 KB Partition 2 Dynamic Data 6001 MB 10 GB Partition 3 Dynamic Data 6001 MB 16 GB Partition 4 Dynamic Data 6621 MB 21 GB
Type
select partition
to select the partition for which you want to add a mirrored disk.
Type
add disk
to add a new disk, which will mirror the disk you selected in Step 5.
About the Author
You May Also Like