Программный рейд windows server 2008

Общие сведения о зеркалировании дисков (RAID 1)

При использовании зеркального рейд-массива два идентичных тома располагаются на двух разных физических дисках. Любые данные, записанные в зеркальный том, фактически записываются на оба диска, чтобы в случае выхода из строя одного из диска, данные были доступны на втором. В отличие от «страйпа», когда за счет распределения одного логического тома на нескольких физических дисках и параллельной поблочной записи/чтения увеличивается скорость ввода-вывода, зеркалирование уменьшает производительность за счет того, что все транзакции записи данных дублируются на каждый диск в массиве.

Создание зеркала (RAID 1), используя «Disk Management»

Для создания зеркального дискового массива диски должны быть преобразованы из обычных в динамические. В этом разделе разберем возможность создания «зеркала» из двух одинаковых жестких дисков в Windows 2008.

Для этого следует запустить «Управление дисками». Это можно сделать из командной строки, выполнив команду compmgmt.msc или из «Пуска», выбрав Storage -> Disk Management.
‭В нашем примере система содержит 3 диска, пронумерованные как 0, 1 и 2 соответственно. Диск 0 является системным, диски 1 и 2 будет использованы для создания «зеркала».
В «Управлении дисками» нажмите правой кнопкой на не размеченной области в графическом отображении первого диска, используемого для зеркального тома. Выберите «New Mirrored Volume…» для запуска мастера создания нового зеркального тома. Нажав «Далее» на приветственном экране, вы попадете в окно выбора дисков. Как говорилось ранее, зеркальный массив должен состоять из двух дисков. В столбце «Selected» мастер отобразит только текущий выбранный диск. Для продолжения требуется более одного диска. Чтобы добавить диск в зеркальный том, выберите второй диск из доступных дисков в левом столбце и нажмите «Добавить»:

После выбора дисков нажмите «Далее» для процедуры создания и назначения тому буквы диска или точки монтирования. Кнопка «Далее» выведет окно «Форматирование тома», где можно выбрать тип файловой системы и возможность сжатия. Для вывода итоговой информации о проделываемой операции нажмите «Далее». Для подтверждения операции нажмите «Закончить»; будет произведено форматирование томов и создание зеркального тома, готового к использованию.

В случае использования всего двух дисков можно получить следующую картину:

И чтобы избавиться от зарезервированной области, которая присутствует только на одном диске, произведем такие действия:
Запустите с административными привилегиями команду

bcdboot c:\windows /s c:

Эта команда создает системный раздел. Более подробная информация по использованию bcdboot есть на техническом сайте Microsoft.
После получения сообщения «Boot files successfully created.» перейдите в управление дисками и пометьте раздел C: как активный. После этого перезагрузитесь и удалите этот том с помощью «Управления дисками»

Создание зеркального (RAID 1) массива в командной строке

Зеркальный том можно создать так же и из командной строки с помощью приложения diskpart. Его можно запустить из открытого окна командной строки или из «Пуска», набрав в строке «diskpart». Появившееся приглашение DISKPART> покажет, что diskpart запущен и готов к работе.
В первую очередь узнаем, какие диски подключены к серверу. Эту информацию можно узнать с помощью команды «list disk»:

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

В качестве примера объединим в зеркальный том диски 1 и 2. Для этого сначала создадим простой том на первом диске и добавим второй диск для зеркалирования.
Первый том создаем с помощью команды «create volume» и параметра «disk=». Размер тома можно задать дополнительным параметром «size=». Без этого параметра diskpart создаст том размером со все доступное дисковое пространства. Например:

DISKPART>create volume simple disk=1

Первый том создан и теперь добавляем в качестве зеркального тома диск 2. Для этого выполняется простая команда:

add disk=2

Для проверки новой конфигурации используйте команду «list volume»:

DISKPART> list volume

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     C                NTFS   Partition     30 GB  Healthy    System
* Volume 1                      RAW    Mirror      8189 MB  Healthy

