[Eisfair] Raid1 Platten tauschen

Frank Stroeter f.stroeter at gmx.net
Fr Mai 5 20:27:29 CEST 2023


Am 05.05.2023 um 19:55 schrieb Marcus Röckrath:
> Hallo Frank,
Hallo Marcus
> 
> Frank Stroeter wrote:
> 
>> Gemäß Doku Desaster recovery alle Befehle ausgeführt:
>>
>> mdadm /dev/md1 --fail /dev/sdb1 bis ...sdb3
>> mdadm /dev/md1 --remove /dev/sdb1 bis ...sdb3
>>
>> habe ich beim ersten Versuch weggelassen, da ich die 2.Platte
>> direkt ausgetauscht habe (als wäre sie kompl. ausgefallen)
> 
> Also ist sdb die Defekte bzw. ausgetauschte neue Platte.
korrekt
>> sgdisk -R /dev/sdb /dev/sda

So stehts in der Doku
> 
> Dann müsste es hier doch eher
> 
> sgdisk -R /dev/sda /dev/sdb
> 
> sein, wenn ich die Manpage richtig verstehe:
war das nicht sgdisk -R Ziel Quelle
> 
> -R, --replicate=second_device_filename
>      Replicate the main device's partition table on the specified second
> device. Note that the replicated partition table is an exact copy,
> including all GUIDs; if the device should have its own unique GUIDs, you
> should use the -G option on the new disk

Frank



Mehr Informationen über die Mailingliste Eisfair