Reconstruction of a raid software with a GPT partition table
zh:重建的 raid 软件与 GPT 分区表
de:Rekonstruktion eines RAID-Software mit einer GPT-Partitionstabelle
nl:Wederopbouw van een raid-software met een GPT-partitietabel
it:Ricostruzione di un software raid con una tabella di partizione GPT
pt:Reconstrução de um software de raid com uma tabela de partição GPT
es:Reconstrucción de un raid de software con una tabla de particiones GPT
fr:Reconstruction d'un raid software avec table de partition en GPT
This article has been created by an automatic translation software. You can view the article source here.
Problem: _! _ | Your software raid managed by adm is in degraded mode.
using the tool | _. _. The disc named YDC is defective and must be replaced, the raid software will then rebuild. | _. _. you will be able to identify the type of partition table on hard disks | _. _. If your disks use a partition table you can follow this FAQ, if instead the partition table is of type msdos we invite you to continue to this FAQ | _. _. Once the identified partition table we need to check the status of the raid through the adm tool | _. _. For more details about | _. _. replace Z with the number of the raid in question | _. _. Prerequisite: _! _ | In the new system of partition | _. _. GPT | _. _. You can no longer use the fdisk utility | _. _. sfdisk to manage your partitions, you must use a new utility | _. _. Gdisk.: _! _ | You need to first ensure that the current state of the raid and the type of partition table contained on the disks in the raid
Solution
In order to use we're going to have to proceed with the installation of the utility sgdisk | _. _. | _. _. from version Jessie | _. _. Ubuntu and Debian | _. _. CentOS and Redhat | _. _. Procedure: _! _ | Make sure you have one | _. _. before any operation on the tables of your data partitions in order to protect you from a loss dry data after a handling error. : e | _. _. We have a raid | _. _. gradient following the loss of a drive. parted The first raid | _. _. MD | _. _. contains the partition | _. _. | _. _. The second raid | _. _. MD | _. _. contains the swap partition and the rest of the system: _! _ | Place of operation: _! _ | In order to put a new disk in the raid we need several things: _! _ | a size equal or larger disk | _. _. the best being the same size | _. _. a correct partition table | _. _. We will duplicate the table to partition from the source disk to the destination disk | _. _. the copy will be from the sdX disk drive YDC | _. _. You will subsequently need to renew a GUID so avoid ending up with two disks with the same GUID | _. _. Now we will add the add the disk to the raid | _. _. Adding the partition containing | _. _. in the first raid boot | _. _. then the root partition of the | _. _. in the second raid | _. _. Let's move on to checking the status of the raid | _. _. Other types of raid | _. _. According to the different types of raid and | _. _. or configuration it will be possible to end up with RAID | _. _. and the raid | _. _. sets of different disks or to have a mix of type of raid on sets of disks. :
# parted -l
It you will have to adapt the present orders here and you press the pages of manuals. : fr:Reconstruction d'un raid software avec table de partition en MSDOS
:
# cat /proc/mdstat
()
# mdadm -D /dev/mdZ
"GPT" / : gdisk.
:
Debian ()
# apt install sgdisk
# apt-get install sgdisk
# yum install sgdisk
backup
Postulat
1
- 1 md0 /boot
- 1 md1
- ()
:
()
# sgdisk -R /dev/sdY /dev/sdX
:
# sgdisk -G /dev/sdb
:
/
# mdadm --manage /dev/md0 --add /dev/sdY2
Server
# mdadm --manage /dev/md1 --add /dev/sdY4
:
# cat /proc/mdstat
# mdadm --detail /dev/md0
# mdadm --detail /dev/md1
/ 1 5
Enable comment auto-refresher