Как можно увидеть, новый том отображен как «Volume 1» с типом «Mirror». В качестве файловой системы указан «RAW» потому, что еще не произведено форматирование файловой системы. Это можно сделать с помощью того же приложения diskpart:

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

  100 percent completed

DiskPart successfully formatted the volume.

После окончания форматирования, назначьте тому буквенное значение или точку монтирования:
Назначить буквенное значение:

DISKPART> assign letter=E:

DiskPart successfully assigned the drive letter or mount point.

Назначить точку монтирования:

DISKPART> assign mount=\MIRROR

DiskPart successfully assigned the drive letter or mount point.

После успешного завершения всех операций, новый зеркальный том готов к использованию.

Добавление зеркального тома к существующему

Зеркальный рейд-массив можно создать, добавив том к уже существующему, используя управление дисками или diskpart из командной строки. При добавлении зеркала к существующему тому Windows создает второй том идентичного размера и типа файловой системы на втором диске и копирует (этот процесс еще называется синхронизацией) данные в зеркало.
Для зеркалирования существующего тома в управлении дисками нажмите правой кнопкой мыши на том и выберите «Add Mirror» для вызова диалога добавления зеркала:

Окно выше отображает доступные для зеркалирования диски. Выбираете нужный диск и нажимаете «Далее». Может появиться предупреждение, если потребуются дополнительные действия (например, конвертация обычного диска в динамический). Нажмите «Да». Начнется процесс синхронизации и состояние выполнения будет отображаться графически.
Чтобы сделать то же самое из командной строки, запустите diskpart и проверьте наличие требуемых томов командой:

DISKPART> list volume

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     C                NTFS   Partition     30 GB  Healthy    System
  Volume 1     E   My Volume    NTFS   Partition   8189 MB  Healthy

Разберем возможность зеркалирования тома «Volume 1». Диск, куда будет настроено зеркалирование можно увидеть командой «list disk»:

DISKPART> list disk

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

Выше было видно, что Volume 1 имеет размер 8ГБ. Таким образом, для его зеркалирования потребуется диск размером не менее 8ГБ. ‬Заметьте, что если диски не динамические, их потребуется отконвертировать командами:

select disk 1
convert dynamic
select disk 2
convert dynamic

Далее, выбираем нужный том на диске 1:

DISKPART> select disk 1
DISKPART> select volume 2

Volume 2 is the selected volume.

И, наконец, зеркалируем их командой «add=», указав номер диска, используемый для этого (в нашем случае это диск 2):

DISKPART> add disk=2

DiskPart succeeded in adding a mirror to the volume.

После этого Windows Server 2008 начнет синхронизацию, время которой зависит от размера зеркалируемого тома. В процессе синхронизации в списке томов зеркалируемые (с типом Mirror) будут иметь состояние «Rebuild». После окончания — Healthy.

Разборка и удаление зеркального массива дисков

Windows Server 2008 включает в себя функции разборки зеркального рейд-массива (создаются два отдельных и независимых тома, содержащих идентичные данные) и удаления «зеркала» (в этом случае все данные на «зеркале» удаляются).
Чтобы разобрать дисковый массив с помощью «Управления дисками», нажмите правой кнопкой мыши на одном из томов и выберите «Break Mirrored Volume» в появившемся меню.
Из командной строки, в приложении diskpart, используйте команду «break» с указанием на один из двух дисков зеркального рейд-массива:

DISKPART>break disk=2

Для удаления зеркала из массива, удаления всех синхронизированных данных нажмите правой кнопкой мыши на зеркальном томе в «Управлении дисками» и выберите «Remove Mirror». В качестве альтернативы можно использовать команду«break» в diskpart с параметром NOKEEP:

DISKPART>break nokeep disk=2

Восстановление зеркального рейд-массива

Если один из дисков рейд-массива вышел из строя, то даже в этом случае есть хорошая новость — в отличии от «страйпа», все данные, актуальные на момент аварии, остались на втором диске. В этом случае важно заменить сбойный диск и пересобрать зеркало до того, как второй диск перестанет работать.
Нажмите правой кнопкой мыши на поврежденный том и выберите «Remove Mirror». Далее, подключите новый диск достаточного объема для создания зеркала. Правой кнопкой мыши нажмите на рабочем томе из текущего зеркала и выберите «Add Mirror» в появившимся меню, выберите новый диск и нажмите «Add Mirror». Windows пересоберет зеркальный рейд-массив, используя новый диск. Как упоминалось ранее, время пересборки и синхронизации данных зависит от производительности дисков и их объема.

