Win2003 Server disk mirror volume management articles

  
                              


In the previous article "Win2003 Server Image Volume Unveiled", we introduced how to create a RAID 1 mirrored volume in Windows Server 2003. This article will then introduce how to The mirrored volume created by this system is managed. The management of mirrored disk volumes in Windows Server 2003 systems mainly includes the following aspects.

First, the mirrored volume is divided into two volumes

Because the mirrored volume only uses half of the disk space after all, when the disk space is tight, do not want to use the mirrored volume, we can interrupt the original Create a mirrored volume that splits the mirrored volume into two separate volumes. There are also two methods: "Windows interface" and "command line". Introduced separately below.

1. Windows interface mode

Step 1, enter the "Disk Management" interface, right click on the mirrored volume of one of the mirror copies to be interrupted, and then select "interrupted mirror volume" Option, the system will pop up the prompt box as shown below.


Step 2, click the "Yes" button, the system will automatically interrupt the mirror. At this point, the two volumes of the original volume that make up the mirrored volume become two separate simple volumes. These volumes are no longer fault tolerant. The volume copy that you clicked to break the mirrored volume still retains the drive letter or mount point while assigning the next available drive letter to the other volume. As shown below.

2. Command Line

1 the first step, into the command prompt, type: diskpart command.

Step 2. At the DISKPART prompt, type the :list volume command and note the volume number of the mirrored volume.

Step 3. At the DISKPART prompt, type: the select volume n command to select the mirrored volume to be interrupted as two separate volumes.

Step 4. At the DISKPART prompt, type the :detail volume command and note the disk number of the mirrored volume to be interrupted for two independent volumes.

Step 5. At the DISKPART prompt, type: break disk n command to interrupt the mirror. Applies only to dynamic disks. Split the mirrored volume into two simple volumes. These volumes are no longer fault tolerant. A disk with disk number n will receive focus so that you can assign a drive letter to it. This command has no effect if the specified disk is a system or boot volume. The other disk will retain the drive letter and any mount points that belong to the mirrored volume.
Second, remove the image from the mirrored volume

"Delete the mirrored volume" is somewhat similar to the "interrupted mirror" described earlier, but not exactly the same. Interrupt only interrupts the mirroring relationship between two disk volumes. The deleted mirrored volume here is performed for one mirrored volume. Other mirrored volumes are deleted at the same time. However, since there is no longer a mirrored disk, no mirroring is successful. The specific methods of this management task also have two methods: "Windows interface" and "command line". Introduced separately below.

1. Windows interface mode

Step 1, select the mirror volume to be deleted in the "Disk Management" interface, right click, and then select the "delete mirror" option, the following figure pops up Show dialog box. In this dialog box, you are asked to choose to delete the disk where the mirrored volume resides.


Step 2, after selecting the disk, click the “Delete Mirror” button, the system will prompt the user again, asking the user to confirm. The disk management view after deleting the image is shown below. Here, the mirrored volume with the disk symbol "D" on the original disk 0 is deleted, and the disk volume of the D mirror on disk 1 is still "D", and the data therein is not affected.

[Warning] Once deleted mirrored volume from the mirror, the mirror becomes deleted unallocated space, and the remaining volume is no longer a simple mirrored into the fault tolerant. All data in the deleted image will be deleted.

2. Command Line Mode

Step 1. Enter the command prompt and type: diskpart command.

Step 2. At the DISKPART prompt, type the :list volume command and note the volume number of the mirrored volume.

Step 3. At the DISKPART prompt, type: select volume n command.

Step 4. At the DISKPART prompt, type the :detail volume command and note the disk number that specifies the half of the mirrored volume to be deleted and converted to free space.

Step 5. At the DISKPART prompt, type: break disk n [nokeep]. The "break disk n" command in this command applies only to dynamic disks. Split the mirrored volume into two simple volumes. These volumes are no longer fault tolerant. A disk with disk number n will receive focus so you can assign a drive letter to it.

This command has no effect if the specified disk is a system or boot volume. The other disk will retain the drive letter and any mount points that belong to the mirrored volume. The Nokeep parameter specifies that only one mirrored volume is reserved, and another simple volume is deleted and converted to free space. Both volumes do not receive focus.
Third, reconnect the disk and repair the mirrored volume

If the disk containing the partial mirrored volume has been disconnected, now you want to reuse these mirrored volumes, you can try to reconnect and activate the disk. There are also two ways of "Windows interface" and "command line". Introduced separately below.

1. Windows Interface

First, make sure that the physical disk you are reconnecting is open, plugged in, and connected to your computer. Open or reconnect the physical disk if necessary.

The specific method is very simple. Just go to the “Disk Management” interface, right click on the “lost” or “offline” disk, and then select the “Reactivate Disk” option. If the disk does not return to the "online" state, or if the volume does not return to the "good" state, see the "Replacing a Failed Image with a New Image on Another Disk" in the next section.

2. Command Line Mode

Step 1. Enter the command prompt and type: diskpart command.

Step 2. At the DISKPART prompt, type: the list disk command and note the number of the disk in the "offline" state.

Step 3. At the DISKPART prompt, type the :select disk n command to select the disk that is in the "offline" state.

Step 4. At the DISKPART prompt, type: the online command to bring the offline disk or the volume with focus online.
Fourth, replace the failed image with a new image on another disk

If the disk containing part of the mirrored volume is lost and the volume does not return to the "good" state, it should be on another disk The new image replaces the failed image. There are also two ways of "Windows interface" and "command line". Introduced separately below.

1. Windows interface

Step 1, right click on the image on the "lost" or "offline" disk of the "Disk Management" interface, and then select the "Delete Mirror" option. . Then follow the method described in "Removing Mirrors from Mirrored Volumes" at the second point of this article.

Step 2. Right-click on the volume you want to re-image (not the deleted volume) and select the "Add Mirror" option. The dialog box shown below will appear. After selecting the disk and clicking the "Add Mirror" button, the system will automatically reactivate the original deleted image.

[Note] Before installing a new disk, break the mirror, and then view the system log to determine whether disk or disk controller failure. If the failed image is on a failed controller, installing a new disk on the failed controller does not resolve the issue.

To replace a volume in a mirrored volume, you must have a dynamic disk with at least as much space as the area to be repaired. If you do not have a dynamic disk with enough unallocated space, you will not be able to use the Add Mirror command. (To confirm if there is enough space, right-click the disk, click Properties, and check the size of Unallocated Space. This size may be slightly smaller than in the graph or list view.)

If you are replacing a disk in a mirrored system volume, the replacement disk must be the same as the original disk. Otherwise, if the geometry of the disk is different or the system volume is at a different offset from the disk, a boot failure will occur. You should always test your configuration by trying to boot the operating system from each volume to ensure that the operating system does start up when one of the disks fails.

2. Command Line Mode

Step 1. Enter the command prompt and type: diskpart command.

Step 2. At the DISKPART prompt, type the :list volume command and note the volume number of the mirrored volume.

Step 3. At the DISKPART prompt, type: select volume n command.

Step 4. At the DISKPART prompt, type the :detail volume command and note the disk number that specifies the half of the mirrored volume to be deleted and converted to free space.

In step 5, at the DISKPART prompt, type: break disk n [nokeep] command to interrupt the mirror.

Step 6. At the DISKPART prompt, type: the select volume n command to select the volume containing the volume to be mirrored.

Step 7. At the DISKPART prompt, type: the list disk command and note the disk number of the dynamic disk on which the volume is to be mirrored.

Step 8. At the DISKPART prompt, type the :add disk n command to add a new disk to the image.

Copyright © Windows knowledge All Rights Reserved