Для управления хардами используем вкладку “Disk Management“, которая доступна в Server Manager и в консоли Computer Management (compmgmt.msc) (Управление дисками). Перед созданием RAID следует преобразовать диски в динамические. Выбираем значок диска в поле внизу и в контекстном меню пункт “Convert to Dynamic Disk” (Преобразовать в динамический диск). Далее отмечаем в появившемся окне “Disk 0” и в окне “Disk to Convert” подтверждаем свой выбор нажатием “Convert” и затем опять ОК. После преобразования диск “Disk Management” будет помечен как “Dynamic”. Эту операцию можно произвести в командной строке при помощи DISKPART.

Вызываем: > diskpart

Смотрим список дисков и некоторые их характеристики:

diskpart> list disk

Подключаем disk 0 и преобразуем его в динамический:

diskpart> select disk 0 Disk 0 is now the selected disk.

diskpart> convert dynamic

DiskPart successfully converted the selected disk to dynamic format.

Внимательно читайте сообщение после выполнения команды, в некоторых случаях выводится “You must reboot your computer to complete this operation“, это значит для завершения операции требуется перезагрузка системы.

C системным диском все. Подключаем второй диск. В том случае, когда статус диска в “Disk Management” показан как Offline, включаем его выбором пункта Online в контекстном меню или аналогичной командой diskpart. Если диск еще не размечен, эту операцию можно произвести при помощи самого “Disk Management” выбрав в меню пункт “Initialize Disk” и затем тип таблицы разделов MBR или GPT. Далее можно преобразовать его в динамический диск самостоятельно или поручить все операции мастерам. Выбираем первый диск и в контекстном меню пункт “Add Mirror”, отмечаем второй диск в появившемся окне, мастер предупредит о том, что он будет преобразован в Dynamic Disk, соглашаемся нажав ОК. Начнется процесс переноса данных на второй диск. По окончании в загрузчик будет добавлена возможность загрузки ОС со второго харда. В командной строке также все просто, правда в отличие от “Disk Management” здесь уже нет подстраховки, и ошибка может привести к потерям данных. Смотрим список томов: diskpart> list volume

Обычно загрузочный первый диск будет 0 томом, выбираем его.

diskpart> select volume 0

Volume 0 is the selected volume.

И создаем зеркало, указав в качестве параметра второй диск.

diskpart> add disk=1

DiskPart succeeded in adding a mirror to the volume.

В процессе создания зеркала поле Status команды “list volume” будет показывать значение “Resynching”, когда оно изменится на “Healthy” процесс закончен.

Skip to content

How to configure software RAID 5 on Windows Server 2008 ?

To make a product RAID 5 in Windows, we require no less than three hard drives of a similar limit, aside from the OS drive. Each of the three disks should be unformatted.

  •  Log in as the Windows Administrator Account.
  • Then go to >> Start >> Administrative Tools >>Computer Management
  • Or run >> ” compmgmt.csc” at the command prompt or in a Run dialog.
  • In the Computer Management, click on ”Disk Management” Or run ‘diskmgmt.msc’ at the command prompt or in a Run dialog.
  • In the Disk Management tool, Right click on each of your new Disks, and select ”Online”
  • Then ”Initialize Disk”
  • All disks should already be selected ==> Then click “OK”
  • Now right click on one of the drives and select ‘New RAID-5 Volume…’
  •  On the wizard’s page click on the ” Next” to proceed to the Disk Selection.
  •  On the ”Select Disks” screen and click,>> “Add ” for the disks you wish to have added to the ‘Selected’ list. Then click >> “Next”
  •  Pick a drive letter for your new RAID5 volume, >> Then click “Next”
  •  On the ‘Format Volume’ screen, change the features would like you.
  • Final stage

This may take some time, Once the process is complete the status will change to Healthy and the RAID 5 volume is ready for use; you do not have to restart the computer.

[tagline_box backgroundcolor=”description=” shadow=”no” shadowopacity=”0.7″ border=”1px” bordercolor=”” highlightposition=”top” content_alignment=”left” link=”” linktarget=”_self” modal=”” button_size=”” button_shape=”” button_type=”” buttoncolor=”” button=”” title=”” description=”If you have any queries regarding software RAID 5 on Windows Server 2008, feel free to leave us a message and our representative will get back to you.

” margin_top=”50px” margin_bottom=”” animation_type=”slide” animation_direction=”left” animation_speed=”0.3″ class=”” id=””]

[/tagline_box]

Share This Story, Choose Your Platform!

Related Posts

Page load link

Go to Top

Software RAID1 Mirroring on Windows 2008

March 28, 2012
Microsoft, Windows

If you don’t have a RAID add-on card (or have RAID capabilities on your motherboard), but you would still like to have some level of redundancy due to hard disk failure, you can set up a software RAID1 array. RAID1, otherwise known as mirroring, simply duplicates all writes to one drive, to another. If one drive fails, you can simply recover using the other.
This is done at a low level, so you wont see two drive letters in windows. You will simply see the one drive letter, and all writes that are performed on that drive are automatically synced to the other.
This guide will outline how to set up RAID1 mirroring on Windows 2008 Server.
Configuring your drives
Make sure that you have a second hard disk the same size, or larger than the one you want to mirror.
Start by opening up “Computer Management” located under “Administrative Tools”.

Click on the “Disk Management” feature located under “Storage” on the tree menu.

If your disk is new/completely blank, there will be no partitions currently set up. If this is the case, you may automatically get asked to Initialize the disk, as per the image below.

If you don’t automatically get prompted, and your second drive says “Not Initialized”, right click the drive you want to mirror to, and select “Initialize disk”.

The Initialize disk screen should now appear.

Select the partition style you want. I tend to sick with the “MBR” format.
Hit “OK” to Initialize the disk.
You should now have the second disk coming up as “Online”.

You will also note in the above screen shot, that both drives are set to “Basic”. To set up mirroring, they need to be set to dynamic.
Right click either of the drives, and select “Convert to Dynamic Disk”.

You will then be asked which drives you want to convert to be dynamic.
Select all disks that you would like to convert. Since I only have two drives in this example, I will be ticking all available drives.

Select “OK” to bring up the confirmation screen.

Once you have verified that these are the ones you cant to convert, hit “Convert” to start the process.
You will get another confirmation screen.Read this one and make sure you understand what its doing. If your second disk is blank, there wont be a operating system on there anyway. If you are dual booting on your main OS drive, you may need to check if that will be effected.
Hit “Yes” to this second confirmation to proceed and actually do the conversion.

The disks should now appear to be both “Online” and “Dynamic”.

Now to actually create the mirror.
Creating the Mirror
Right click the drive/partition you would like to mirror, and select “Add Mirror”. In this example, I will be mirroring C: drive.

You will be asked where you would like to set up the destination for the mirror. Select your second disk (in my case, labeled “Disk 1”).

Press the “Add Mirror” button to start the mirror sync.
The two drives will now sync, and mirror everything from the source partition, to the second drive.
This can be seen by the “Resyncing” label on the partitions.

It should start to show the progress of the re-sync as a percentage as shown below.

This process may take awhile. It would be a good idea to do this while no one is using the system.

Once the re-sync completes, you should have two identical partitions on separate physical drives, constantly mirroring and keeping your data safe in the event of a hard drive failure.
Conclusion
While it is a simple process to create a mirrored volume, keep in mind that this (or any RAID technology) should not replace a good backup routine. If you delete any files on the mirrored drive, they will instantly be deleted on the other mirrored drive. Keep separate backups for these types of scenarios.

Previous Table of Contents Next
Mirroring Windows Server 2008 R2 GBT and MBR Boot and System Disks Windows Server 2008 R2 Remote Desktop (RD) Services

<google>BUY_WINSERV_2008R2</google>

This chapter of Windows Server 2008 R2 Essentials will focus on the creation and management of RAID 5 configurations on Windows Server 2008 R2.

Contents

Contents

  • 1 An Overview of RAID 5
  • 2 Configuring RAID 5 Using Windows Server 2008 R2 Disk Management
  • 3 Configuring RAID 5 from the Command Prompt using DiskPart
  • 4 Fixing RAID 5 Problems

An Overview of RAID 5

<google>WIN28BOX</google>
RAID 5 consists of three or more volumes each located on a separate physical disk. As with RAID 0, RAID 5 also uses disk striping, whereby blocks of data are divided up into stripes with each stripe written to a different disk. RAID 5, however, differs quite considerably from RAID 0. Under RAID 5, not only are the data stripes written, but also parity information relating to the data.

The key to RAID 5 fault tolerance is the fact that the parity information for a particular data stripe is always written to a different drive from the drive containing the corresponding data stripe. This means that if a disk fails, the corresponding parity information stored on another disk can be used for error detection and data correction (also referred to as regeneration).

Whilst RAID 5 has considerable advantages over RAID 0 there are one or two drawbacks that should be taken into consideration when considering this storage option. Firstly, there is the inevitable performance overhead inherent in calculating and storing parity information for each data stripe written to disk. Secondly, the loss of more than one disk in a RAID 5 array will leave insufficient parity data on the remaining disks to regenerate the original data. That said, RAID 5 does provide considerable advantages that generally outweigh the disadvantages.

Configuring RAID 5 Using Windows Server 2008 R2 Disk Management

A Windows Server 2008 R2 based RAID 5 configuration may be configured using either diskpart command line tool or the Disk Management snap-in. This snap-in is accessed either from the Server Manager or Computer Management tools. To launch the Server Manager, open the Start menu and click on the Server Manager option, or click on the Server Manager icon in the task bar. Alternatively launch Computer Management from Start -> All Programs -> Administration Tools -> Computer Management or run compmgmt.csc at the command prompt or in a Run dialog. In all cases the Disk Management tool can be found under the Storage category.

As previously noted, RAID 5 implementation requires a minimum of 3 disk drives. For the purposes of this tutorial a system containing four disk drives is assumed. In this scenario, disk 0 is the system disk and disks 1 through 3 are available for use in the RAID 5 configuration. Before proceeding the disks will need to be initialized using either the MBR or GPT partition style. Assuming these prerequisites are met the first step is to right click on one of the 3 disks in the Disk Management graphical view. In the resulting popup menu select the New RAID-5 Volume… option to invoke the New RAID-5 Volume wizard. On the wizard’s welcome page click on the Next button to proceed to the Disk Selection screen. This screen contains a list of disk drives available for inclusion in the disk array together with a list of selected disks. Currently only the current disk is included in the Selected list. Two more disks must be added to the selected disks before the RAID 5 array can be built. Select disks from the Available list and click on the Add> button to add the disk to the selected list. Once sufficient disks (in this case disks 1, 2 and 3) are selected the Next button will activate to allow the remainder of the configuration to be completed. Note that disk 0 (the system disk) is not included in the RAID 5 array:

Selecting disks for a Windows Server 2008 R2 RAID 5 configuration

With the disk selections completed, the Next button proceeds to the drive letter and mount point assignment screen. Once these settings are configured click Next to proceed to the Format Volume screen. Select the appropriate file system and compression options and click on Next to proceed to the Summary screen. Review the information displayed and click on Finish to initiate the RAID 5 creation process. During this process the Disk Management graphical view will list the disks as Formatting and then Resynching. The amount of time these phases will take depends on the size of the volumes in question. Once the process is complete the status will change to Healthy and the RAID 5 volume is ready for use.

Configuring RAID 5 from the Command Prompt using DiskPart

In addition to configuring RAID 5 from within Disk Management, the configuration may also be implemented from the command prompt using DiskPart. DiskPart may be launched either from a command prompt or a Run dialog simply by typing diskpart. Once invoked, DiskPart will display the DiskPart> command prompt and is ready to receive commands.

The first step in the configuration process is to identify the disks attached to the system using the list disk command:

DISKPART> list disk
  Disk ###  Status      Size     Free     Dyn  Gpt
  --------  ----------  -------  -------  ---  ---
  Disk 0    Online        30 GB    15 GB   *
  Disk 1    Online         8 GB  8189 MB
  Disk 2    Online         8 GB  8189 MB
  Disk 3    Online         8 GB  8189 MB

For the purposes of this chapter disks 1, 2 and 3 will be used to create a RAID 5 configuration. Each of these disks needs to be converted to dynamic disks before the configuration can proceed. This is achieved by selecting each disk in turn and executing the convert dynamic command:

DISKPART> select disk 1
Disk 1 is now the selected disk.

DISKPART> convert dynamic
DiskPart successfully converted the selected disk to dynamic format.

DISKPART> select disk 2
Disk 2 is now the selected disk.

DISKPART> convert dynamic
DiskPart successfully converted the selected disk to dynamic format.

DISKPART> select disk 3
Disk 3 is now the selected disk.

DISKPART> convert dynamic
DiskPart successfully converted the selected disk to dynamic format.

Once the disks have been converted to dynamic disks the next step is to create the RAID 5 volume using the create volume raid command. This command also takes as a parameter the disk= directive followed by a list of disks to be used in the array. The size= directive may also be specified to declare the size of the volume. If this value is omitted the volume will be sized to match the smallest contiguous block of unallocated space on the designated disk drives:

DISKPART> create volume raid disk=1,2,3
DiskPart successfully created the volume.

Once the command has completed and displayed the DISKPART> prompt the system will have begun the resynching process. This can take a considerable amount of time depending on the size of the volume. During this process, the status of the volume will be listed as Rebuild when the list volume command is executed:

DISKPART> list volume
  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  ------
* Volume 0                      RAW    RAID-5        16 GB  Rebuild
  Volume 1     C                NTFS   Simple        15 GB  Healthy    System
  Volume 2     D                       DVD-ROM         0 B  No Media

Once the resynch is complete the volume status will change to Healthy at which point the volume may be formatted (the RAW type listed above indicates the volume has yet to be formatted). The volume may be formatted using the format command as follows:

DISKPART> format fs=ntfs label="RAID 5 Vol"
  100 percent completed
DiskPart successfully formatted the volume.

Once the volume has been formatted the RAID 5 configuration is ready for use.

Fixing RAID 5 Problems

In order to function, all the disks in a RAID 5 configuration must be online and healthy. If the RAID 5 set displays Failed Redundancy and the volume is listed as Offline, Missing or Online (Errors) there is a problem which needs to be resolved.

If the status is Offline or Missing, check that the disk is connected and powered up. If the problem is resolved select Rescan Disks from the Actions menu. Once the rescan is complete right click on the problematic drive and select Reactivate. All being well the drive status will change to Regenerating as the data is rebuilt using the parity information on the other drives in the array. If, once regeneration is complete, the status does not return to Healthy, right click once again and select Regenerate Parity.

If a disk in a RAID 5 configuration is listed as Failed or Online (Errors) repeat the above steps. If this fails the disk may be unrecoverable and will need to be replaced. To achieve this, right click on the volume on the failed disk and select Remove Volume from the popup menu. Once the volume has been removed, right click on a suitable block of unallocated space on another dynamic disk which is not already part of the RAID 5 array, has sufficient space and has a matching partition style and select Repair Volume. This will rebuild the RAID 5 configuration using the space on new disk drive together with the remaining healthy disks from the original RAID 5 configuration.

<google>BUY_WINSERV_2008R2_BOTTOM</google>

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Файл подкачки windows 10 сколько ставить при 32 гигов
  • Как включить микрофон на наушниках на ноутбуке windows 10
  • Видеозапись с веб камеры windows 10
  • Ati radeon hd 4250 drivers windows 10
  • Windows server 2019 требования к железу